Skip to content

Instantly share code, notes, and snippets.

@aurels
Created July 1, 2010 15:16
Show Gist options
  • Save aurels/460090 to your computer and use it in GitHub Desktop.
Save aurels/460090 to your computer and use it in GitHub Desktop.
# Ubuntu fixed IP
/etc/network/interfaces :
auto eth0
iface eth0 inet static
address 192.168.0.142
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
/etc/resolv.conf :
nameserver 8.8.8.8 # google DNS
nameserver 8.8.4.4 # google DNS
$ sudo /etc/init.d/networking restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment