Configuring Static IP Addresses¶
It is sometimes useful to provide static IP configuration for a network interface instead of relying on DHCP.
Using systemd-networkd¶
systemd-networkd manages network configurations and configures network
devices as they appear.
Create /etc/systemd/network/00-eth0-static.network with the following
content:
Restart systemd-networkd:
Check the configured address: