• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

radvd working for wired hosts, but not for wireless hosts

Started by ratcheer, June 17, 2011, 06:33:00 AM

Previous topic - Next topic

ratcheer

Well, as the saying goes, you learn something new every day. In responding to a post on ubuntuforums.org, today, I discovered that my wireless router, which is successfully advertising to all my wired hosts via radvd, is not assigning IPv6 addresses to any wireless hosts. I normally use wired ethernet, only, and I had assumed that the wireless router would advertise to wireless hosts, as well. I obviously assumed wrong.

As background info, I use a Netgear WNDR3300 wireless router flashed with dd-wrt in order to provide IPv6 functionality. Here is the radvd.conf from the router:


interface br0 {
        AdvSendAdvert on;
        MinRtrAdvInterval 3;
        MaxRtrAdvInterval 10;
        prefix 2001:470:8:b57::/64  {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr on;
        };
};


Here is what my configuration looks like, currently, on a Linux host with both wired and wireless connectivity:


eth0      Link encap:Ethernet  HWaddr 50:e5:49:3a:45:05 
          inet6 addr: 2001:470:8:b57:52e5:49ff:fe3a:4505/64 Scope:Global
          inet6 addr: fe80::52e5:49ff:fe3a:4505/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10052 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9251 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7950103 (7.9 MB)  TX bytes:1472087 (1.4 MB)
          Interrupt:41 Base address:0xa000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2068 (2.0 KB)  TX bytes:2068 (2.0 KB)

ra0       Link encap:Ethernet  HWaddr c8:3a:35:cf:26:ea 
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ca3a:35ff:fecf:26ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13638 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1898 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4620322 (4.6 MB)  TX bytes:236680 (236.6 KB)
          Interrupt:19



I like to keep things as simple as possible. Is there any reason this configuration does not apply to my wireless clients? Does anyone know what else needs to be done so that it will?

Thanks,
Tim

ratcheer

No one?

I guess I need to repeat my question on the dd-wrt forum, but man, that is a tough crowd. And they don't really care much about IPv6.

Tim

broquea


sttun

Try removing 2001:470:8:b57:52e5:49ff:fe3a:4505/64 from eth0 and add 2001:470:8:b57::1/64 to br0 anr restart radvd. BTW what ipv6 subnet do you have on br0?

ratcheer

Sorry, I was away on vacation last week.

broquea, it does not seem to be. This is from the router:

br0       Link encap:Ethernet  HWaddr 00:22:3F:1A:F5:25 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:570240 errors:0 dropped:0 overruns:0 frame:0
          TX packets:832182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:55533091 (52.9 MiB)  TX bytes:1067009447 (1017.5 MiB)

br0:0     Link encap:Ethernet  HWaddr 00:22:3F:1A:F5:25 
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1


sttun, the whole br0 thing confuses me. Until I got it configured the way it is now, I couldn't get ipv6 to work at all. I cobbled together what I have by reading a thousand forum and blog posts from all over the web. I am afraid to mess with it. My router has such a simple interface, I have to do everything in startup scripts on the router. I guess I can save the current scripts on my Linux host and restore them back to the router if I do mess it up. Where would I put the commands to do your recommendation? What would the commands be?

Thanks,
Tim

ratcheer

Well, here is my current (old) router startup script. It seems to attempt the assignment to br0, but as we saw in the previous ifconfig output, it is not being accomplished.

insmod ipv6
sleep 8
ip tunnel add he-ipv6 mode sit remote 216.66.22.2 local 68.209.199.199 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:7:b57::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -6 addr add 2001:470:8:b57::1/64 dev br0
ip route add 2000::/3 dev he-ipv6
radvd -C /tmp/radvd.conf &


In light of this, what do I need to try to do?

Thanks,
Tim

ratcheer

Here is the v6 routing table from the router.


ip -6 route show
2001:470:7:b57::/64 via :: dev he-ipv6  metric 256  mtu 1472 advmss 1412
2001:470:8:b57::/64 dev br0  metric 256  mtu 1500 advmss 1440
fe80::/64 dev eth0  metric 256  mtu 1500 advmss 1440
fe80::/64 dev eth2  metric 256  mtu 1500 advmss 1440
fe80::/64 dev eth3  metric 256  mtu 1500 advmss 1440
fe80::/64 dev br0  metric 256  mtu 1500 advmss 1440
fe80::/64 dev eth1  metric 256  mtu 1500 advmss 1440
fe80::/64 via :: dev he-ipv6  metric 256  mtu 1472 advmss 1412
ff00::/8 dev eth0  metric 256  mtu 1500 advmss 1440
ff00::/8 dev eth2  metric 256  mtu 1500 advmss 1440
ff00::/8 dev eth3  metric 256  mtu 1500 advmss 1440
ff00::/8 dev br0  metric 256  mtu 1500 advmss 1440
ff00::/8 dev eth1  metric 256  mtu 1500 advmss 1440
ff00::/8 dev he-ipv6  metric 256  mtu 1472 advmss 1412
default dev he-ipv6  metric 1024  mtu 1472 advmss 1412


Also, I have removed the line "ip route add 2000::/3 dev he-ipv6" from the startup script, but it made no difference.

Tim