The bridge

In a bridging network, the local physical NIC and virtual NIC are connected using VMnet0 virtual switch. The physical NIC and virtual NIC have the same status in the topology, so the physical NIC and virtual NIC are in the same network segment. A virtual switch is equivalent to a switch on a real network. Therefore, the IP addresses of the two network adapters must be on the same network segment. Therefore, when we want to use virtual machines on the LAN to provide services to other PCS on the LAN, such as FTP, SSH and HTTP services, we should choose the bridge mode.

NAT

In NAT mode, VMS can access the public network through the host host’s network using the NETWORK address translation (NAT) function. In NAT mode, the VM NETWORK interface card (NIC) and physical NETWORK interface card (NIC) are on different networks. The VM NIC is on a virtual network provided by vmware.

NAT and bridge comparison:

(1) VMS in NAT and bridge mode can access the Internet.

(2) Because NAT’s network is in a virtual network provided by vmware, other hosts on the LAN cannot access the VIRTUAL machine, but the host can access the virtual machine, and the virtual machine can access all hosts on the LAN, because the real LAN is the external network of NAT’s virtual network relative to NAT’s virtual network. For those of you who don’t know, check NAT out.

(3) In bridge mode, multiple VMS can access each other. In NAT mode, multiple VMS can access each other.

If you want to create a VIRTUAL machine for your own use, you can choose NAT. After all, the TCP/IP configuration of the virtual system in NAT mode is provided by the DHCP server in VMnet8(NAT) virtual network. As long as the NETWORK configuration of the VIRTUAL machine is DHCP, you can choose NAT. Then you don’t need to do any other configuration, just need the host machine to be able to access the Internet, you can network the virtual machine

Host-Only 

In host-only mode, a virtual network is completely closed and the Only access is to the Host. In fact, host-only networks are similar to NAT networks except that host-only networks do not have NAT services, so virtual networks cannot connect to the Internet. The communication between hosts and VMS is implemented using VMware Network Adepter VMnet1 virtual Network card.

The purpose of host-only is to establish an internal network isolated from the outside world to improve Intranet security. This feature may not make much sense to the average user, but it is often used by large service providers. If you want to provide routing for the VMnet1 network segment, you need to use RRAS, not XP or 2000 ICS, because ICS will change the Intranet IP address to 192.168.0.1, but the VIRTUAL machine will not assign this address to VMnet1 virtual network card, so the host and virtual machine cannot communicate.

Therefore, in bridge mode, other hosts can access VMS on the LAN, but in NAT mode, other hosts cannot access VMS on the LAN


The full address please click: blog.csdn.net/u013896031/…