How to distinguish bridging, NAT, host only three network mode

It features three network modes

Network mode Feature
Bridged (bridge mode) The virtual network adapter and the host virtual machine's physical network adapter for the handover, the virtual machine virtual network adapter has access to the external network through the host physical network adapter directly. In short, it's like adding a new, stand-alone computers in the same local area network. Therefore, the virtual machine will use an IP address on the LAN, and can be accessed from each other and other terminals. Bridge mode network host is connected wired and wireless network adapter. If you want the virtual machine as a completely independent look at the computer, and allow it and the other end of the same network communication, then the bridge mode is usually the easiest way virtual machines access to the network.
NAT (network address translation mode) When network connections using NAT mode, the VMware will create a separate private network on the host to communicate with each other between the host and the virtual machine. Requesting virtual machine data transmitted to the external network "package" are handled by the NAT network adapter with "special mark" and forwarded on behalf of the host, the response data returned by the external network "package" is received first by the host, and then referred NAT network adapter identified according to the "special mark" and forwarded to the corresponding virtual machine, therefore, the virtual machine need not have its own IP address in the external network. From the external network point of view, the virtual machine and the host in a shared IP address, by default, the terminal can not access the external network to a virtual machine. Furthermore, on a host NAT mode allows only one virtual network. Thus, a plurality of hosts on the same virtual machine NAT mode is also accessible network connection to each other.
Host-Only (master mode only) Only the host mode is a more closed than NAT mode with networking mode, it will create a private network is entirely contained in the host. Only host virtual network adapter is only visible host mode, and provides a network connection between the virtual machine and the host system. Relative to the NAT, host-only mode does not have the NAT function, so by default, only the host mode with networking virtual machine can not connect to the Internet (installs the appropriate agent or routing software on the host, or Windows system use Internet connection sharing feature on the host, the virtual machine can still connect to the Internet or other networks). A plurality of virtual networks can be created only in the master mode on the same host, if a plurality of virtual machines in a same network host mode only, it can communicate with each other therebetween; if they are different only in the network host mode, the default case not communicate with each other (by the router therebetween to communicate with each other).

Popular terms

Network mode Feature
Bridge Mode Between the host and the equivalent of a physical host a virtual bridge, access the Internet via the host physical NIC; (At this time corresponds to a virtual machine independent host)
NAT mode Host VM virtual network service corresponding to the role of routers, a host can be simulated by the host physical access network, the NAT virtual NIC real machine, corresponding to the VMnet8 (a common virtual machine and the host ip)
Only the host mode So that only the simulated host physical host communication can not access the external network, only the master machine in real mode emulates a network card corresponding physical NIC VMnet1.
Published 20 original articles · won praise 22 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43988989/article/details/104447808