Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address
James G
Fri Apr 17 16:52:58 2020
Hi Roy,
I've had more time to to look at this again and I’ve found out what is happening
> On 24 Jan 2020, at 14:23, Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> Hi James
>
> On 22/01/2020 19:22, James Gross wrote:
>> Jan 22 19:18:04 [299]: eth0: delaying CONFIRM6 (xid 0x838b79), next in 1.0 seconds
>> Jan 22 19:18:05 [299]: eth0: broadcasting CONFIRM6 (xid 0x838b79), next in 1.1 seconds
>> Jan 22 19:18:05 [299]: eth0: REPLY6 received from fe80::be99:11ff:fe81:6408
>> Jan 22 19:18:05 [299]: eth0: elapsed time 0
>> Jan 22 19:18:05 [299]: eth0: adding address 2001:8b0:de0a:bb0e::5/128
>> Jan 22 19:18:05 [299]: eth0: pltime 86400 seconds, vltime 86400 seconds
>> Jan 22 19:18:05 [299]: eth0: renew in 43200, rebind in 69120, expire in 86400 seconds
>> Jan 22 19:18:05 [299]: eth0: writing lease `/var/lib/dhcpcd5/eth0.lease6'
>> Jan 22 19:18:05 [299]: eth0: waiting for DHCPv6 DAD to complete
>> Jan 22 19:18:05 [299]: eth0: adding default route via fe80::be99:11ff:fe81:6408
>> Jan 22 19:18:06 [299]: eth0: pid 0 deleted address 2001:8b0:de0a:bb0e::5/128
>> Jan 22 19:18:06 [299]: eth0: deleting default route via fe80::be99:11ff:fe81:6408
>
> I don't know why the kernel is deleteing the address.
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: Router Advertisement from fe80::1
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: no global addresses for default route
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: adding route to 2001:8b0:de0a:bb0d::/64
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: Router Advertisement from fe80::1
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: no global addresses for default route
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: adding route to 2001:8b0:de0a:bb0d::/64
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: reading lease `/var/lib/dhcpcd5/eth0.lease6'
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: reading lease `/var/lib/dhcpcd5/eth0.lease6'
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: confirming prior DHCPv6 lease
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: confirming prior DHCPv6 lease
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: delaying CONFIRM6 (xid 0xa2be78), next in 1.0 seconds
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: delaying CONFIRM6 (xid 0xa2be78), next in 1.0 seconds
Apr 17 12:46:26 localhost dhcpcd[292]: eth0: ARP probing 192.168.55.26 (3 of 3), next in 2.0 seconds
Apr 17 12:46:26 localhost dhcpcd[321]: eth0: ARP probing 192.168.55.26 (3 of 3), next in 2.0 seconds
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: broadcasting CONFIRM6 (xid 0xa2be78), next in 1.0 seconds
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: broadcasting CONFIRM6 (xid 0xa2be78), next in 1.0 seconds
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: REPLY6 received from fe80::be99:11ff:fe81:6408
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: REPLY6 received from fe80::be99:11ff:fe81:6408
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: adding address 2001:8b0:de0a:bb0d::3/128
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: pltime 86400 seconds, vltime 86400 seconds
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: renew in 41232, rebind in 67152, expire in 84432 seconds
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: adding address 2001:8b0:de0a:bb0d::3/128
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: waiting for DHCPv6 DAD to complete
Apr 17 12:46:27 localhost dhcpcd[292]: eth0: adding default route via fe80::1
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: pltime 86400 seconds, vltime 86400 seconds
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: renew in 41232, rebind in 67152, expire in 84432 seconds
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: waiting for DHCPv6 DAD to complete
Apr 17 12:46:27 localhost dhcpcd[321]: eth0: adding default route via fe80::1
Apr 17 12:46:28 localhost dhcpcd[292]: eth0: pid 0 deleted address 2001:8b0:de0a:bb0d::3/128
Apr 17 12:46:28 localhost dhcpcd[321]: eth0: pid 0 deleted address 2001:8b0:de0a:bb0d::3/128
Apr 17 12:46:28 localhost dhcpcd[292]: eth0: deleting default route via fe80::1
Apr 17 12:46:28 localhost dhcpcd[321]: eth0: deleting default route via fe80::1
Apr 17 12:46:28 localhost kernel: [ 12.877707] IPv6: eth0: IPv6 duplicate address 2001:8b0:de0a:bb0d::3 used by 34:12:98:04:2f:3d detected!
The DHCPv6 DAD see the address being advertise by another machine.
When I deleted /var/lib/dhcpcd5/eth0.lease6 the rpi sucesfully negotiated a valid DHCPv6 address.
Is there something you can do about this? Should the lease file be removed or some other solution?
Thank you for making this program, I now know a lot more about IPv6!
Thanks,
James
Archive administrator: postmaster@marples.name