1. Host settings
- Open the network connection, select WLAN properties -> sharing, as shown in the figure.
- Configure the virtual machine network VMnet8, properties->internet protocol version 4, the configuration is as shown in the figure.
2. Virtual machine settings
- Open VMware Workstation, select Edit -> Virtual Network Editor, and configure as shown in the figure.
- Select Virtual Machine->Settings->Network Adapter->Network Connection, and check the NAT mode.
3. Virtual machine IP configuration
- Configure ip, sudo gedit /etc/networks/interfaces, add the following content.