1.
Vmnet0,
Vmnet0Actually, it is a virtual bridge. This bridge has several ports. One port is used to connect your host, and the other port is used to connect your virtual machine. Their locations are equal, no one is the gateway. So in bridged mode, you can make the virtual machine the same as your host.
2. vmnet1
Vmnet1 is a host-only network mode, which is used to establish an isolated network environment. vmnet1 is also a virtual switch, and a port of the switch is connected to your host, another port is connected to the virtual DHCP server (actually a component of VMware), and the remaining port is connected to the virtual machine. The virtual nic "VMWare virtual Ethernet adapter for vmnet1" serves as the gateway interface of the Virtual Machine and provides services for the virtual machine. After the VM is started, if you use the ipconfig command, you will clearly see that your default gateway is pointing to the address of the "VMWare virtual Ethernet adapter for vmnet1" Nic. No route is provided here, mainly because no NAT service is provided, so that virtual machines cannot access addresses outside the CIDR Block specified in host-only mode.
3. vmnet8
Vmnet8 is a NAT method and the simplest networking method. It is connected to the vmnet8 vswitch from the host's "VMWare virtual Ethernet adapter for vmnet8" virtual Nic, the other port of the vswitch is connected to the virtual Nat server (which is also a VMware component), and the other port is connected to the virtual DHCP server.Connect to a VMThe Virtual Machine gateway is the machine where the "VMWare virtual Ethernet adapter for vmnet8" Nic is located, that is, your host machine.
Three networks in virtual machines