Re: Prefix delegation for /60
Roy Marples
Thu Sep 07 10:17:02 2017
Hi Scott
On 05/09/2017 12:09, Scott Leggett wrote:
> My ISP provides a /60 and I'm having trouble delegating it correctly to
> the other interfaces on my router using dhcpcd.
>
> This is on current master/HEAD (dhcpcd-7.0.0-rc1-55-g5da607b5).
>
> /etc/dhcpcd.conf:
>
> noipv6rs
> allowinterfaces enp1s0
> interface enp1s0
> ipv6rs
> ia_pd 1 enp2s0/1 wlxc412f52e39d2/2 wlxc412f52ebb7b/3 enp3s0/4
Looks fine.
> log snippet:
>
> systemd[1]: Started DHCP Client Daemon.
> dhcpcd[248]: enp1s0: soliciting a DHCPv6 lease
> dhcpcd[248]: enp1s0: ADV 2401:a400:2704:1750::/60 from fe80::d6ca:6dff:fe74:72f8
> dhcpcd[248]: enp1s0: REPLY6 received from fe80::d6ca:6dff:fe74:72f8
> dhcpcd[248]: 2401:a400:2704:1750::/60 262
> dhcpcd[248]: 2401:a400:2704:1750::/60 258
I've pushed a commit to remove that now useless debug:
https://dev.marples.name/rDHC2a9c90cb90828bce6621a5b92e67e375186e5c81
> dhcpcd[248]: enp1s0: adding address 2401:a400:2704:1750::/60
> dhcpcd[248]: enp1s0: renew in 302400, rebind in 483840, expire in 604800 seconds
Heh, we shouldn't treat delegated prefixes as addresses
Fixed here:
https://dev.marples.name/rDHC03e4b0ec893f32acebcc2324a1cc608e2782f020
> dhcpcd[248]: lo: adding reject route to 2401:a400:2704:1700::/60
> dhcpcd[248]: enp2s0: adding address 2401:a400:2704:1701::1/64
> dhcpcd[248]: enp3s0: adding address 2401:a400:2704:1704::1/64
> dhcpcd[248]: wlxc412f52ebb7b: adding address 2401:a400:2704:1703::1/64
> dhcpcd[248]: wlxc412f52e39d2: adding address 2401:a400:2704:1702::1/64
> dhcpcd[248]: enp2s0: adding route to 2401:a400:2704:1701::/64
> dhcpcd[248]: enp3s0: adding route to 2401:a400:2704:1704::/64
> dhcpcd[248]: wlxc412f52ebb7b: adding route to 2401:a400:2704:1703::/64
> dhcpcd[248]: wlxc412f52e39d2: adding route to 2401:a400:2704:1702::/64
>
> Notice that the prefix received from the upstream router
> (2401:a400:2704:1750::/60), appears to be incorrectly interpreted later
> as a /56 (2401:a400:2704:1700::/60), which is then delegated incorrectly
> to the interfaces. E.g. the delegation to enp2s0 should be
> 2401:a400:2704:1751::1/64, but instead it is 2401:a400:2704:1701::1/64.
>
> Have I misconfigured dhcpcd, misunderstood prefix delegation, or hit a
> bug?
I don't see that in your log snippet?
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.
Roy
Archive administrator: postmaster@marples.name