Environment: Host OS Windows XP SP3 Virtual Machine Software & nb
Environment:
Host operating system Windows XP sp3
Virtual Machine Software VirtualBox
Virtual Machine operating system Fedora (Linux)
1. Enable the Virtual Computer Fedora to access the Internet
Principle:
NAT (network address translation mode)
The NAT mode enables the virtual system to use the NAT (Network Address Translation) function to access the public network through the network of the host machine. That is to say, you can use the NAT mode to access the Internet in a virtual system. In NAT mode, the TCP/IP configuration information of the virtual system is provided by the DHCP server of the VMnet8 (NAT) Virtual Network and cannot be modified manually, therefore, the virtual system cannot communicate with other real hosts in the local area network. The biggest advantage of using the NAT mode is that it is very easy for the virtual system to access the Internet. You do not need to configure any other configurations, but only need the host machine to access the Internet.
If you want to use VMWare to install a new virtual system, you can directly access the Internet without manual configuration in the virtual system. We recommend that you use the NAT mode.
Steps:
Set the network connection in VirtualBox and enable the NAT connection mode.
Start Fedora and find that the network is connected successfully. Run FireFox to log on to the Fedora webpage.
Here we can check the IP address of Fedora and the network configuration of Windows, and ping each other.
Fedora can ping Windows
However, Windows cannot ping Fedora.
This is understandable because the NAT network connection mode means that the virtual machine accesses the Internet through the network of the host machine, so the Virtual Machine certainly knows the network address of the host machine. However, Windows does not know how to route to 10.0.2.15.
Note that the IP address 10.0.2.5 of Fedora is automatically allocated through DHCP.