Skip to content

Instantly share code, notes, and snippets.

@kasparsb
Created October 28, 2015 21:20
Show Gist options
  • Save kasparsb/d51eda85fe288c67287b to your computer and use it in GitHub Desktop.
Save kasparsb/d51eda85fe288c67287b to your computer and use it in GitHub Desktop.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.42
netmask 255.255.255.0
gateway 192.168.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