About VMware Three kinds of network connection, Nat,bridged,host-only, in the first contact with the host will normally ping the virtual machine and virtual function ping the host, the host and the virtual machine are not interlinked and so on network problems. This article on these three kinds of connection methods to explain, but also easy to read when the reference.
First of all, to note that after the installation of VMware, Control Panel \ Network and internet\ network connection will be more than two virtual network card VMnet1, VMnet2, two network cards are used for each purpose.
Basic topology
Virtual machine (Linux) IP information
Test results:
Physical host Ping virtual machine
Virtual Machine 1Ping Physical host
Virtual Machine 1Ping Extranet
Virtual machine 1Ping Virtual Machine 2
PS: Now modify the physical host network segment 10 to make it different from the virtual machine.
Physical host ping Virtual machine 1
Virtual Machine 1Ping Physical host
1. Nat way to make virtual machine access to extranet convenient, do not need to do other configuration, only need physical host can access the Internet
2. If you want to install a virtual machine, and do not want to configure the network, it is recommended to use NAT Internet
3. The TCP/IP configuration information for virtual systems in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be manually modified, so the virtual system cannot communicate with other real hosts on the local area network. (cause of cluster cannot be configured with NAT)
Bridged (bridging)
Based on the above topology test, bridging the virtual system is like a separate "physical machine" in the local area network, it can access the same LAN any machine, can also be isolated through the LAN gateway or routing access to the extranet. But need to be on each machine to configure IP, gateway, network segment, DNS and so on.
Since this virtual system is a stand-alone host system in the local area network, it can manually configure its TCP/IP configuration information to enable access to the Internet via a gateway or router over the LAN.
With the same gateway network segment configuration, bridged can be used to configure the cluster.
Host-only (host)
The TCP/IP configuration information for the virtual machine (such as IP address, gateway address, DNS server, etc.) is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network.
In this mode, all the virtual machines in the LAN are interoperable, but the virtual machine cannot access the extranet and is completely isolated from the extranet.
This model can also configure the cluster, but the cluster is unable to access the extranet, more suitable for the company intranet.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.