Created
June 1, 2014 14:32
-
-
Save baltpeter/4d26b8fd7d05bcabf642 to your computer and use it in GitHub Desktop.
Configure Debian/Ubuntu to use static IP instead of DHCP
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
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