Created
January 4, 2024 21:51
-
-
Save mortn/a409194c275ce2aa870e92cdcaa10f0c to your computer and use it in GitHub Desktop.
working native systemd-networkd dhcpserver in eth.network
This file contains 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
[Match] | |
Name=br0 | |
[Network] | |
Address=10.0.0.7/24 | |
#Gateway=10.0.0.1 | |
DNS=10.0.1.5 | |
Domains=domain example.com | |
#LinkLocalAddressing=ipv6 | |
ConfigureWithoutCarrier=yes | |
DHCPServer=yes | |
IPMasquerade=ipv4 | |
[DHCPServer] | |
PoolOffset=100 | |
PoolSize=50 | |
EmitDNS=yes | |
DNS=10.0.1.5 | |
EmitRouter=yes | |
Router=10.0.0.1 | |
[DHCPv4] | |
SendOption=119:string:\x03domain\x00\x03example\x02com\x00m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment