Skip to content

Instantly share code, notes, and snippets.

@kgersen
Created November 7, 2023 17:11
Show Gist options
  • Save kgersen/bce1c9f8750ac4b3a2b36aeacaa96303 to your computer and use it in GitHub Desktop.
Save kgersen/bce1c9f8750ac4b3a2b36aeacaa96303 to your computer and use it in GitHub Desktop.
dhcpv6 prefix delegation with systemd
/etc/systemd/network/10-wan.network
[Match]
Name=enp4s0f1.100
[Network]
IPv6AcceptRA=true
DHCP=ipv6 #mettre 'yes' si besoin aussi en IPv4
[IPv6AcceptRA]
UseDNS=false #ou yes si bytel envoi des infos dns
[DHCPv6]
UseAddress=no
WithoutRA=solicit
ClientIdentifier=duid-only
DUIDType=link-layer
DUIDRawData=00:01:XX:XX:XX:XX:XX:XX
IAID=1
# /etc/systemd/network/20-lan.network
[Match]
Name=eth0
[Network]
DHCPPrefixDelegation=yes
IPForward=yes
IPv6SendRA=yes
IPv6AcceptRA=no
[DHCPPrefixDelegation]
SubnetId=1
Announce=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment