Three modes of network configuration comparison (bridge mode, host mode, network address translation) under VMware

Source: Internet
Author: User
Tags virtual environment

1 Introduction to VMware Three network modes

VMware offers three modes of operation, which are bridged (bridging mode), NAT (network address translation mode), and host-only (host mode). after installing the virtual machine, you can see more than two NICs in the network connection. Such as.




2 bridged (bridging mode) 2.1 mode introduction in this mode, VMware virtual operating system is like a LAN on a separate host, it can access any machine in the network.
In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. At the same time, because this virtual system is a separate host system in the LAN, it is possible to manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router.
The relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. To make them communicate with each other, you need to configure the IP address and subnet mask for the virtual system, or you will not be able to communicate.


2.2 Working virtual network cards VMNET0 virtual networks in bridged mode


2.3-Frame composition

1) using the VMnet0 Virtual Switch, the virtual machine is quite the same as a stand-alone computer on the network and hosts a separate IP address. using bridge, A,a1,a2,b can exchange visits.



2) The virtual machine, like a real computer, is connected directly to the actual network and can be understood as having no connection to the host.



2.4 Use range 1) If you want to use VMware to create a new virtual server within the LAN, to provide network services for LAN users, you should choose bridging mode.
2) If you have a router, then you can use the bridge mode to surf the Internet, because at this time you apply for the IP address is written on the router, rather than on your machine, such as your host, virtual machines, including the other people on the router's machine, will be able to surf the Internet, using the IP address assigned by the router.

3 Host-only (host mode) 3.1 mode introduction 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 VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.


3.2 Working virtual network cards VMNET1 virtual networks in Host-only mode

3.3-Frame composition

1) using the Vmnet1 Virtual Switch, the virtual machine can only exchange visits with the virtual machine and host. That means you can't be on the internet. with host mode, A,A1,A2 can exchange visits, but A1,A2 cannot access B, nor can it be accessed by B.


2) in this way, the virtual machine's NIC is connected to the host's VMnet1, but the system does not provide any routing services for the virtual machine, so the virtual machine can only communicate with the host and not connect to the actual network.


3.4 Scope of Use if you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.

4 NAT (Network address translation mode) 4.1 mode introduction 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.


4.2 Working with Virtual network cards in NAT mode for VMNET8 virtual networks


4.3 Frame composition 1)with the Vmnet8 Virtual switch, the virtual machine can be accessed from other workstations on the host one-way network, and other workstations cannot access the virtual machine. with NAT, A1,A2 can access B, but B does not have access to A1,A2. But A,A1,A2 can exchange visits.


2) in this way, the virtual machine's NIC is connected to the host's VMnet8. At this point the system's VMWare NAT service serves as the router, responsible for sending the virtual machine to the VMNET8 package for address translation to the actual network, and then sending the packets returned on the actual network to the virtual machine via VMnet8 after address translation. VMWare DHCP service is responsible for providing DHCP services to virtual machines.



4.4 Scope of Use

If you want to use VMware to install a new virtual system, you can directly access the Internet without any manual configuration in the virtual system, it is recommended that you use NAT mode.



Copyright Notice:

1) original works, from "Clevercode's blog" , please be sure to mention the following original address when reproduced , otherwise hold the copyright legal responsibility.

2) Original address : http://blog.csdn.net/clevercode/article/details/45934233 ( reprint must indicate this address ).

3) Linux common software Installation and configuration--Directory : http://blog.csdn.net/clevercode/article/details/45740431 ( directory continuous update, attention please collection ).

4) Blog column address (Linux common software Installation and configuration): http://blog.csdn.net/column/details/linuxsoftwareinstall.html (blog continues to increase, concern please bookmark).

5) welcome everyone to pay attention to my blog more wonderful content: Http://blog.csdn.net/CleverCode.


Three modes of network configuration comparison (bridge mode, host mode, network address translation) under VMware

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.