Joined: 17 Jun 2009 Posts: 58 Location: Fremont, CA.
Posted: Sun Apr 04, 2010 18:59 Post subject: IPv6 6to4 Tunnel not working with PPPoE connection? (UPDATE)
I just switched providers to a PPPoE from a Static DHCP due to cost cutting. My IPv6 was working with 13577. I am using 13972 NEWD std_nokaid_usb and here are my scripts.
This is the error that I am getting which is not allowing the 6to4 tunnel to set up.
[Apr 04 11:49:15] radvd: ioctl(SIOCGIFADDR) failed for vlan2: Cannot assign requested address
[Apr 04 11:49:15] radvd: interface vlan2 has no IPv4 addresses, disabling 6to4 prefix.
insmod /lib/modules/2.4.37/ipv6.o
sleep 5
radvd -C /tmp/radvd.conf start
sleep 5
WANIP=$(ip -4 addr show dev vlan2 | grep 'inet' | awk '{print $2}' | cut -d/ -f1)
if [ -n "$WANIP" ]
then
V6PREFIX=$(printf '2002:%02x%02x:%02x%02x' $(echo $WANIP | tr . ' '))
ip tunnel add tun6to4 mode sit ttl 64 remote any local $WANIP
ip link set dev tun6to4 up
ip link set mtu 1492 dev tun6to4
ip -6 addr add $V6PREFIX:0::1/16 dev tun6to4
ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4
ip -6 addr add $V6PREFIX:1::1/64 dev br0
kill -HUP $(cat /var/run/radvd.pid)
fi
radvd -C /tmp/radvd.conf start _________________ DD-WRT is Awesome!
WZR1750DHP 31160 @1000 5 GHz Main AP AC
WZR1750DHP 31160 @1000 5 GHz CB AC
WZR1750DHP 31160 @1000 2.4 GHz WAP N-Only
Deckard_9732, if you haven't touched your vlan configurations, the WAN interface is vlan1 instead of vlan2. Probably this causes the problem. You can check it by telnetting/ssh-ing to the router and issue "ifconfig" to see which vlan interface has your internet IP address. Modify your IPv6 script and radvd config according to this.
Joined: 17 Jun 2009 Posts: 58 Location: Fremont, CA.
Posted: Sun Apr 04, 2010 20:48 Post subject: IPv6 6to4 Tunnel not working with PPPoE? (UPDATE #2)
Diosbejgli wrote:
Deckard_9732, if you haven't touched your vlan configurations, the WAN interface is vlan1 instead of vlan2. Probably this causes the problem. You can check it by telnetting/ssh-ing to the router and issue "ifconfig" to see which vlan interface has your internet IP address. Modify your IPv6 script and radvd config according to this.
I ssh'd the router with 'ifconfig' and determined that "ppp0" was the ipv4 address. I changed it in the radvd config script and it is now loading:
you could try logging in to the router through telnet or ssh and issue those commands line by line to see where it fails to proceed.
You might want to just copy line by line from the startup script into your SSH terminal and see what fails where. If you could paste the output from the following commands:
Code:
ip -4 addr show
Code:
ifconfig
Code:
ip -6 route show
Code:
ip -6 addr show
I also want you to try to comment out the Base6to4Interface line. The routes should do the work for you.
of course I know about PATH and I also did a find / -name '*ip6tables*' and it couldn't find any executables anywhere.
there wasn't even a /jffs/usr/sbin folder with the first version.
of course I know about PATH and I also did a find / -name '*ip6tables*' and it couldn't find any executables anywhere.
there wasn't even a /jffs/usr/sbin folder with the first version.
Are you using the "-d root" in ipkg when installing? What kernel do you have?