CentOS7突然连接不了网络,使用systemctl status network后报如下错误
network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code)
【解决方案】
停止NetworkManager并取消开机启动
chkconfig NetworkManager off
service NetworkManager stop
重启网络服务 service network restart
在测试ping百度 ping www.baidu.com 能ping通则网络连接成功