2022-02-03 11:12:31 +00:00
|
|
|
[Network]
|
2022-02-03 17:19:35 +00:00
|
|
|
# IP address range.
|
2022-02-03 11:12:31 +00:00
|
|
|
Address=192.168.156.1/24
|
|
|
|
|
2022-05-28 13:47:48 +00:00
|
|
|
# As systemd-networkd doesn't yet *fully* support being a dhcp server
|
|
|
|
# setup dnsmasq instead.
|
|
|
|
# Enable serving of DHCP addresses from the network range.
|
|
|
|
#DHCPServer=yes
|
|
|
|
|
2022-02-04 16:01:39 +00:00
|
|
|
# Packet forwarding.
|
2022-02-03 11:12:31 +00:00
|
|
|
IPForward=yes
|
|
|
|
|
2022-02-04 16:01:39 +00:00
|
|
|
# Masquerade.
|
|
|
|
IPMasquerade=both
|
2022-02-03 11:12:31 +00:00
|
|
|
|
2022-03-27 10:27:24 +00:00
|
|
|
# Link discovery causes some issues so disable it.
|
2022-02-03 11:12:31 +00:00
|
|
|
LLDP=no
|
|
|
|
|
2022-02-04 08:37:41 +00:00
|
|
|
# As systemd-networkd doesn't yet *fully* support being a dhcp server
|
|
|
|
# setup dnsmasq instead.
|
|
|
|
#[DHCPServer]
|
2022-02-03 11:12:31 +00:00
|
|
|
|
|
|
|
# Lease time
|
2022-02-04 08:37:41 +00:00
|
|
|
#DefaultLeaseTimeSec=300
|
2022-02-03 11:12:31 +00:00
|
|
|
|
|
|
|
# DNS to serve
|
2022-02-04 08:37:41 +00:00
|
|
|
#DNS=1.1.1.1
|
|
|
|
#DNS=1.0.0.1
|
|
|
|
|
2022-02-03 17:19:35 +00:00
|
|
|
#[DHCPServerStaticLease]
|
|
|
|
#MACAddress=xx:xx:xx:xx:xx:xx
|
|
|
|
#Address=192.168.156.2
|