1. Virtual machine NAT mode networking
This blog writes very clearly: According to his method, you can ping www.baidu.com
After following the above blog, click the third icon in the lower right corner of the virtual machine to make sure it is bright!
But after restarting the virtual machine several times, the network can no longer be connected. It took me a long time to find a solution to my problem!
2. Solve the problem of restarting several times and not connecting to the Internet
- When the virtual machine is turned on , edit the network editor, for example, you just customized VMnet6, click it.
- Connect the host virtual adapter to this network . There is a box in front of this, tick it, and then click the OK button below , and wait for the setting to complete.
- Turn on the virtual machine and find that you can ping www.baidu.com