Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save braynm/701de6e310e1e506bdbd57942d3cf4d5 to your computer and use it in GitHub Desktop.
Save braynm/701de6e310e1e506bdbd57942d3cf4d5 to your computer and use it in GitHub Desktop.
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# Host Only Network
auto enp0s3
iface enp0s3 inet static
dns-nameservers 8.8.8.8 8.8.4.4
address 192.168.56.106 #put your desired static ip here
network 192.168.56.0
netmask 255.255.255.0
broadcast 192.168.56.255
# NAT Network
auto enp0s8
iface enp0s8 inet dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment