systemd-network

DHCP:

/etc/systemd/network/20-dhcp.network
[Match]
Name=enp3*

[Network]
DHCP=yes

Static IP:

/etc/systemd/network/10-static-enp3s0.network
[Match]
Name=enp3s0

[Network]
Address=192.2.0.50/24
Gateway=192.2.0.1
DNS=1.1.1.1

Aktivierung:

systemctl restart systemd-networkd
systemctl status systemd-networkd