index.html :: rss :: github :: telegram :: email

migrate to systemd-networkd

22 Aug 2024

Make "systemd-networkd" manage your network interfaces (wired, in that case):

	# /etc/systemd/network/10-wired-dhcp.network
	[Match]
	Name=enp2s0

	[Network]
	DHCP=yes

	[DHCP]
	UseDHS=true
	# /etc/systemd/network/10-wired-static.network
	[Match]
	Name=enp2s0

	[Network]
	Address=10.1.10.9/24
	Gateway=10.1.10.1
	DNS=10.1.10.1
sudo systemctl start systemd-networkd.service
sudo systemctl enable systemd-networkd.service