Advertisement
niammuddin

Static IP Armbian

Apr 14th, 2019
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. source /etc/network/interfaces.d/*
  2.  
  3. # Wired adapter #1
  4. #allow-hotplug eth0
  5. #no-auto-down eth0
  6. #iface eth0 inet dhcp
  7.  
  8.  
  9. #static IP
  10. auto eth0
  11. iface eth0 inet static
  12. address 192.168.150.10
  13. netmask 255.255.255.0
  14. gateway 192.168.150.1
  15. dns-nameservers 8.8.8.8 8.8.4.4
  16.  
  17. # hwaddress ether # if you want to set MAC manually
  18. # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
  19.  
  20.  
  21. # Wireless adapter #1
  22. # Armbian ships with network-manager installed by default. To save you time
  23. # and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings
  24. # manually. The below lines are only meant as an example how configuration could
  25. # be done in an anachronistic way:
  26. #
  27. #allow-hotplug wlan0
  28. #iface wlan0 inet dhcp
  29. #address 192.168.0.100
  30. #netmask 255.255.255.0
  31. #gateway 192.168.0.1
  32. #dns-nameservers 8.8.8.8 8.8.4.4
  33. # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  34. # Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
  35. #wireless-mode Managed
  36. #wireless-power off
  37.  
  38. # Local loopback
  39. auto lo
  40. iface lo inet loopback
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement