Created
May 13, 2013 07:42
-
-
Save sineld/5566756 to your computer and use it in GitHub Desktop.
ubuntu 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
sudo nano /etc/network/interfaces | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo eth0 | |
iface lo inet loopback | |
# The primary network interface | |
iface eth0 inet static | |
address 192.168.1.130 | |
netmask 255.255.255.0 | |
network 192.168.1.1 | |
broadcast 192.168.1.255 | |
gateway 192.168.1.1 | |
sudo /etc/init.d/networking restart | |
ifconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment