Here, we will describe it according to my own settings. Here I use the nat-based access method. The operation is as follows.
1. Open VMware. Click "Virtual Machine"-> "set" and then click Ethernet in it. Select "NAT: Use the shared Host IP Address" for the network connection mode.
2. Click "edit"-"" Virtual Network Settings "in the menu of VMware ". Click the "Nat" tab in the open virtual network label. The default vmnat host is vmnat8. click the "edit" button in it. Then, in the displayed input box, enter an IP address and subnet mask that are not used on the host. Here I use 192.168.1.3 subnet mask 255.255.255.0
3. Open the network connection on the host. By default, two connections will be added to the network connection after VMware is installed. VMware network adapter vmnet8 and VMWare network adapter vmnet1.
Right-click VMware network adapter vmnet8 and choose Properties. Select the TCP/IP attribute and set its IP address to an unused IP address. However, it must be in the same network segment as the one you just set. I set 192.168.1.2 255.255.255.0.
4. Set the local connection on the host, properties-> advanced, shared Internet access. If vmnet1. is selected, vmnet1 is automatically allocated as 192.168.0.1.
5. Start the VM. The network connection is also enabled in the VM. Set the IP address of the NIC to an unused IP address. However, the gateway address must be the IP address that was just set for Nat. 192.168.1.2. Set the DNS to the same as the host or 192.168.0.1. (If not set, you can only access the Internet with IP addresses)
After this configuration, you can access each other between virtual hosts, and the virtual master can access the Internet from different network segments. However, if you have a website installed on a virtual machine, port ing is required for Internet access.
NOTE: If Nat is not optional, the vmnet1 (host-only) and vmnet8 (NAT) are changed to Nat and host-only. Disable Nat and enable vmnet8.