This is a quick guide to set a static IP address on an Arch install for the Raspberry PI. These steps are not specific to the PI version. So feel free to use them for anything that uses SystemD and NetworkManager.
Update currently installed software then install NetworkManager 1 2
pacman -Syu
pacman -S networkmanager
Enable and start the service:
systemctrl enable NetworkManager
systemctl start NetworkManager
Check that it is working. You should see the status of your network.:
nmcli
Now list all available wireless networks the device can see. Once you’ve found your one, connect to it using your supplied password:
nmcli device wifi list
nmcli device wifi connect <SSID> password <password>
Configure it to auto connect, set static IPv4, gateway, and DNS address.
nmcli connection modify '<SSID>' connection.autoconnect yes ipv4.method manual ipv4.address 192.168.2.199/24 ipv4.gateway 192.168.2.1 ipv4.dns 192.168.2.1
Bring the interface down and back up to make the configuration take affect.
nmcli connection down <SSID>
nmcli connection up <SSID>
Finally, make sure all is good - then reboot without an Ethernet cable.
nmcli
reboot
8 Dec 2019
Website Last Updated on 4 Oct 2024 (CC BY-SA 4.0)
This site uses JQuery and nanogallery2 hosted by jsdelivr.net
for the Flickr photo feed and GoatCounter for user insights.