Last active
April 27, 2018 11:24
-
-
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
This file contains hidden or 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
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