Static IP address on Arch Linux 682 B

1234567891011121314151617181920212223242526272829303132
  1. CODE: SELECT ALL
  2. nano /etc/systemd/network/eth0.network
  3. Then paste this in:
  4. CODE: SELECT ALL
  5. [Match]
  6. Name=eth0
  7. [Network]
  8. Address=192.168.1.8/24
  9. Gateway=192.168.1.1
  10. DNS=8.8.8.8
  11. DNS=8.8.4.4
  12. ## OpenDNS
  13. DNS=208.67.222.222
  14. DNS=208.67.220.220
  15. You will then need to disable netcl. To find out what is enabled that is netctl related, run this:
  16. CODE: SELECT ALL
  17. systemctl list-unit-files
  18. 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:
  19. CODE: SELECT ALL
  20. systemctl disable netctl@eth0.service
  21. You will then need systemd-networkd enabled:
  22. CODE: SELECT ALL
  23. systemctl enable systemd-networkd