[Match] Name=eth0 ## Only use one of these blocks!! ### DHCP (default most want) [Network] DHCP=yes DNSOverTLS=opportunistic DNS=1.1.1.1 DNS=1.0.0.1 # Link discovery causes some issues so disable it. LLDP=no ## dhcp config end ## LAN # Uncomment all below if you want to use eth0 as a lan network. #[Network] # IP address range. #Address=192.168.156.1/24 # Packet forwarding. #IPForward=yes # Masquerade. #IPMasquerade=both # Link discovery causes some issues so disable it. #LLDP=no #[DHCPServer] # Lease time #DefaultLeaseTimeSec=300 # DNS to serve #DNS=1.1.1.1 #DNS=1.0.0.1 # Enable serving of DHCP addresses from the network range. #DHCPServer=yes # Below not supported systemd < 250 #[DHCPServerStaticLease] #MACAddress=xx:xx:xx:xx:xx:xx #Address=192.168.156.2 ## lan end