Static IP Setup On Arch Linux ARM

http://archlinuxarm.org/forum/viewtopic.php?f=58&t=8045

Try this, in a chroot (assumes you are root. you can always add sudo to the beginning of each command if you prefer sudo). Note in the below it is eth0.network not eth0-network as stated in your post. Systemd-networkd uses *.network files.

nano /etc/systemd/network/eth0.network `

Then paste this in:

<pre>`[Match]
Name=eth0

[Network]
Address=192.168.1.8/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4
`</pre>

You will then need to disable netcl. To find out what is enabled that is netctl related, run this:

<pre>`systemctl list-unit-files
`</pre>

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:

<pre>`systemctl disable [email protected]
`</pre>

You will then need systemd-networkd enabled:

<pre>`systemctl enable systemd-networkd
加载评论