Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address
Roy Marples
Thu Jan 16 17:46:47 2020
On 16/01/2020 13:02, James Gross wrote:
Jan 16 12:53:09 [280]: dhcpcd-8.99.0 starting
Jan 16 12:53:09 [301]: udev: starting
Jan 16 12:53:09 [301]: dev: loaded udev
Jan 16 12:53:09 [301]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
Looks like you have disabled privsep at compile time?
Jan 16 12:53:13 [301]: eth0: adding address 2001:8b0:de0a:bb0e::2/128
Jan 16 12:53:13 [301]: eth0: pltime 86400 seconds, vltime 86400 seconds
Jan 16 12:53:13 [301]: eth0: renew in 43200, rebind in 69120, expire in 86400
Jan 16 12:53:13 [301]: eth0: pid 0 deleted address 2001:8b0:de0a:bb0e::2/128
This is the real issue.
It looks like the kernel deleted the address. But why?
I've comitted some code to maybe fix a related issue with privsep and ignoring
messages we send, but I'm not sure that will fix it.
Can you try this patch to get more debug please?
diff --git a/src/ipv6.c b/src/ipv6.c
index c49300c1..ba9415f6 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -672,6 +672,7 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct timespec *now)
}
elapsed = (uint32_t)eloop_timespec_diff(now, &ia->acquired,
NULL);
+ logdebugx("%s: elapsed time %u", ifp->name, elapsed);
if (ia->prefix_pltime != ND6_INFINITE_LIFETIME) {
if (elapsed > ia->prefix_pltime)
ia->prefix_pltime = 0;
Archive administrator: postmaster@marples.name