For later use.
First step: Set up VMware's edit-virtual network editor, enable Vmnet8,nat mode, as shown in.
In fact, VMware default settings, no changes, if you accidentally changed, click Restore Default settings.
The second step: virtual machine settings-the network adapter, set to NAT mode, as shown in.
It is also the default and does not need to be changed.
Step three: Edit the network configuration file for the Linux system.
Under the/etc/sysconfig/network-scripts folder, edit the NIC configuration file ifcfg-**, each system is different, depending on their own circumstances.
Change the contents of the ifcfg-** file as shown in. The focus is on Onboot=yes.
such as: CENTOS7 system commands are as follows:
Cd/etc/sysconfig/network-scripts (Locate the network configuration file directory)
VI Ifcfg-ens33 (settings related to network ENS33)
Service Network Restart (Restart Network Service)
After setting up the above operation, ping localhost under the root directory, if the connection is successful.
VMware Workstation virtual machines cannot be networked solutions