Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Last active April 27, 2018 11:24
Show Gist options
  • Save karl-gustav/785990650a4902bc598977339ebec44f to your computer and use it in GitHub Desktop.
Save karl-gustav/785990650a4902bc598977339ebec44f to your computer and use it in GitHub Desktop.
Put this into /etc/network/interfaces to have fixed IP in linux
auto lo
iface lo inet loopback
# Uncomment this to use DHCP
# auto eth0
# iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment