1. Set the host Nic
Disable VMnet1 for the VM, enable VMnet8 for the VM, set VMnet8 to automatically obtain the IP address, and automatically obtain the DNS server (or use the IP address 192.168.98.1, subnet mask 255.255.0, gateway and DNS server are not required ). Select "Local Connection", right-click "properties", and click "Internet Connection Sharing.
2. Set the guest OS Nic
Set the "local connection" of the guest operating system in your virtual machine to automatically obtain IP addresses and DNS servers.
3. Set the Internet access mode for the guest operating system
Right-click the virtual machine operating system you want to set (because there are more than one virtual machine), select "set", select "Ethernet" in "hardware", change the network connection on the Right To NAT, and click OK.
4. Set Virtual Machine Network Parameters
Click "edit" in the menu bar and select "Virtual Network Settings ". Select the "DHCP" tab, enable the DHCP service, and click "start"-application. Select the "NAT" tab and enable the "NAT" function in the same way.
5. enable host-related services
The two most important services must be enabled: VMware DHCP Service and VMware NAT Service. The procedure is as follows: Start --- set -- Control Panel --- management tools --- Service to ensure that the VMware DHCP Service and VMware NAT Service have been started.
6. Review
If you still cannot access the Internet, follow these steps to check again. Some settings may be changed by the system and must be manually repaired.