Skip to content

Instantly share code, notes, and snippets.

@stvhwrd
Created February 25, 2017 19:44
Show Gist options
  • Save stvhwrd/e1c118b3f0c8c9d79089b5a25d958a8e to your computer and use it in GitHub Desktop.
Save stvhwrd/e1c118b3f0c8c9d79089b5a25d958a8e to your computer and use it in GitHub Desktop.
/etc/network/interfaces content for assigning a static ip to local machine
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s25
iface enp0s25 inet static
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.4.4 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment