dhcpcd-discuss

Re: Prefix delegation for /60

Roy Marples

Fri Sep 08 16:45:02 2017

Hi Scott

On 07/09/2017 12:07, Scott Leggett wrote:
> Hi Roy,
> 
>> If the above two fixes don't fix it for you, please provide more logs
>> but with debug enabled in dhcpcd.conf this time please.
> 
> Thanks for taking a look at this, I've now added debug to my
> dhcpcd.conf, and made it ipv6only to more clearly isolate the issue:
> 
>   debug
>   ipv6only
>   noipv6rs
>   allowinterfaces enp1s0
>   interface enp1s0
>       ipv6rs
>       ia_pd 1 enp2s0/1 wlxc412f52e39d2/2 wlxc412f52ebb7b/3 enp3s0/4
> 
> Actually I tested 7.0.0-rc1, which worked for me! So I think this
> is a regression. I ran git bisect and was able to identify the bad
> commit:
> 
>   6b068a4357a1f6644b4748cdf72edd280f73f135 is the first bad commit
>   commit 6b068a4357a1f6644b4748cdf72edd280f73f135
>   Author: Roy Marples <roy@xxxxxxxxxxxx>
>   Date:   Tue Jun 13 20:47:49 2017 +0100
>   
>       Make ipv6_newaddr() more flexable so it's the sole source of
>       creating ipv6_addr structures.
>   
> 
> On dhcpcd-7.0.0-rc1-20-g6b068a43 (the first bad commit), I get the
> incorrect prefix delegation:
> 
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: REPLY6 received from fe80::d6ca:6dff:fe74:72f8
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: 2401:a400:2704:1750::/60: became stale
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: adding address 2401:a400:2704:1750::/60
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: pltime 544320 seconds, vltime 604800 seconds
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: renew in 302400, rebind in 483840, expire in 604800 seconds
>   Sep 07 20:49:43 gateway dhcpcd[1638]: lo: adding reject route to 2401:a400:2704:1700::/60
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: writing lease `/var/lib/dhcpcd5/enp1s0.lease6'
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp1s0: delegated prefix 2401:a400:2704:1750::/60
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp2s0: adding address 2401:a400:2704:1701::1/64
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp2s0: pltime 544320 seconds, vltime 604800 seconds
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp2s0: waiting for DHCPv6 DAD to complete
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp3s0: adding address 2401:a400:2704:1704::1/64
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp3s0: pltime 544320 seconds, vltime 604800 seconds
>   Sep 07 20:49:43 gateway dhcpcd[1638]: enp3s0: waiting for DHCPv6 DAD to complete
> 
> Whereas on dhcpcd-7.0.0-rc1-19-gb059aeb6 (the previous commit), I get
> the correct prefix delegation:
> 
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp1s0: REPLY6 received from fe80::d6ca:6dff:fe74:72f8
>   Sep 07 21:00:54 gateway dhcpcd[1840]: lo: adding reject route to 2401:a400:2704:1750::/60
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp1s0: writing lease `/var/lib/dhcpcd5/enp1s0.lease6'
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp1s0: delegated prefix 2401:a400:2704:1750::/60
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp2s0: adding address 2401:a400:2704:1751::1/64
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp2s0: pltime 544320 seconds, vltime 604800 seconds
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp2s0: waiting for DHCPv6 DAD to complete
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp3s0: adding address 2401:a400:2704:1754::1/64
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp3s0: pltime 544320 seconds, vltime 604800 seconds
>   Sep 07 21:00:54 gateway dhcpcd[1840]: enp3s0: waiting for DHCPv6 DAD to complete
> 
> I can send through more detailed logs and do more testing if that will help!
> 

I think this is fixed here: https://dev.marples.name/D128
Please apply that patch and report back (either here or ideally by the
web ui by accepting it in a comment) if it fixes it or not!

Roy

Follow-Ups:
Re: Prefix delegation for /60Scott Leggett
References:
Prefix delegation for /60Scott Leggett
Re: Prefix delegation for /60Roy Marples
Re: Prefix delegation for /60Scott Leggett
Archive administrator: postmaster@marples.name