centos7 不能联网

进入到目录
cd /etc/sysconfig/network-scripts

查看网卡文件:ifcfg-ens开头的文件
ll

修改网卡文件属性:

ONBOOT=yes

重启网卡
service network restart

猜你喜欢

转载自gangling.iteye.com/blog/2388960