You'll have to enable prefix delegation. dnsmasq should not be necessary though, I think. This appears to explain all steps:
https://major.io/p/dhcpv6-prefix-delegation-with-systemd-networkd/
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
You'll have to enable prefix delegation. dnsmasq should not be necessary though, I think. This appears to explain all steps:
https://major.io/p/dhcpv6-prefix-delegation-with-systemd-networkd/
I don't want systemd-networkd to delegate the prefixes and instead use dnsmasq for that.
However, systemd-networkd should at least be able get the prefix on the 1und1 interface, where I configured IPv6AcceptRA, but for whatever reason it only gets a single address with a /64
prefix.
The following configuration pulled from your article didn't help either:
[DHCPv6]
PrefixDelegationHint=::/56
Apparently, the article has a few minor errors as well, e.g. they configure lanbridge.network
twice with different settings and once call a setting ConfigureWithoutCarrier=yes
and once ConfigureWithoutCarrier=true
. I don't really trust inconsistent tutorials 😅
Checking systemd-networkd logs, I also get the following error:
Could not set NDisc address: Invalid argument
Currently upgrading to Debian 12, maybe this is a bug…>
The tutorials give a good overview for further research, though. If you do not want to use systemd to manage the delegation you probably need a separate dhcpv6 client that does this and disable dhcp for systemd-networkd (slaac is probably ok to keep)