Guest User

Untitled

a guest
Dec 16th, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. CODE: SELECT ALL
  2. nano /etc/systemd/network/eth0.network
  3.  
  4.  
  5. Then paste this in:
  6. CODE: SELECT ALL
  7. [Match]
  8. Name=eth0
  9.  
  10. [Network]
  11. Address=192.168.1.8/24
  12. Gateway=192.168.1.1
  13. DNS=8.8.8.8
  14. DNS=8.8.4.4
  15. ## OpenDNS
  16. DNS=208.67.222.222
  17. DNS=208.67.220.220
  18.  
  19.  
  20. You will then need to disable netcl. To find out what is enabled that is netctl related, run this:
  21. CODE: SELECT ALL
  22. systemctl list-unit-files
  23.  
  24.  
  25. 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:
  26. CODE: SELECT ALL
  27. systemctl disable netctl@eth0.service
  28.  
  29.  
  30. You will then need systemd-networkd enabled:
  31. CODE: SELECT ALL
  32. systemctl enable systemd-networkd
Add Comment
Please, Sign In to add comment