Bin (to write to me) original blog (http://blog.csdn.net/binbinxyz), reprint please indicate the source!
The Nat mode enables the virtual system to use the NAT (Network Address Translation) function. You do not need to perform any other configuration, but only need the host machine to access the Internet, the virtual machine system accesses the public network through the network of the host machine.
The relationship between a virtual system in the bridge mode and the host machine is like connecting two computers on the same hub. If you want them to communicate with each other, You need to configure the IP address and subnet mask for the virtual system. Otherwise, the communication will fail.
The current host uses a wireless network card to automatically obtain the IP address to access the Internet. The network information is as follows:
Two NICs are configured for Ubuntu in the virtual machine. The network adapter uses Nat to access the Internet, and the network adapter uses bridging to access the host.
In this case, the network adapter automatically obtains the IP address, and the network adapter needs to manually configure the IP address (within the same network segment as the host ).
In this case, the VM system can access the Internet like the host, and the host can also access the VM system.
Host access to Ubuntu in virtualbox