When you create a virtual machine using VMware Workstation. A network card can be included in the created virtual machine. You can choose which virtual network card to use depending on your needs. This indicates that you want to connect to that virtual switch. In VMware Workstation, there are 3 virtual switches by default, each of which is VMnet0 (using bridged networks), VMNET1 (Host network only), and VMnet8 (NAT network). It is also possible to add 7 virtual machine switches, such as VMNET2~VMNET7 and VMnet9, and to use the virtual switches provided in the team in the version number after VMware Workstation 5.
The virtual machine switch in the team differs from the VMNET0~VMNET9 virtual Switch in that the switch in the team does not have a relationship with the host network, and the VMNET0~VMNET9 virtual switch is connected to the host.
Also, virtual switches in a team can limit network speed.
vmnet0. is actually a virtual bridge. This bridge has a very few ports, a port is used to connect your host, a port is used to connect your virtual machine, their location is peer, who is not the gateway. So in bridged mode, you can make a virtual machine a machine with the same status as your host.
Vmnet1 is a host-only network mode. This is used to create an isolated network environment in which VMNET1 is also a virtual switch with a port attached to your host on the switch. The other port is connected to the virtual dhcpserver (which is actually a component of VMware), and the remaining port is the virtual machine. Virtual network card "VMWare virtual Ethernet Adapter for VMnet1" as the Gateway interface for the virtual machine. Provide services for virtual machines. After the virtual machine starts, assume that you use the ipconfig command. You will see very clearly that your default gateway is the address of the "VMWare Virtual Ethernet Adapter for VMnet1" network card. There are no routing main tables available today, and the NAT service is not provided, allowing the virtual machine to not access addresses outside the network segment specified by the host-only mode.
Vmnet8 is a NAT mode, the simplest form of networking, from the host's "VMWare virtual Ethernet Adapter for VMnet8" virtual network card, connected to the VMNET8 virtual switch, The additional port of the virtual switch is connected to the virtual Natserver (which is also a VMware component). The other port is connected to the virtual dhcpserver. Other port-connected virtual machines. The gateway to the virtual machine is the same machine as the "VMWare virtual Ethernet Adapter for VMnet8" network card.
The same, with Ipconfig can also be seen. Your virtual machine's default gateway also points to your "VMWare virtual Ethernet Adapter for VMnet8" virtual network card address.
By contrast, the difference between a NAT network and a host-only approach is whether a NAT service is more or not.
Vmnet1 and Vmnet8