leodutra
8/15/2017 - 1:42 AM

VirtualBox host-only network with bridged network

VirtualBox host-only network with bridged network

Create a host only network

Create a host only network with adapter address 192.168.56.1 and range from 192.168.56.101

Inside the guest

ifconfig eth1 192.168.56.101 netmask 255.255.255.0 up

And setup in /etc/network/interfaces:

auto eth0
auto eth1
iface eth0 inet dhcp
iface eth1 inet static
  address 192.168.56.101
  netmask 255.255.255.0
  network 192.168.56.0
  broadcast 192.168.56.255