Prefix delegation for /60
Scott Leggett
Tue Sep 05 11:16:54 2017Hi,
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
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
dhcpcd[248]: enp1s0: adding address 2401:a400:2704:1750::/60
dhcpcd[248]: enp1s0: renew in 302400, rebind in 483840, expire in 604800 seconds
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?
--
Regards,
Scott.
Attachment:
signature.asc
Description: PGP signature
| Re: Prefix delegation for /60 | Roy Marples |
| Re: Prefix delegation for /60 | Neal P. Murphy |