
VirtualBox makes available a virtual NAT router on a network interface for all guests using the NAT network. To access the guest from the host requires port forwarding configuration and might require an entry in the host’s hosts file for specific web interfaces.The virtual NAT router DHCP server can be configured using a CLI only.Guests can’t access each other or the host.Port mappings can be made to allow requests to the host on a specific port to be forwarded to the guest. The response is forwarded back towards the guest (a table of external port to internal IP is kept by the router). The request to the destination IP is done. The internal address is translated to the hosts IP. The NAT router opens a port on the hosts interface. External parties only see a single host interface. No specific VirtualBox network interface needs to be created. The NAT router uses the hosts network interface. The DHCP server can be configured using a CLI (no GUI support). DHCP (Dynamic Host Configuration Protocol) requests on the interface are answered with an IP for the guest and address of the NAT router as gateway. Every guest gets his own virtual router and can’t access other guests. VirtualBox makes available a single virtual isolated NAT router on a network interface inside a guest. The VirtualBox internal DHCP server has no GUI support, only a CLI.Secure (access from outside the host is not possible).No VirtualBox virtual host network interface (device + driver) required.If multiple guests share the same interface name, they are connected like a switch and can access each other. VirtualBox makes available a network interface inside a guest. This information is also available in the following presentation. Access between guests, host and other members of the network is explained and the required configuration is shown. In this blog, the different options are explained and some example use cases are elaborated. With this flexibility comes the challenge of making the correct choices. VirtualBox networking is extremely flexible.
