Last active
August 29, 2015 13:56
-
-
Save adionditsak/9081187 to your computer and use it in GitHub Desktop.
A bit of eth0 and nw configuration for Debian snippets - static ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test with $ route -n, $ ifconfig and ping.