Several network connection modes of VirtualBox virtual machine

Source: Internet
Author: User
Tags virtual environment

(1) NAT (network address translation mode)  

This approach also enables two-way access to both native and virtual systems. However, other machines within the network cannot access the virtual system, and the virtual system can access other machines in the network through the NAT protocol of the native system.

using NAT mode, the virtual system uses the NAT (network address translation) function to access the public network through the network where the host machine resides. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network. The biggest advantage of using NAT mode is that virtual system access to the Internet is very simple, you do not need to do any other configuration, only the host machine can access the Internet. If you want to use the installation of a new virtual system, in the virtual system without any manual configuration can directly access the Internet, we recommend that you use NAT mode (2) Bridged way:In this way, the IP of the virtual system can be set up and the local system in the same network segment, the virtual system is equivalent to a network of independent machines, and the machine is plugged into a hub, the network of other machines can access the virtual system, virtual system can also access other machines within the network, of course, and the local system two-way access is not (3) Internal network

Intranet mode, as the name implies is the internal network mode:

The virtual machine is completely disconnected from the extranet and only implements the internal network mode between virtual machines and virtual machines.

(1) The relationship between the virtual machine and the host: they cannot access each other, they do not belong to the same network, they cannot access each other.

(2) The relationship between the virtual machine and other hosts in the network: cannot access each other, for the same reason.

(3) The relationship between the virtual machine and the virtual machine: You can access each other, provided the network is set up, the two virtual machines set the same network name.

(4) host-only mode (host mode)

In some special network debugging environments, it is required to isolate the real environment from the virtual environment, then you can use the host-only mode.  In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated. Note: In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted pair wires. In host-only mode, the TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual system is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network. If you want to use VirtualBox to create a virtual system that is isolated from other machines in the network, perform some special network debugging work, you can choose Host-only mode. (5) Universal Drive

Effects and effects: Run to select the NIC driver. The drive is VirtualBox internally, or is added via Extensionpack. This pattern is actually seldom used

Generally speaking, bridged is the most convenient way to use. But if the system is Win2000 and the network cable is not plugged (or there is no network card), networks are very likely not available (most of the machines with PCI network card is so), at this time can only use NAT or Host-only, the two virtual network cards previously said to adapt to the two network preparation.

Several network connection modes of VirtualBox virtual machine

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.