Skip to content

Instantly share code, notes, and snippets.

@denis-shvets
Last active August 29, 2015 14:18
Show Gist options
  • Save denis-shvets/3fbd76d8a33a72cdb219 to your computer and use it in GitHub Desktop.
Save denis-shvets/3fbd76d8a33a72cdb219 to your computer and use it in GitHub Desktop.
Ubuntu: Static IP
# 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