Skip to content

Instantly share code, notes, and snippets.

@ashrithr
Created February 12, 2013 22:00
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 ashrithr/4773834 to your computer and use it in GitHub Desktop.
Save ashrithr/4773834 to your computer and use it in GitHub Desktop.
Ubuntu Static IP
sudo cp /etc/network/interfaces /etc/network/interfaces_backup
sudo vi /etc/network/interfaces
## leave this alone
## auto lo
## iface lo inet loopback
## edit the eth0 to have static ip address 192.168.1.11
auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment