Skip to content

Instantly share code, notes, and snippets.

@aspyker
Created August 19, 2017 02:38
Show Gist options
  • Save aspyker/654a49432cbe185e0d6c4c40a1b5e9e0 to your computer and use it in GitHub Desktop.
Save aspyker/654a49432cbe185e0d6c4c40a1b5e9e0 to your computer and use it in GitHub Desktop.
/etc/network/interfaces
# 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 enp0s3
iface enp0s3 inet dhcp
# The secondary network interface
auto enp0s8
iface enp0s8 inet static
address 192.168.56.254
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment