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.

$ 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

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

Δεν υπάρχουν σχόλια

Από το Blogger.