In NAT mode, the VM can still access the network, but the network receiver does not know that the network requests come from the host. The external network cannot access the VM network. The IP addresses of the VM and host are on different subnets, for example, 192.168.1.1 and 192.168.1.2.

The help notes that if you want to access the network purely from a virtual machine, NAT is sufficient.

Host-only: The VM is still assigned an IP address, but this IP address can be accessed Only in the environment in which the VM is running. The address is not visible to the outside world.

Bridged: A virtual machine with a separate IP address can be accessed by other hosts on the network.

VirtualBox help documentation:

www.virtualbox.org/manual/ch06…

VirtualBox virtualizes the following physical nics:

The VirtualBox website has a table that clearly shows the differences between several network modes:

The first column VM <-> Host: indicates whether the virtual machine and Host can access each other over the network.

The second column VM1 <-> VM2: indicates whether VMS can access each other over the network

Column 3 VM -> Internet: Indicates whether the virtual machine can access the network

The fourth column VM < -Internet: Indicates whether the network can access the VIRTUAL machine

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: