Last active
August 29, 2015 13:59
-
-
Save kramarama/10502812 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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