First: Open the Virtual Network Editor under the Edit menu of the virtual machine and check VMnet8 NAT mode. Obtain the gateway IP through the NAT settings and obtain a configurable IP range via DHCP. Also, change the network adapter in the Settings option for the virtual machine's virtual Machine menu to NAT mode. Can!
Open Linux, edit the network manually add IP and gateways in the IPV4 settings, so you can ping the physical host and Linux in the virtual machine.
Note: When pinging a physical host under Linux, you can stop by crtl+c or crtl+d.
However, Linux is still unable to access the Internet, you need to set DNS domain name.
This thing can get through the ipconfig/all in the physical host!!
If Linux is not online yet, reconnect the network. Can!!
Running Linux under a virtual machine communicates with the host computer via NAT mode and connects to the external network