Friday, February 27, 2009

IPv6 on OpenWRT

Huzzah! It's working! I followed the recommended steps and got IPv6 working correctly with a couple minor adjustments to the documentation.

First departure from the norm: adjust /etc/ipkg.conf

Change "src packages http://downloads.openwrt.org/kamikaze/packages/mipsel" to "src packages http://downloads.openwrt.org/kamikaze/7.09/packages/mipsel" (add that '7.09' in there)

Second departure from the norm: adjust /etc/init.d/tun6to4

Change this line:
ipv4=`ip -4 addr | awk '/^[0-9]+[:] vlan1[:]/ {l=NR+1} /inet (([0-9]{1,3}\.){3}[0-9]{1,3})\// {if (NR == l) split($2,a,"/")} END {print a[1]}'`

to
ipv4=`ifconfig eth0.1 | grep "inet addr" | tr ':' ' ' | awk '{ print $3 }'`

That's it.
ping6 2001:4860:b002::68
PING 2001:4860:b002::68 (2001:4860:b002::68): 56 data bytes
64 bytes from 2001:4860:b002::68: icmp6_seq=0 ttl=57 time=205.7 ms
64 bytes from 2001:4860:b002::68: icmp6_seq=1 ttl=57 time=206.6 ms

(2001:4860:b002::68 is http://ipv6.google.com)

I'll test client connectivity tonight when I get to the Outer Banks but it should work.

No comments: