[Cerowrt-devel] IPv6 doesn't work quite right in 3.3.8-17 as 3.3.8-6

Richard Brown richard.e.brown at dartware.com
Mon Aug 20 07:56:01 EDT 2012


I can't make IPv6 work in 3.3.8-17 using the same procedure as worked in 3.3.8-6. I am using the procedure and script listed in: http://www.bufferbloat.net/projects/cerowrt/wiki/IPv6_Tunnel

With 3.3.8-6, IPv6 starts right up and my MacBook can get an IPv6 address right away. Using 3.3.8-17, there is an error when running the script (see below), and after the restart, my MacBook won't get an IPv6 address. Notes: 
	a) the router itself has a v6 address, and can connect to v6-only resources (e.g., ping ipv6.google.com works)
	b) Immediately after running the script (and before rebooting 3.3.8-17), the MacBook may have received an IPv6 address

What other information could I provide to debug this? Thanks.

Rich Brown
Hanover, NH USA

================================

LISTING #1 - using 3.3.8-6

root at OpenWrt:/tmp# sh tunnel.sh 
Downloading http://huchra.bufferbloat.net/~cero1/3.3/3.3.8-6/packages/Packages.gz.
Inflating http://huchra.bufferbloat.net/~cero1/3.3/3.3.8-6/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
Package 6in4 (11-1) installed in root is up to date.
Setting up HE.net tunnel
Setting IPv6 addresses on local interfaces
Restarting network...
Configuration file: /var/run/hostapd-phy0.conf
Using interface sw00 with hwaddr c4:3d:c7:9d:e3:9a and ssid 'CEROwrt'
Using interface gw00 with hwaddr c6:3d:c7:9d:e3:9b and ssid 'CEROwrt-guest'
Configuration file: /var/run/hostapd-phy1.conf
Using interface sw10 with hwaddr c4:3d:c7:9d:e3:9c and ssid 'CEROwrt5'
Using interface gw10 with hwaddr c6:3d:c7:9d:e3:9d and ssid 'CEROwrt-guest5'
Restarting firewall...
Loading defaults
Loading synflood protection
Adding custom chains
Loading zones
Loading forwardings
Loading rules
Loading redirects
Loading includes
Loading interfaces
Done. You should restart the router now to make these take effect.

================================

LISTING #2 - Using 3.3.8-17. 

The same script gives an error message in 3.3.8-17. I ran the steps manually to see if I got the same behavior, and I do.  The error happens after restarting the network, and the message is: command failed: Device or resource busy (-16) See below transcript.

root at OpenWrt:/tmp# opkg update
Downloading http://huchra.bufferbloat.net/~cero1/3.3/3.3.8-17/packages/Packages.gz.
Inflating http://huchra.bufferbloat.net/~cero1/3.3/3.3.8-17/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
root at OpenWrt:/tmp# opkg install 6in4
Package 6in4 (11-1) installed in root is up to date.
root at OpenWrt:/tmp# uci set network.henet=interface
root at OpenWrt:/tmp# uci set network.henet.proto=6in4
root at OpenWrt:/tmp# uci set network.henet.peeraddr=209.51.161.14
root at OpenWrt:/tmp# uci set network.henet.ip6addr='2001:470:1f06:64::2/64'
root at OpenWrt:/tmp# uci set network.henet.tunnelid=xxxxxx
root at OpenWrt:/tmp# uci set network.henet.username=xxxxxx
root at OpenWrt:/tmp# uci set network.henet.password='xxxxxx'
root at OpenWrt:/tmp# uci set network.se00.ip6addr='2001:470:8a63:100::1/64' # secure wired
root at OpenWrt:/tmp# uci set network.sw10.ip6addr='2001:470:8a63:200::1/64' # secure wireless   5GHz
root at OpenWrt:/tmp# uci set network.sw00.ip6addr='2001:470:8a63:300::1/64' # secure wireless 2.4GHz
root at OpenWrt:/tmp# uci set network.gw00.ip6addr='2001:470:8a63:400::1/64' # guest wireless  2.4GHz
root at OpenWrt:/tmp# uci set network.gw10.ip6addr='2001:470:8a63:500::1/64' # guest wireless    5GHz
root at OpenWrt:/tmp# uci commit network
root at OpenWrt:/tmp# /etc/init.d/network restart
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
Using interface sw00 with hwaddr c4:3d:c7:9d:e3:9a and ssid 'CEROwrt'
Using interface gw00 with hwaddr c6:3d:c7:9d:e3:9b and ssid 'CEROwrt-guest'
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy1.conf
Using interface sw10 with hwaddr c4:3d:c7:9d:e3:9c and ssid 'CEROwrt5'
Using interface gw10 with hwaddr c6:3d:c7:9d:e3:9d and ssid 'CEROwrt-guest5'
root at OpenWrt:/tmp# /etc/init.d/network restart
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
Using interface sw00 with hwaddr c4:3d:c7:9d:e3:9a and ssid 'CEROwrt'
Using interface gw00 with hwaddr c6:3d:c7:9d:e3:9b and ssid 'CEROwrt-guest'
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy1.conf
Using interface sw10 with hwaddr c4:3d:c7:9d:e3:9c and ssid 'CEROwrt5'
Using interface gw10 with hwaddr c6:3d:c7:9d:e3:9d and ssid 'CEROwrt-guest5'
root at OpenWrt:/tmp# uci set firewall. at zone[0].network='ge00 henet'
root at OpenWrt:/tmp# uci commit firewall
root at OpenWrt:/tmp# ifup henet
root at OpenWrt:/tmp# /etc/init.d/firewall restart
Loading defaults
Loading synflood protection
Adding custom chains
Loading zones
Loading forwardings
Loading rules
Loading redirects
Loading includes
Loading interfaces
root at OpenWrt:/tmp# 





More information about the Cerowrt-devel mailing list