Hyper-V virtual machine settings to access external networks

  1. Create a virtual switch in Hyper-V Manager, type 内部, change the name ofnat
  2. In the Settings page of the virtual machine, the network adapter settings for the new virtual switch nat
  3. Open win10-> Control Panel -> Network and Sharing Center -> Change Adapter Settings
    1. Choose a network connection (WLAN, WIFI, Ethernet)
    2. Right choice 属性
    3. Select the top of 共享the tab
    4. Check under the two options
    5. Home networking connection, select the new virtual switch nat
  4. Restart the virtual machine ping www.baidu.com

Guess you like

Origin www.cnblogs.com/bosslv/p/11031423.html