Re: prefix delegation on multiple devices; only one delegates prefix gets renewed
Roy Marples
Tue May 23 11:58:29 2017
On 23/05/2017 12:34, David Flatz wrote:
>> It's a problem with dhcpcd, probably fixed here:
>> https://dev.marples.name/D112
>>
>> It might apply cleanly to dhcpcd-6, let me know how it works for you!
>
> Thanks for the reply.
>
> The patch didn't apply cleanly on dhcpcd-6 and modifying it by hand only
> resulted in segfaults. So I switched to 7.0.0-rc1 with the patch
> applied. Unfortunately the behaviour is still the same:
Pity. Let's try and resolve it before I go on holiday.
> info: May 23 10:23:31 [20399]: enp1s0: accepted reconfigure keyThat's interesting. Not many servers do that.
Maybe a cause? Unlikely though.
> warn: May 23 10:53:31 [20399]: enp1s0: failed to renew DHCPv6, rebinding
This isn't great.
> warn: May 23 10:53:32 [20399]: enp1s0: fe80::1edf:fff:feb6:967f: DHCPv6
> REPLY missing Prefix
> err: May 23 10:53:32 [20399]: enp1s0: no useable IA found in lease
> info: May 23 10:53:32 [20399]: enp2s0: deleting address
> 2a02:168:5cf3:d::1/64
> info: May 23 10:53:32 [20399]: enp2s0: deleting route to
> 2a02:168:5cf3:d::/64
> info: May 23 10:53:32 [20399]: enp3s0: deleting address
> 2a02:168:5cf3:5::1/64
> info: May 23 10:53:32 [20399]: enp3s0: deleting route to
> 2a02:168:5cf3:5::/64
This is really bad!
Can you send a wireshark capture for this DHCPv6 transaction please?
> info: May 23 10:53:32 [20399]: enp1s0: soliciting a DHCPv6 lease
> info: May 23 10:53:32 [20399]: enp1s0: ADV 2a02:168:5cf3::/48 from
> fe80::1edf:fff:feb6:967f
> info: May 23 10:53:33 [20399]: enp1s0: accepted reconfigure key
> info: May 23 10:53:33 [20399]: enp1s0: REPLY6 received from
> fe80::1edf:fff:feb6:967f
> info: May 23 10:53:33 [20399]: enp1s0: renew in 1200, rebind in 1800,
> expire in 86400 seconds
> info: May 23 10:53:33 [20399]: lo: adding reject route to
> 2a02:168:5cf3::/48
> info: May 23 10:53:33 [20399]: enp1s0: delegated prefix 2a02:168:5cf3::/48
> info: May 23 10:53:33 [20399]: enp2s0: adding address 2a02:168:5cf3:d::1/64
> info: May 23 10:53:33 [20399]: enp2s0: adding route to 2a02:168:5cf3:d::/64
> info: May 23 11:13:36 [20399]: lo: deleting reject route to
> 2a02:168:5cf3::/48
> #v-
And here we can see that enp3s0 didn't get delegated address.
> I didn't reboot, so there might still be old addresses and routes
> around, I don't know if that's a problem and if I should try again with
> a clean reboot.
dhcpcd should deal with that
> I noticed that on the initial request the "no useable IA found in lease"
> and "REPLY missing Prefix" messages didn't show up anymore but on renew
> they are there again.
>
> Config stayed the same.
>
> Just tell me if I can supply you with more info.
add debug command to dhcpcd.conf
and send wirehark captures (or tcpdump that wireshark can read) of the
DHCPv6 messages please.
dhcpcd is likely correct that there are no useable IA's and did the
right thing, but clearly it's not applying them to the needed interface.
I'll work on a patch try and get more information about this issue as well.
Roy
Archive administrator: postmaster@marples.name