Skip to content

Instantly share code, notes, and snippets.

@mortn
Created January 4, 2024 21:51
Show Gist options
  • Save mortn/a409194c275ce2aa870e92cdcaa10f0c to your computer and use it in GitHub Desktop.
Save mortn/a409194c275ce2aa870e92cdcaa10f0c to your computer and use it in GitHub Desktop.
working native systemd-networkd dhcpserver in eth.network
[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