The difference between vmnet0 vmnet1 vmnet8 in virtual machines

Reprinted from https://www.cnblogs.com/jpfss/p/10911943.html
https://www.cnblogs.com/jpfss/p/10911943.html

vmnet0 is actually a virtual bridge
vmnet0, which is actually a virtual bridge. This bridge has many ports. One port is used to connect to your Host and one port is used to connect to your virtual machine. The location is peer-to-peer, no one's gateway. So in Bridged mode, you can make the virtual machine a machine with the same status as your Host.

vmnet1, this is a Host-Only network mode
vmnet1, this is a Host-Only network mode, which is used to establish an isolated network environment, where vmnet1 is also a virtual switch, a port connection of the switch 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 network card "VMWare Virtual Ethernet Adapter for VMnet1" serves as the gateway interface of the virtual machine and provides services for the virtual machine. After the virtual machine 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" network card. (In fact, it does not provide routing. This is designed by VMware. It does some things besides providing routing—actually, I don’t know what it does.) The lack of routing is mainly manifested here. No NAT service is provided, so that virtual machines cannot access addresses outside the network segment specified in Host-Only mode.

vmnet8, this is a NAT method, the simplest networking method is
vmnet8, this is a NAT method, the simplest networking method, from the host's "VMWare Virtual Ethernet Adapter for VMnet8" virtual network card, connect to vmnet8 virtual Switch, the other port of the virtual switch is connected to the virtual NAT server (this is also a Vmware component), another port is connected to the virtual DHCP server, and the other ports are connected to the virtual machine. The gateway of the virtual machine is the "VMWare Virtual Ethernet Adapter For VMnet8" the machine where the network card is located, nonsense, this must be your Host machine. Similarly, you can also see with ipconfig that the default gateway of your virtual machine also points to your "VMWare Virtual Ethernet Adapter for VMnet8" virtual network card address. In contrast, it can be seen that the difference between the NAT networking mode and the Host-Only mode is whether there is an additional NAT service.

Host-only communicates
with the virtual network card of wmnet1 NAT mode communicates with the virtual network card of VMnet8 The
bridge uses the real network card of your machine for Internet access

Guess you like

Origin blog.csdn.net/wx_assa/article/details/107588248