Created
November 7, 2023 17:11
-
-
Save kgersen/bce1c9f8750ac4b3a2b36aeacaa96303 to your computer and use it in GitHub Desktop.
dhcpv6 prefix delegation with systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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