VirtualBox configuration for mutual access between internal and external networks [Fedora]

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.