3 ms·
While the article is focused on OpenBSD, implementing DHCPv6 with systemd-networkd is really slick and typically a 1-2 line config for your interfaces: Upstrea
by candiddevmike 2y ago
While the article is focused on OpenBSD, implementing DHCPv6 with systemd-networkd is really slick and typically a 1-2 line config for your interfaces:
Upstream:
[DHCPv6]
PrefixDelegationHint=::/56
Downstream:
[DHCPv6PrefixDelegation]
Token=::1
- tssva 2y agoI have never been able to get DHCPv6PD working with systemd-networkd on my Verizon Fios connection at home. I have using other software.
- robhlt 2y agoIt's working on my fios connection, but I remember that wasn't always the case. Verizon may have changed something recently or the issue was fixed in a recent systemd release. My config looks like this with systemd 255: wan.network: [Network] DHCP=yes IPv6AcceptRA=yes IPForward=yes [IPv6AcceptRA] UseDNS=no DHCPv6Client=yes [DHCPv6] UseDNS=no UseHostname=no UseDomains=no PrefixDelegationHint=::/56 [Link] RequiredForOnline=routable lan.network: [Network] Address=xx.xx.xx.1/24 IPForward=yes DHCPv6PrefixDelegation=yes [DHCPv6PrefixDelegation] SubnetId=0 Token=static:::1 That lan config can be re-used on other vlan interfaces too, to take full advantage of the /56 prefix. Just increment the SubnetID (hex only for some reason, so the next is 0x1).
- tssva 2y agoI haven't tried it in about 6 months using whatever version was packaged with Ubuntu 22.04. My configuration was basically the same as yours. systemd-networkd seemed to always be a moving target as far as configuration syntax but mine was mostly the same as yours syntactically and functionally the same. It is mute now. I deployed a new Ubiquiti network including cameras about 6 months ago resulting in the linux router/firewall being replaced with a Dream Machine Pro.
- 38 2y ago[flagged]
- simoncion 2y agoWhile I understand that this would not be a situation that's typical for a residential LAN, how does systemd-networkd handle assigning prefixes assigned from multiple DHCPv6-PD assignments? To make it more concrete, imagine for a moment that one's border router has multiple WAN interfaces, each with its own prefix delegated to it. I notice that there's an UplinkInterface parameter [0], but if the documentation is not silent on whether or not there's any support at all for delegating multiple prefixes to the same LAN interface, then I missed it. [0] <https://man.archlinux.org/man/systemd.network.5#%5BDHCPPREFIXDELEGATION%5D_SECTION_OPTIONS https://man.archlinux.org/man/systemd.network.5#%5BDHCPPREFI...>