Voraussetzung: Falls NetworkManager, Interfaces aus der Autokonfiguration herausnehmen
[main] no-auto-default=enp0s31f6
Datei(en) anlegen
[Match] Name=enp0s31f6 [Network] DHCP=ipv4 # nur optional zum Spass ;-) [DHCP] RouteMetric=100
[Match] Name=enp0s31f6 [Network] Address=192.168.1.242/24 Gateway=192.168.1.5
[Match] Name=enp0s31f6 [Network] DHCP=ipv4 Address=10.12.9.42/24
Distributionsspezifischen Networking ausschalten und systemd-networkd einschalten
systemctl disable --now networking.service systemctl enable --now systemd-networkd.service