Skip to content

Instantly share code, notes, and snippets.

@kramarama
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save kramarama/10502812 to your computer and use it in GitHub Desktop.

Select an option

Save kramarama/10502812 to your computer and use it in GitHub Desktop.
https://help.ubuntu.com/12.04/serverguide/network-configuration.html
sudo mcedit /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-search rama.dev
dns-nameservers 91.144.184.3 91.144.186.3
sudo /etc/init.d/networking restart
sudo nohup sh -c "ifdown eth0 && ifup eth0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment