Last active
August 29, 2015 14:18
-
-
Save denis-shvets/3fbd76d8a33a72cdb219 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 | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto eth0 | |
iface eth0 inet static | |
address 10.2.1.200 | |
netmask 255.255.255.0 | |
gateway 10.2.1.1 | |
broadcast 10.2.1.255 | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
# /etc/init.d/networking restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment