CENTOS7 cannot surf the internet after setting up NAT in the virtual machine!
Activate the network card first!
Open the desktop right-click in the terminal:
cd/etc/sysconfig/network-scripts/
LS found to start with ifcfg, as Ifcfg-lo.
Check out the vi Ifcfg-lo
Edit below the red circle section, if you are the display "Onboot=no", you can not surf the Internet. Let's change it to "yes".
onboot= "Yes" turns on automatically enabling network connections
: Wq Save Exit
Service Network restart Restart network
You should be able to see the wired network card!
The default CentOS is not to enable the wired network card, either manually open, or the installation is directly enabled!
However, the following conditions may also occur
You need to turn off the virtual machine, open the directory of the virtual machine storage, and open the VMX profile of the three computer icons with Notepad
Add one in.
Ethernet0.virtualdev = "e1000"
Save, and then open the virtual machine to see, you can!!!
CENTOS7 cannot surf the internet on VMware