Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created June 1, 2014 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baltpeter/4d26b8fd7d05bcabf642 to your computer and use it in GitHub Desktop.
Save baltpeter/4d26b8fd7d05bcabf642 to your computer and use it in GitHub Desktop.
Configure Debian/Ubuntu to use static IP instead of DHCP
nano /etc/network/interfaces
iface eth0 inet static
address 10.42.4.4
netmask 255.0.0.0
gateway 10.10.10.1
dns-nameservers 10.10.10.1 8.8.8.8 8.8.4.4
dns-search altpeter.me
/etc/init.d/networking restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment