Advertisement
pklaus

Static network setup set up on Arch Linux using netctl

May 31st, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Network configuration using `netctl`, see <https://wiki.archlinux.org/index.php/Netctl>:
  2.  
  3. cp /etc/netctl/examples/ethernet-static /etc/netctl/pcextreme
  4.  
  5. Change the config file `/etc/netctl/pcextreme` to:
  6.  
  7. #!ini
  8. Description="Settings for PCextreme's Raspberry Pi Collocation"
  9. Interface=eth0
  10. Connection=ethernet
  11. IP=static
  12. Address=('582.631.871.22')
  13. #Routes=('192.168.0.0/24 via 192.168.1.2')
  14. Gateway='582.631.871.1'
  15. DNS=('8.8.8.8' '208.67.222.222')
  16.  
  17. ## For IPv6 autoconfiguration
  18. IP6=stateless
  19.  
  20. ## For IPv6 static address configuration
  21. #IP6=static
  22. #Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
  23. #Routes6=('abcd::1234')
  24. #Gateway6='1234:0:123::abcd'
  25.  
  26. Then start, test and then enable the profile (creates a systemd startup entry):
  27.  
  28. #!bash
  29. # Testing etc.:
  30. ip link set eth0 down; sleep 1; netctl start pcextreme
  31. # When everything works fine, disable RaspberryPi's standard DHCP config and enable the netctl profile:
  32. systemctl disable dhcpcd@eth0; netctl enable pcextreme
  33.  
  34. You need to bring the interface down first or netctl will not take care of it. More [here](https://bbs.archlinux.org/viewtopic.php?id=161263).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement