Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.