Go to the directory
cd /etc/sysconfig/network-scripts to
view the network card file: the file starting with ifcfg-ens
ll
modify the network card file attribute:
ONBOOT=yes
restart the network card
service network restart
centos7 can't connect to the internet
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326164765&siteId=291194637
Recommended
Ranking