dhcpcd-discuss

Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address

Roy Marples

Sat Dec 21 22:38:48 2019

Hi James

On 21/12/2019 16:33, James Gross wrote:
Hi,

I have two Raspberry Pis running dhcpcd on raspbian buster
Neither of them can get an IPv6 address.
My router is a Zxyel VMG3925-B10B

All the other devices on my network seem to be able to get IPv6 addresses
MacOS
iPhones
Mikrotik router as DHCP client
An old Netgear switch.

Here is the dhcpcd log from one of the Pis

Dec 21 11:22:48 [10971]: eth0: Router Advertisement from fe80::be99:11ff:fe81:6408
Dec 21 11:22:48 [10971]: eth0: adding address 2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Dec 21 11:22:48 [10971]: eth0: pltime 4294967022 seconds, vltime 4294967022 seconds
Dec 21 11:22:48 [10971]: eth0: expired address 2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Dec 21 11:22:48 [10971]: eth0: part of Router Advertisement expired
Dec 21 11:22:48 [10971]: eth0: deleting route to 2001:8b0:de0a:bb0e::/64
Dec 21 11:22:48 [10971]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT

OK, so here's the technical reason.
Your RA times of 4294967022 are bigger than what the time_t of a 32-bit OS can handle.

If that address was recevied at epoch (epoch is 1970/01/01) will expire on GMT: Sunday, 7 February 2106 06:23:42
It's the classic Y2K38 problem.
https://en.wikipedia.org/wiki/Year_2038_problem

I do have a Pi somewhere I burn burn raspbian to.
I'll look into it and see if I can fix it over the Christmas break.

Roy

Follow-Ups:
Re: dhcpcd on raspberry pi doesn't pick up an IPv6 addressRoy Marples
References:
dhcpcd on raspberry pi doesn't pick up an IPv6 addressJames Gross
Archive administrator: postmaster@marples.name