Comparison of network configuration modes in VMware (bridging mode, host mode, Network Address Translation) and vmware

Source: Internet
Author: User

Comparison of network configuration modes in VMware (bridging mode, host mode, Network Address Translation) and vmware
1 Introduction to three network modes of VMware

VMWare provides three working modes: bridged (bridging mode), NAT (network address translation mode), and host-only (host mode ). After the virtual machine is installed, two NICs are added to the network connection. For example.




2 bridged (bridging mode) 2.1 mode Introduction In this mode, VMWare virtualizes an operating system like an independent host in a LAN, which can access any machine in the network.
In the bridge mode, you need to manually configure the IP address and subnet mask for the virtual system, and also need to be in the same network segment as the host machine, so that the virtual system can communicate with the host machine. At the same time, because this virtual system is an independent host system in the LAN, You can manually configure its TCP/IP configuration information to access the Internet through the LAN gateway or router.
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.


2.2 VMnet0 Virtual Network in bridged Mode


2.3 architecture Diagram

1) Using VMnet0 vswitch, the virtual machine has an independent IP address like an independent computer on the network and a host. A, A1, A2, and B can communicate with each other through bridging.



2) A Virtual Machine is directly connected to the actual network, just like a real computer. It can be understood that there is no connection with the host machine.



2.4 scope of use 1) If you want to use VMWare to create a virtual server in the LAN to provide network services for LAN users, you should select the bridge mode.
2) If you have a vro, you can use the bridging method to access the Internet, because the IP address you applied for is written on the vro, not on your machine. This includes your host, virtual machines, including other machines connected to the vro, can access the Internet and use the IP addresses allocated by the vro.

3 host-only (host mode) 3.1 mode introduction in some special network debugging environments, You need to isolate the real environment from the virtual environment, then you can adopt the host-only mode. In host-only mode, all virtual systems can communicate with each other, but the virtual system and the real network are isolated.
Tip: in host-only mode, the virtual system and the host machine system can communicate with each other, equivalent to the two machines connected through twisted pair wires.
In host-only mode, the TCP/IP configuration information of the virtual system (such as the IP address, gateway address, and DNS server) is created by VMnet1 (host-only) DHCP servers in the virtual network are dynamically allocated.
If you want to use VMWare to create a virtual system isolated from other machines in the network and perform some special network debugging, you can select the host-only mode.


3.2 VMnet1 Virtual Network in host-only mode

3.3 architecture Diagram

1) when a Vmnet1 vswitch is used, the virtual machine can only communicate with the virtual machine and the host. That is, you cannot access the Internet. The Host mode allows mutual access between A, A1, and A2, but A1 and A2 cannot access B or 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 service for the Virtual Machine. Therefore, the virtual machine can only communicate with the host machine, but cannot connect to the actual network.


3.4 scope of use if you want to use VMWare to create a virtual system isolated from other machines in the network for some special network debugging, you can select the host-only mode.

4. NAT (network address translation mode) 4.1 mode description NAT mode is used to allow the virtual system to access the public network through the network of the host machine through the NAT (Network Address Translation) function. 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 pseudo-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 don't need to configure anything else, just need the host machine to access the Internet.


4.2 VMnet8 Virtual Network in NAT Mode


4.3 architecture diagram 1) using a Vmnet8 vswitch, the virtual machine can access the virtual machine through another workstation on the one-way network of the host, and other workstation cannot access the virtual machine. In NAT mode, A1 and A2 can access B, but B cannot access A1 and A2. However, A, A1, and A2 can communicate with each other.


2) in this way, the virtual machine's Nic is connected to the host's vmnet8. At this time, the system's VMWare NAT Service acts as a router, responsible for sending the virtual machine to the VMnet8 package for address translation and then to the actual network, then, the packets returned from the actual network are converted and sent to the virtual machine through vmnet8. VMWare DHCP Service is responsible for providing DHCP services for 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 manual configuration in the virtual system. We recommend that you use the NAT mode.



Copyright:

1) original works, from "CleverCode blog", Please note the following original address when reprinting; otherwise, the copyright will be held legally liable.

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

3) Linux commonly used software installation and configuration-Directory: http://blog.csdn.net/clevercode/article/details/45740431 (directory continuous updates, please add to favorites ).

4) blog column address (Linux commonly used software installation and configuration): http://blog.csdn.net/column/details/linuxsoftwareinstall.html (blog continues to increase, Attention Please favorites ).

5) Welcome to my blog for more highlights: http://blog.csdn.net/clevercode.


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.