Static IP on Arch Linux
I was searching how to set static IP on Arch Linux Raspberry Pi.
Here is what I did.
1. Edit the file eth0.network. Systemd-networkd uses *.network files.
paste the following (192.168.1.100)
2. You will then need to disable netcl. To find out what is enabled that is netctl related, run this:
Once you identify all netctl related stuff. Go through and disable all netctl related stuff. You may have more to disable than just the below:
3. You will then need systemd-networkd enabled:
4. Login with
Here is what I did.
1. Edit the file eth0.network. Systemd-networkd uses *.network files.
$ nano /etc/systemd/network/eth0.network
paste the following (192.168.1.100)
[Match]
Name=eth0
[Network]
Address=192.168.1.100/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4
Name=eth0
[Network]
Address=192.168.1.100/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4
2. You will then need to disable netcl. To find out what is enabled that is netctl related, run this:
systemctl list-unit-files
Once you identify all netctl related stuff. Go through and disable all netctl related stuff. You may have more to disable than just the below:
systemctl disable netctl@eth0.service
3. You will then need systemd-networkd enabled:
systemctl enable systemd-networkd
4. Login with
ssh root@192.168.1.100
Leave a Comment