VirtualBox Ubuntu network NAT + host-only

VBOX Settings in preferences for host-only network
VBOX Settings for Guest
guest network settings
EDIT: /etc/network/interfaces


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

# Second network interface
auto enp0s8
iface enp0s8 inet static
address 192.168.56.101
netmast 255.255.255.0
network 192.168.56.0
broadcast 192.168.1.255
gateway 192.168.56.100
dns-nameservers 192.168.56.100