Skip to content

Instantly share code, notes, and snippets.

@niclaslindstedt
Created October 17, 2018 05:42
Show Gist options
  • Save niclaslindstedt/6fc2ec71f6b8da15e63f73a3537fc65a to your computer and use it in GitHub Desktop.
Save niclaslindstedt/6fc2ec71f6b8da15e63f73a3537fc65a to your computer and use it in GitHub Desktop.
Static ip in Linux
#/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