This article was last edited over 3 years ago. Information here may no longer be accurate. Please proceed with caution, and feel free to contact me.
I am assuming that your Arch Linux system is using, or will use,
dhcpcd. If you are using
systemd-networkd, you will have to disable it to
systemctl disable systemd-networkd
systemctl stop systemd-networkd
dhcpcd and enable it at boot. Be careful. If
this is a remote machine, and you screw something up and reboot,
you may not be able to reconnect.
pacman -Sy dhcpcd
systemctl enable dhcpcd
systemctl start dhcpcd
Before assigning the static IP, make sure of the following:
- No other machines on the network shares the static IP you plan to use.
- You assign the static IP to the appropriate network interface.
- The static IP is reserved (not handed out to another machine) by your DHCP server.
See network interface devices with either
ip addr or
In my case, I want to assign a static IP of
192.168.1.2 to interface
Save the appropriate settings in
You can use different DNS information than Google DNS (what I am
using below) if you prefer.
static domain_name_servers=126.96.36.199 188.8.131.52
dhcpcd will pick up on those changes
automatically, but you can also give it a kick by rebooting or
restarting the service.
systemctl restart dhcpcd