Skip to content

Instantly share code, notes, and snippets.

@artynet
Created January 21, 2019 11:00
Show Gist options
  • Save artynet/496d448fe693251f92ede845f173b822 to your computer and use it in GitHub Desktop.
Save artynet/496d448fe693251f92ede845f173b822 to your computer and use it in GitHub Desktop.
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
#The loopback newtork interface
auto lo
iface lo inet loopback
# The primary network interface host-only adapter
auto enp0s8
allow-hotplug enp0s8
iface enp0s8 inet static
address 192.168.56.5
network 192.168.56.0
netmask 255.255.255.0
# gateway 192.168.56.1
# dns-nameservers 8.8.8.8 192.168.56.1
# The NAT
auto enp0s3
iface enp0s3 inet dhcp
# address 10.0.2.15
# network 10.0.2.0
# netmask 255.255.255.0
# dns-nameservers 8.8.8.8 10.0.2.1
# References :
# https://dev.to/isabolic99/how-to-set-host-only-adapter-on-vm-virtual-box-2jka
# https://www.tecmint.com/network-between-guest-vm-and-host-virtualbox/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment