systemd tips

Units

Drop-in

systemctl edit servicename
systemctl revert servicename
systemctl cat servicename

Network

Simple dhcp config

/etc/systemd/network/00-wired.network

[Match]
Name=enp1s0

[Network]
DHCP=yes

Bridge

3 files are needed to make it work. Each file is described below

/etc/systemd/network/10-bridge.netdev

[NetDev]
Name=br0
Kind=bridge

/etc/systemd/network/20-bridge.network

[Match]
Name=br0

[Network]
Address=192.168.29.99/24
Gateway=192.168.29.1
DNS=192.168.29.1

/etc/systemd/network/30-enp3s0.network

[Match]
Name=enp3s0

[Network]
Bridge=br0