The problem that the first installation of CentOS7 in Vmware cannot be connected to the Internet

The initial installation of CentOS7, the default network card is not turned on.

 

cd /etc/sysconfig/network-scripts/

ls to see what the corresponding number after ifcfg-eno is, take eno32 as an example below

vi  ifcfg-eno32

under edit

 

ONBOOT="yes" turns on auto-enable network connection

:wq save and exit

service network restart restart the network

You should be able to see the wired network card!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326482398&siteId=291194637