[radvd-devel-l] Radvd problem with MIPv6 CN

Pekka Savola pekkas at netcore.fi
Fri Feb 15 02:17:49 EST 2008


On Thu, 14 Feb 2008, k k wrote:
> 1. With CN(radvd running)
> 2. Without CN(radvd running)
> 3. Without CN(radvd not running)

You have two default routes, through the tunnel, and directly on ath0.

In case 1, the ath0 default points to fe80::211:95ff:feca:5855 which 
on the same node.  In case 2, the ath0 default points to 
fe80::21c:f0ff:fe8f:2adc.

In case 2, you're getting an ICMP TTL exceeded message when trying to 
reach "2001:106:2700::1".  Route for that destination is not in the 
routing table of any of the hosts, so the hosts end up passing the 
packet back and forth through their default routes.

In case 2 you're also getting "unreachable address 
2001:106:1100:0:21c:f0ff:fe8f:2adc" errors.  You've configured that 
address to be on link on ath0.  There are no addres resolution 
requests in the tcpdump so I'm not sure why that's failing.  Maybe 
there isn't such an address configured on any host on the link.

I didn't try to figure out the exact reasons here but one thing is 
clear: you seem to be running radvd in an unsupported configuration. 
If you run radvd, the node must be a router and must not 
auto-configure its default addresses.  In your case, the host has 
autoconfigured default route.

I suggest that on every host you want to run radvd at, you add 
"net.ipv6.conf.all.forwarding=1" to /etc/sysctl.conf (or equivalent) 
and reboot.  Before you start radvd, ensure that all the host has no 
autoconfigured default routes.

I'm afraid I cannot help you further on this.  This clearly seems like 
a messed-up routing issue, not a radvd issue.

> 1. With CN(radvd running):
>
> [root at localhost ~]# radvd -d 5 -m stderr
> [Feb 14 14:34:27] radvd: version 1.1 started
> [Feb 14 14:34:27] radvd: mtu for ath0 is 1500
> [Feb 14 14:34:27] radvd: hardware type for ath0 is 1
> [Feb 14 14:34:27] radvd: link layer token length for ath0 is 48
> [Feb 14 14:34:27] radvd: prefix length for ath0 is 64
> [Feb 14 14:34:27] radvd: interface definition for ath0 is ok
> [Feb 14 14:34:27] radvd: sending RA on ath0
> [Feb 14 14:34:27] radvd: setting timer: 3.00 secs
> [Feb 14 14:34:27] radvd: setting timer: 3 secs 0 usecs
> [Feb 14 14:34:27] radvd: calling schedule_timer from set_timer context
> [Feb 14 14:34:27] radvd: calling alarm: 2 secs, 999859 usecs
> [Feb 14 14:34:27] radvd: recvmsg len=56
> [Feb 14 14:34:27] radvd: if_index 8
> [Feb 14 14:34:27] radvd: found Interface: ath0
> [Feb 14 14:34:28] radvd: recvmsg len=56
> [Feb 14 14:34:28] radvd: if_index 8
> [Feb 14 14:34:28] radvd: found Interface: ath0
> [Feb 14 14:34:30] radvd: recvmsg len=56
> [Feb 14 14:34:30] radvd: if_index 8
> [Feb 14 14:34:30] radvd: found Interface: ath0
> [Feb 14 14:34:30] radvd: check_time_diff, difference: -1 sec + 998168 usec
> [Feb 14 14:34:30] radvd: timer_handler called for ath0
> [Feb 14 14:34:30] radvd: sending RA on ath0
> [Feb 14 14:34:30] radvd: setting timer: 1.62 secs
> [Feb 14 14:34:30] radvd: setting timer: 1 secs 621286 usecs
> [Feb 14 14:34:30] radvd: calling schedule_timer from set_timer context
> [Feb 14 14:34:30] radvd: calling alarm: 1 secs, 621261 usecs
> [Feb 14 14:34:30] radvd: calling schedule_timer from alarm_handler context
> [Feb 14 14:34:30] radvd: calling alarm: 1 secs, 621200 usecs
> [Feb 14 14:34:30] radvd: recvmsg len=56
> [Feb 14 14:34:30] radvd: if_index 8
> [Feb 14 14:34:30] radvd: found Interface: ath0
> [Feb 14 14:34:32] radvd: check_time_diff, difference: -1 sec + 997612 usec
> [Feb 14 14:34:32] radvd: timer_handler called for ath0
> [Feb 14 14:34:32] radvd: sending RA on ath0
> [Feb 14 14:34:32] radvd: setting timer: 2.41 secs
> [Feb 14 14:34:32] radvd: setting timer: 2 secs 406259 usecs
> [Feb 14 14:34:32] radvd: calling schedule_timer from set_timer context
> [Feb 14 14:34:32] radvd: calling alarm: 2 secs, 406225 usecs
> [Feb 14 14:34:32] radvd: calling schedule_timer from alarm_handler context
> [Feb 14 14:34:32] radvd: calling alarm: 2 secs, 406103 usecs
> [Feb 14 14:34:32] radvd: recvmsg len=56
> [Feb 14 14:34:32] radvd: if_index 8
> [Feb 14 14:34:32] radvd: found Interface: ath0
> [Feb 14 14:34:32] radvd: recvmsg len=56
> [Feb 14 14:34:32] radvd: if_index 8
> [Feb 14 14:34:32] radvd: found Interface: ath0
> [Feb 14 14:34:33] radvd: recvmsg len=56
> [Feb 14 14:34:33] radvd: if_index 8
> [Feb 14 14:34:33] radvd: found Interface: ath0
> [Feb 14 14:34:33] radvd: recvmsg len=64
> [Feb 14 14:34:33] radvd: if_index 8
> [Feb 14 14:34:33] radvd: found Interface: ath0
> [Feb 14 14:34:33] radvd: our AdvValidLifetime on ath0 for 2001:106:1100:: doesn't agree with fe80::211:95ff:feca:5fce
> [Feb 14 14:34:33] radvd: our AdvPreferredLifetime on ath0 for 2001:106:1100:: doesn't agree with fe80::211:95ff:feca:5fce
> [Feb 14 14:34:34] radvd: check_time_diff, difference: -1 sec + 998511 usec
> [Feb 14 14:34:34] radvd: timer_handler called for ath0
> [Feb 14 14:34:34] radvd: sending RA on ath0
> [Feb 14 14:34:34] radvd: setting timer: 2.87 secs
> [Feb 14 14:34:34] radvd: setting timer: 2 secs 873373 usecs
> [Feb 14 14:34:34] radvd: calling schedule_timer from set_timer context
> [Feb 14 14:34:34] radvd: calling alarm: 2 secs, 873339 usecs
> [Feb 14 14:34:34] radvd: calling schedule_timer from alarm_handler context
> [Feb 14 14:34:34] radvd: calling alarm: 2 secs, 873279 usecs
> [Feb 14 14:34:34] radvd: recvmsg len=56
> [Feb 14 14:34:34] radvd: if_index 8
> [Feb 14 14:34:34] radvd: found Interface: ath0
> [Feb 14 14:34:36] radvd: recvmsg len=56
> [Feb 14 14:34:36] radvd: if_index 8
> [Feb 14 14:34:36] radvd: found Interface: ath0
> [Feb 14 14:34:37] radvd: check_time_diff, difference: -1 sec + 997676 usec
> [Feb 14 14:34:37] radvd: timer_handler called for ath0
> [Feb 14 14:34:37] radvd: sending RA on ath0
>
>
> [root at localhost ~]# /sbin/ip -6 a l
> 1: lo:  mtu 16436
>    inet6 ::1/128 scope host
>       valid_lft forever preferred_lft forever
> 8: ath0:  mtu 1500
>    inet6 2001:106:1100:0:211:95ff:feca:5855/64 scope global dynamic
>       valid_lft 2592000sec preferred_lft 604800sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
> 9: ip6tnl1 at ath0:  mtu 1460
>    inet6 2001:106:2700:0:211:95ff:feca:5855/128 scope global dynamic flags 10
>       valid_lft 11647sec preferred_lft 9647sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
>
>
> [root at localhost ~]# /sbin/ip -6 r l
> default from 2001:106:2700:0:211:95ff:feca:5855 dev ip6tnl1  proto 15  metric 12 8  expires 21333956sec mtu 1460 advmss 1400 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> 2001:106:1100::1 dev ath0  metric 1  expires 21334262sec mtu 1500 advmss 1440 me tric 10 4294967295
> 2001:106:1100:0:21c:f0ff:fe8f:2adc dev ath0  metric 1  expires 21333958sec mtu 1 500 advmss 1440 metric 10 4294967295
> 2001:106:1100::/64 dev ath0  proto kernel  metric 256  expires 11584sec mtu 1500  advmss 1440 metric 10 4294967295
> fe80::/64 dev ip6tnl1  metric 256  expires 21333881sec mtu 1460 advmss 1400 metr ic 10 4294967295
> fe80::/64 dev ath0  metric 256  expires 21333954sec mtu 1500 advmss 1440 metric 10 4294967295
> ff00::/8 dev ath0  metric 256  expires 21333641sec mtu 1500 advmss 1440 metric 1 0 4294967295
> ff00::/8 dev ip6tnl1  metric 256  expires 21333881sec mtu 1460 advmss 1400 metri c 10 4294967295
> default via fe80::211:95ff:feca:5855 dev ath0  proto ra  metric 1024  expires 21 334373sec mtu 1500 advmss 1440 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
>
>
> [root at localhost ~]# tcpdump -n -vvv -s0 -i any icmp6
> \tcpdump: WARNING: Promiscuous mode not supported on the "any" device
> tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
> 14:37:57.931316 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
> 14:37:57.931328 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
> 14:37:58.213217 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::21c:f0ff:fe8f:2adc> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:1c:f0:8f:2a:dc
>            0x0000:  001c f08f 2adc
> 14:37:58.219309 IP6 (hlim 255, next-header: ICMPv6 (58), length: 64) fe80::211:95ff:feca:5fce> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 64
>        hop limit 64, Flags [none], pref medium, router lifetime 30s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 2592000s, pref. time 604800s
>            0x0000:  40e0 0027 8d00 0009 3a80 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:5f:ce
>            0x0000:  0011 95ca 5fce
>          advertisement interval option (7), length 8 (1):  10000s
>            0x0000:  0000 0000 2710
> 14:37:59.879302 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
> 14:37:59.879315 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>
>
>
>
>
>
>
> 2. Without CN(radvd running)
>
> [root at localhost ~]# radvd -d 5 -m stderr
> [Feb 14 15:34:03] radvd: version 1.1 started
> [Feb 14 15:34:03] radvd: mtu for ath0 is 1500
> [Feb 14 15:34:03] radvd: hardware type for ath0 is 1
> [Feb 14 15:34:03] radvd: link layer token length for ath0 is 48
> [Feb 14 15:34:03] radvd: prefix length for ath0 is 64
> [Feb 14 15:34:03] radvd: interface definition for ath0 is ok
> [Feb 14 15:34:03] radvd: sending RA on ath0
> [Feb 14 15:34:03] radvd: setting timer: 3.00 secs
> [Feb 14 15:34:03] radvd: setting timer: 3 secs 0 usecs
> [Feb 14 15:34:03] radvd: calling schedule_timer from set_timer context
> [Feb 14 15:34:03] radvd: calling alarm: 2 secs, 999974 usecs
> [Feb 14 15:34:03] radvd: recvmsg len=56
> [Feb 14 15:34:03] radvd: if_index 8
> [Feb 14 15:34:03] radvd: found Interface: ath0
> [Feb 14 15:34:05] radvd: recvmsg len=56
> [Feb 14 15:34:05] radvd: if_index 8
> [Feb 14 15:34:05] radvd: found Interface: ath0
> [Feb 14 15:34:06] radvd: recvmsg len=64
> [Feb 14 15:34:06] radvd: if_index 8
> [Feb 14 15:34:06] radvd: found Interface: ath0
> [Feb 14 15:34:06] radvd: our AdvValidLifetime on ath0 for 2001:106:1100:: doesn't agree with fe80::211:95ff:feca:5fce
> [Feb 14 15:34:06] radvd: our AdvPreferredLifetime on ath0 for 2001:106:1100:: doesn't agree with fe80::211:95ff:feca:5fce
> [Feb 14 15:34:06] radvd: check_time_diff, difference: -1 sec + 998399 usec
> [Feb 14 15:34:06] radvd: timer_handler called for ath0
> [Feb 14 15:34:06] radvd: sending RA on ath0
> [Feb 14 15:34:06] radvd: setting timer: 1.75 secs
> [Feb 14 15:34:06] radvd: setting timer: 1 secs 748393 usecs
> [Feb 14 15:34:06] radvd: calling schedule_timer from set_timer context
> [Feb 14 15:34:06] radvd: calling alarm: 1 secs, 748365 usecs
> [Feb 14 15:34:06] radvd: calling schedule_timer from alarm_handler context
> [Feb 14 15:34:06] radvd: calling alarm: 1 secs, 748305 usecs
> [Feb 14 15:34:06] radvd: recvmsg len=56
> [Feb 14 15:34:06] radvd: if_index 8
> [Feb 14 15:34:06] radvd: found Interface: ath0
> [Feb 14 15:34:06] radvd: recvmsg len=56
> [Feb 14 15:34:06] radvd: if_index 8
> [Feb 14 15:34:06] radvd: found Interface: ath0
> [Feb 14 15:34:08] radvd: check_time_diff, difference: -1 sec + 996663 usec
> [Feb 14 15:34:08] radvd: timer_handler called for ath0
> [Feb 14 15:34:08] radvd: sending RA on ath0
> [Feb 14 15:34:08] radvd: setting timer: 1.72 secs
> [Feb 14 15:34:08] radvd: setting timer: 1 secs 718709 usecs
> [Feb 14 15:34:08] radvd: calling schedule_timer from set_timer context
> [Feb 14 15:34:08] radvd: calling alarm: 1 secs, 718684 usecs
> [Feb 14 15:34:08] radvd: calling schedule_timer from alarm_handler context
> [Feb 14 15:34:08] radvd: calling alarm: 1 secs, 718629 usecs
> [Feb 14 15:34:08] radvd: recvmsg len=56
> [Feb 14 15:34:08] radvd: if_index 8
> [Feb 14 15:34:08] radvd: found Interface: ath0
> [Feb 14 15:34:08] radvd: recvmsg len=56
> [Feb 14 15:34:08] radvd: if_index 8
> [Feb 14 15:34:08] radvd: found Interface: ath0
> [Feb 14 15:34:09] radvd: recvmsg len=56
> [Feb 14 15:34:09] radvd: if_index 8
> [Feb 14 15:34:09] radvd: found Interface: ath0
>
>
> [root at localhost ~]# /sbin/ip -6 a l
> 1: lo:  mtu 16436
>    inet6 ::1/128 scope host
>       valid_lft forever preferred_lft forever
> 8: ath0:  mtu 1500
>    inet6 2001:106:1100:0:211:95ff:feca:5855/64 scope global dynamic
>       valid_lft 12000sec preferred_lft 10000sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
> 9: ip6tnl1 at ath0:  mtu 1460
>    inet6 2001:106:2700:0:211:95ff:feca:5855/128 scope global dynamic flags 10
>       valid_lft 11856sec preferred_lft 9856sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
>
>
> [root at localhost ~]# /sbin/ip -6 r l
> default from 2001:106:2700:0:211:95ff:feca:5855 dev ip6tnl1  proto 15  metric 128  expires 21334180sec mtu 1460 advmss 1400 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> 2001:106:1100::1 dev ath0  metric 1  expires 21334188sec mtu 1500 advmss 1440 metric 10 4294967295
> 2001:106:1100:0:21c:f0ff:fe8f:2adc dev ath0  metric 1  expires 21334189sec mtu 1500 advmss 1440 metric 10 4294967295
> 2001:106:1100::/64 dev ath0  proto kernel  metric 256  expires 11813sec mtu 1500 advmss 1440 metric 10 4294967295
> fe80::/64 dev ip6tnl1  metric 256  expires 21330369sec mtu 1460 advmss 1400 metric 10 4294967295
> fe80::/64 dev ath0  metric 256  expires 21334178sec mtu 1500 advmss 1440 metric 10 4294967295
> ff00::/8 dev ip6tnl1  metric 256  expires 21330369sec mtu 1460 advmss 1400 metric 10 4294967295
> ff00::/8 dev ath0  metric 256  expires 21333934sec mtu 1500 advmss 1440 metric 10 4294967295
> default via fe80::21c:f0ff:fe8f:2adc dev ath0  proto ra  metric 1024  expires 21334373sec mtu 1500 advmss 1440 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
>
>
>
> [root at localhost ~]# tcpdump -n -vvv -s0 -i any icmp6
> 15:39:11.121015 IP6 (hlim 64, next-header: ICMPv6 (58), length: 152) 2001:106:1100:0:211:95ff:feca:5855> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, time exceeded in-transit, length 152 for 2001:106:2700::1
> 15:39:11.121038 IP6 (hlim 64, next-header: ICMPv6 (58), length: 112) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, destination unreachable, length 112, unreachable address 2001:106:1100:0:21c:f0ff:fe8f:2adc
> 15:39:11.279490 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4257
> 15:39:11.328844 IP6 (hlim 64, next-header: ICMPv6 (58), length: 152) 2001:106:1100:0:211:95ff:feca:5855> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, time exceeded in-transit, length 152 for 2001:106:2700::1
> 15:39:11.328868 IP6 (hlim 64, next-header: ICMPv6 (58), length: 112) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, destination unreachable, length 112, unreachable address 2001:106:1100:0:21c:f0ff:fe8f:2adc
> 15:39:12.073117 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4249
> 15:39:12.073191 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4249
> 15:39:12.073783 IP6 (hlim 255, next-header: ICMPv6 (58), length: 200) fe80::211:95ff:feca:5855> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, redirect, length 200, 2001:106:2700::1 to fe80::211:95ff:feca:5855
>          destination link-address option (2), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
>          redirected header option (4), length 152 (19):
>            0x0000:  0201 0011 95ca 5855 0413 0000 0000 0000
>            0x0010:  6000 0000 0068 2940 2001 0106 1100 0000
>            0x0020:  0211 95ff feca 5855 2001 0106 2700 0000
>            0x0030:  0000 0000 0000 0001 6000 0000 0040 3a40
>            0x0040:  2001 0106 2700 0000 0211 95ff feca 5855
>            0x0050:  2001 0106 1100 0000 021c f0ff fe8f 2adc
>            0x0060:  8100 0e37 ee09 1099 6ff0 b347 d7a8 0600
>            0x0070:  0809 0a0b 0c0d 0e0f 1011 1213 1415 1617
>            0x0080:  1819 1a1b 1c1d 1e1f 2021 2223 2425 2627
>            0x0090:  2829 2a2b 2c2d 2e2f
>            0x0000:  0000 0000 0000 6000 0000 0068 2940 2001
>            0x0010:  0106 1100 0000 0211 95ff feca 5855 2001
>            0x0020:  0106 2700 0000 0000 0000 0000 0001 6000
>            0x0030:  0000 0040 3a40 2001 0106 2700 0000 0211
>            0x0040:  95ff feca 5855 2001 0106 1100 0000 021c
>            0x0050:  f0ff fe8f 2adc 8100 0e37 ee09 1099 6ff0
>            0x0060:  b347 d7a8 0600 0809 0a0b 0c0d 0e0f 1011
>            0x0070:  1213 1415 1617 1819 1a1b 1c1d 1e1f 2021
>            0x0080:  2223 2425 2627 2829 2a2b 2c2d 2e2f 3031
>            0x0090:  3233 3435 3637
> 15:39:12.126766 IP6 (hlim 64, next-header: ICMPv6 (58), length: 152) 2001:106:1100:0:211:95ff:feca:5855> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, time exceeded in-transit, length 152 for 2001:106:2700::1
> 15:39:12.126797 IP6 (hlim 64, next-header: ICMPv6 (58), length: 112) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, destination unreachable, length 112, unreachable address 2001:106:1100:0:21c:f0ff:fe8f:2adc
> 15:39:12.279557 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4258
> 15:39:12.330041 IP6 (hlim 64, next-header: ICMPv6 (58), length: 152) 2001:106:1100:0:211:95ff:feca:5855> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, time exceeded in-transit, length 152 for 2001:106:2700::1
> 15:39:12.330064 IP6 (hlim 64, next-header: ICMPv6 (58), length: 112) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, destination unreachable, length 112, unreachable address 2001:106:1100:0:21c:f0ff:fe8f:2adc
> 15:39:12.421597 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::21c:f0ff:fe8f:2adc> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:1c:f0:8f:2a:dc
>            0x0000:  001c f08f 2adc
> 15:39:12.775890 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
> 15:39:12.775901 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::211:95ff:feca:5855> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:58:55
>            0x0000:  0011 95ca 5855
>
>
>
>
>
>
>
>
> 3. Without CN(radvd not running):
>
>
> [root at localhost ~]# /sbin/ip -6 a l
> 1: lo:  mtu 16436
>    inet6 ::1/128 scope host
>       valid_lft forever preferred_lft forever
> 8: ath0:  mtu 1500
>    inet6 2001:106:1100:0:211:95ff:feca:5855/64 scope global dynamic
>       valid_lft 12000sec preferred_lft 10000sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
> 9: ip6tnl1 at ath0:  mtu 1460
>    inet6 2001:106:2700:0:211:95ff:feca:5855/128 scope global dynamic flags 10
>       valid_lft 11418sec preferred_lft 9418sec
>    inet6 fe80::211:95ff:feca:5855/64 scope link
>       valid_lft forever preferred_lft forever
>
>
> [root at localhost ~]# /sbin/ip -6 r l
> default from 2001:106:2700:0:211:95ff:feca:5855 dev ip6tnl1  proto 15  metric 12 8  expires 21333745sec mtu 1460 advmss 1400 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> 2001:106:1100::1 dev ath0  metric 1  expires 21333753sec mtu 1500 advmss 1440 me tric 10 4294967295
> 2001:106:1100:0:21c:f0ff:fe8f:2adc dev ath0  metric 1  expires 21333754sec mtu 1 500 advmss 1440 metric 10 4294967295
> 2001:106:1100::/64 dev ath0  proto kernel  metric 256  expires 11921sec mtu 1500  advmss 1440 metric 10 4294967295
> fe80::/64 dev ip6tnl1  metric 256  expires 21329934sec mtu 1460 advmss 1400 metr ic 10 4294967295
> fe80::/64 dev ath0  metric 256  expires 21334293sec mtu 1500 advmss 1440 metric 10 4294967295
> ff00::/8 dev ip6tnl1  metric 256  expires 21329934sec mtu 1460 advmss 1400 metri c 10 4294967295
> ff00::/8 dev ath0  metric 256  expires 21333499sec mtu 1500 advmss 1440 metric 1 0 4294967295
> default via fe80::21c:f0ff:fe8f:2adc dev ath0  proto ra  metric 1024  expires 21 334368sec mtu 1500 advmss 1440 metric 10 4294967295
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
> unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
>
>
>
> [root at localhost ~]# tcpdump -n -vvv -s0 -i any icmp6
> pdump: WARNING: Promiscuous mode not supported on the "any" device
> tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
> 15:45:06.120835 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::21c:f0ff:fe8f:2adc> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:1c:f0:8f:2a:dc
>            0x0000:  001c f08f 2adc
> 15:45:06.171884 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4603
> 15:45:06.171971 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4603
> 15:45:06.462768 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4611
> 15:45:06.463539 IP6 (hlim 255, next-header: ICMPv6 (58), length: 200) fe80::21c:f0ff:fe8f:2adc> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, redirect, length 200, 2001:106:2700::1 to 2001:106:1100::1
>          destination link-address option (2), length 8 (1): 00:11:95:ca:5f:ce
>            0x0000:  0011 95ca 5fce
>          redirected header option (4), length 152 (19):
>            0x0000:  0201 0011 95ca 5fce 0413 0000 0000 0000
>            0x0010:  6000 0000 0068 2940 2001 0106 1100 0000
>            0x0020:  0211 95ff feca 5855 2001 0106 2700 0000
>            0x0030:  0000 0000 0000 0001 6000 0000 0040 3a40
>            0x0040:  2001 0106 2700 0000 0211 95ff feca 5855
>            0x0050:  2001 0106 1100 0000 021c f0ff fe8f 2adc
>            0x0060:  8000 8264 af0a 1203 82f1 b347 8e0f 0700
>            0x0070:  0809 0a0b 0c0d 0e0f 1011 1213 1415 1617
>            0x0080:  1819 1a1b 1c1d 1e1f 2021 2223 2425 2627
>            0x0090:  2829 2a2b 2c2d 2e2f
>            0x0000:  0000 0000 0000 6000 0000 0068 2940 2001
>            0x0010:  0106 1100 0000 0211 95ff feca 5855 2001
>            0x0020:  0106 2700 0000 0000 0000 0000 0001 6000
>            0x0030:  0000 0040 3a40 2001 0106 2700 0000 0211
>            0x0040:  95ff feca 5855 2001 0106 1100 0000 021c
>            0x0050:  f0ff fe8f 2adc 8000 8264 af0a 1203 82f1
>            0x0060:  b347 8e0f 0700 0809 0a0b 0c0d 0e0f 1011
>            0x0070:  1213 1415 1617 1819 1a1b 1c1d 1e1f 2021
>            0x0080:  2223 2425 2627 2829 2a2b 2c2d 2e2f 3031
>            0x0090:  3233 3435 3637
> 15:45:06.464757 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4611
> 15:45:07.171843 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4604
> 15:45:07.171925 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4604
> 15:45:07.466864 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4612
> 15:45:07.467630 IP6 (hlim 255, next-header: ICMPv6 (58), length: 200) fe80::21c:f0ff:fe8f:2adc> 2001:106:1100:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, redirect, length 200, 2001:106:2700::1 to 2001:106:1100::1
>          destination link-address option (2), length 8 (1): 00:11:95:ca:5f:ce
>            0x0000:  0011 95ca 5fce
> 	  redirected header option (4), length 152 (19):
>            0x0000:  0201 0011 95ca 5fce 0413 0000 0000 0000
>            0x0010:  6000 0000 0068 2940 2001 0106 1100 0000
>            0x0020:  0211 95ff feca 5855 2001 0106 2700 0000
>            0x0030:  0000 0000 0000 0001 6000 0000 0040 3a40
>            0x0040:  2001 0106 2700 0000 0211 95ff feca 5855
>            0x0050:  2001 0106 1100 0000 021c f0ff fe8f 2adc
>            0x0060:  8100 4939 ee09 11e2 b8f1 b347 505c 0800
>            0x0070:  0809 0a0b 0c0d 0e0f 1011 1213 1415 1617
>            0x0080:  1819 1a1b 1c1d 1e1f 2021 2223 2425 2627
>            0x0090:  2829 2a2b 2c2d 2e2f
>            0x0000:  0000 0000 0000 6000 0000 0068 2940 2001
>            0x0010:  0106 1100 0000 0211 95ff feca 5855 2001
>            0x0020:  0106 2700 0000 0000 0000 0000 0001 6000
>            0x0030:  0000 0040 3a40 2001 0106 2700 0000 0211
>            0x0040:  95ff feca 5855 2001 0106 1100 0000 021c
>            0x0050:  f0ff fe8f 2adc 8100 4939 ee09 11e2 b8f1
>            0x0060:  b347 505c 0800 0809 0a0b 0c0d 0e0f 1011
>            0x0070:  1213 1415 1617 1819 1a1b 1c1d 1e1f 2021
>            0x0080:  2223 2425 2627 2829 2a2b 2c2d 2e2f 3031
>            0x0090:  3233 3435 3637
> 15:44:41.271527 IP6 (hlim 255, next-header: ICMPv6 (58), length: 56) fe80::21c:f0ff:fe8f:2adc> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
>        hop limit 64, Flags [none], pref medium, router lifetime 9s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 12000s, pref. time 10000s
>            0x0000:  40e0 0000 2ee0 0000 2710 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:1c:f0:8f:2a:dc
>            0x0000:  001c f08f 2adc
> 15:44:41.361125 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4586
> 15:44:41.363143 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4586
> 15:44:41.889350 IP6 (hlim 255, next-header: ICMPv6 (58), length: 64) fe80::211:95ff:feca:5fce> ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 64
>        hop limit 64, Flags [none], pref medium, router lifetime 30s, reachable time 0s, retrans time 0s
>          prefix info option (3), length 32 (4): 2001:106:1100::/64, Flags [onlink, auto, router], valid time 2592000s, pref. time 604800s
>            0x0000:  40e0 0027 8d00 0009 3a80 0000 0000 2001
>            0x0010:  0106 1100 0000 0000 0000 0000 0000
>          source link-address option (1), length 8 (1): 00:11:95:ca:5f:ce
>            0x0000:  0011 95ca 5fce
>          advertisement interval option (7), length 8 (1):  10000s
>            0x0000:  0000 0000 2710
> 15:44:42.171401 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4579
> 15:44:42.171469 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4579
> 15:44:42.365177 IP6 (hlim 64, next-header: ICMPv6 (58), length: 64) 2001:106:2700:0:211:95ff:feca:5855> 2001:106:1100:0:21c:f0ff:fe8f:2adc: [icmp6 sum ok] ICMP6, echo request, length 64, seq 4587
> 15:44:42.366621 IP6 (hlim 62, next-header: ICMPv6 (58), length: 64) 2001:106:1100:0:21c:f0ff:fe8f:2adc> 2001:106:2700:0:211:95ff:feca:5855: [icmp6 sum ok] ICMP6, echo reply, length 64, seq 4587
>
>
>
>
> I've tried to understand the debug outputs but I dont really know whats the main problem. Could you help me out with it?
>
> Thanks & Regards,
>
> KiaN
>
>
>
>
>
> ----------------------------------------
>> Date: Mon, 11 Feb 2008 13:40:40 +0200
>> From: pekkas at netcore.fi
>> To: radvd-devel-l at litech.org
>> CC: kelvinskk at hotmail.com
>> Subject: Re: [radvd-devel-l] Radvd problem with MIPv6 CN
>>
>> On Mon, 11 Feb 2008, k k wrote:
>>> I'm currently experiencing some problems with running radvd together
>>> with MIPv6. (NOTE: I'm running radvd and MIPv6 on my MN and CN as
>>> well). My network works fine when there's a Correspondent Node (CN)
>>> in the foreign network. However, when I ran radvd together with
>>> MIPv6 without the CN, there were major ping problems(refer to
>>> below).
>> ...
>>> As mentioned earlier, MIPv6 and radvd worked out fine when the CN
>>> was running. Next I tested MIPv6 and radvd without the CN and it
>>> gave me ping fluctuation problems as shown:
>>>
>>> With radvd on MN:
>>> [root at localhost ~]# ping6 2001:106:1100:0:21c:f0ff:fe8f:2adc
>>> PING 2001:106:1100:0:21c:f0ff:fe8f:2adc(2001:106:1100:0:21c:f0ff:fe8f:2adc) 56 data bytes
>>> From 2001:106:2700:0:211:95ff:feca:5855 icmp_seq=0 Destination unreachable: Address unreachable
>>> 64 bytes from 2001:106:1100:0:21c:f0ff:fe8f:2adc: icmp_seq=1 ttl=62 time=1.08 ms
>> ...
>>> When I executed a ?killall radvd?, the ping was stable again. Upon
>>> activating radvd again, the ping went unstable. Has anyone had this
>>> problem before or can someone help me out?
>>
>> You don't describe why you want to run radvd on the MN.  Are you
>> trying to do some NEMO experiments?
>>
>> You're pinging CN's address from the MN., but are sometimes getting
>> ICMP "address unreachable" errors from the MN's home address.
>>
>> In other words, the "localhost" in question cannot perform address
>> resolution for the CN address.
>>
>> My suspicion is that when you try to run radvd on the MN, you have two
>> default routes on the MN, or you have strange interface configuration
>> on the MN, which prevents address resolution from working properly.
>>
>> To find out more about this, I suggest you run radvd on MN with
>> debugging enabled (e.g. with '-d 5 -m stderr' toggles), get '/sbin/ip
>> -6 a l' printing before you start radvd, and compare it to '/sbin/ip
>> -6 a l' listing when the problem is active.  Similar steps should be
>> sone with '/sbin/ip -6 r l'.  You may also want to run 'tcpdump -n
>> -vvv -s0 -i any icmp6' to capture ICMPv6 traffic on the MN.
>>
>> --
>> Pekka Savola                 "You each name yourselves king, yet the
>> Netcore Oy                    kingdom bleeds."
>> Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
>
> _________________________________________________________________
> Get your free suite of Windows Live services today!
> http://www.get.live.com/wl/all
>

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings



More information about the radvd-devel-l mailing list