Created
October 17, 2018 05:42
-
-
Save niclaslindstedt/6fc2ec71f6b8da15e63f73a3537fc65a to your computer and use it in GitHub Desktop.
Static 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
#/etc/network/interfaces | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.100.101 | |
netmask 255.255.255.0 | |
network 192.168.100.0 | |
broadcast 192.168.100.255 | |
gateway 192.168.100.1 | |
dns-nameservers 1.1.1.1 1.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment