Skip to content

Instantly share code, notes, and snippets.

@adionditsak
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adionditsak/9081187 to your computer and use it in GitHub Desktop.
Save adionditsak/9081187 to your computer and use it in GitHub Desktop.
A bit of eth0 and nw configuration for Debian snippets - static ip
# eth0
$ vim /etc/network/interfaces
# Auto generated lo interface
auto lo
iface lo inet loopback
# Static ip
iface eth0 inet static
address 10.0.0.50
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1
-
# Restart network
$ sudo service networking restart
-
# Local DNS
$ vim /etc/resolv.conf
# Google DNS
nameserver 8.8.8.8
# Fallback at OpenDNS
nameserver 208.67.222.222
nameserver 208.67.220.220
@adionditsak
Copy link
Author

Test with $ route -n, $ ifconfig and ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment