Configure virtual machines in workstation to access the Internet using WIFI
Background
Workstation version: VMware-workstation-full-15.0.4-12990004
Open worktation and open Edit > Virtual Network Editor:
Turn on administrator permissions
Configure NAT Nic, check dhcp, configure subnet and mask:
4. Configure the gateway
5. Open the network center
6. Verify that the VMnet8 network card is enabled and that the IP address is the gateway just configured
7. Configure wireless network card sharing. This machine uses wifi to connect to the Internet.
8. Select VMnet8 network card sharing
9. Virtual machine network is configured as net
10. The virtual machine can access the Internet.
11. After configuring the network, ping www.baidu.com prompts: ping:www.baidu.com:name or service not know
Modify the DNS configuration file: vi / etc/resolv.conf
Added: nameserver 8.8.8.8
Nameserver 114.114.114.114