reproduced in: https://www.linuxidc.com/Linux/2016-09/135521p3.htm
Three, Host-only (host mode only)
Host-only mode is actually NAT mode to remove the virtual NAT device, then use the VMware Network Adapter VMNET1 Virtual network adapter to connect VMNET1 Virtual Switch to communicate with the virtual machine, Host-only mode separates the virtual machine from the outside, Makes the virtual machine a standalone system that communicates with the host only. Its network structure is as follows:
Through, we can find that if we want to make the virtual function networked, we can share the host network card to the VMware Network Adapter VMNET1 network card, so as to achieve the purpose of virtual machine networking. Next, let's test it out.
Set the virtual network editor first, and you can set the starting range for DHCP.
Set the virtual machine to host-only mode.
Boot the system, and then set the NIC file.
Save the exit, then restart the network card, and use the remote tool to test whether the host communicates with it.
The host and the virtual machine can communicate, and now set up the virtual machine Unicom extranet.
We can see a prompt that forces the VMware network Adapter VMnet1 IP to be set to 192.168.137.1, then we will change the DHCP subnet and start address of the virtual machine, click on "Virtual Network editor"
Reconfigure the network card to route the VMware Network Adapter VMNET1 virtual network card as a virtual machine.
Restart the network card, and then use the remote tool to test whether you can connect to the extranet and communicate with the host.
The test result proves that the virtual machine can be connected to the extranet.
The above is a detailed description of how VMware's three network modes work and are configured.
VMware Virtual Machine host-only (host-only mode)