How does the virtual machine connect to the Internet when the host uses wifi

1. Host settings

  1. Open the network connection, select WLAN properties -> sharing, as shown in the figure.
  2. Configure the virtual machine network VMnet8, properties->internet protocol version 4, the configuration is as shown in the figure.
     

 

 

 

 

 

2. Virtual machine settings

  1. Open VMware Workstation, select Edit -> Virtual Network Editor, and configure as shown in the figure.
  2. Select Virtual Machine->Settings->Network Adapter->Network Connection, and check the NAT mode. ​​​​​​​​

 

 

 

 

3. Virtual machine IP configuration

  1. Configure ip, sudo gedit /etc/networks/interfaces, add the following content. ​​​​​​​​

 

 

Guess you like

Origin blog.csdn.net/dd2016124/article/details/127638580