Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address
Roy Marples
Mon Apr 20 14:17:34 2020
Hi James
On 17/04/2020 16:51, James G wrote:
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!
Looks to me like you have two competing processes 292 and 321.
What does this command look like?
ps axu | grep dhc
Roy
Archive administrator: postmaster@marples.name