Virtual machine NAT mode networking && restart disconnection solution

1. Virtual machine NAT mode networking

This blog writes very clearly: According to his method, you can ping www.baidu.com

Three minutes to complete the virtual machine networking Xiaobai read it and said yes! ! ! Virtual machine ultra-detailed networking tutorial/step SDN software-defined network experiment

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

  1. When the virtual machine is turned on , edit the network editor, for example, you just customized VMnet6, click it.
  2. 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.
  3. Turn on the virtual machine and find that you can ping www.baidu.com

Guess you like

Origin blog.csdn.net/weixin_45824067/article/details/131904509