- List your networking interfaces networkctl. Take note of the device name, for example eth0, eth1
- Change directory to change to /etc/systemd/network and list files. You should see a file named 10-dhcp-en.network
- Remame file 10-dhcp-en.network.backup. This disables DHCP.
- Create a new file 10-static-en.network
[Match]
Name=eth0
[Network]