问题背景:家里VMware上一台centos7机器网卡起不来,检查网卡配置文件/etc/sysconfig/network-scripts/ifcfg-ens33没问题
尝试使用systemctl service network restart和systemctl restart network均是报错:Restarting network (via systemctl): Job for network.service failed because the control process exited with error code.See "systemctl status network.service" and "journalctl -xe" for details.
最终排查是NetworkManager服务有冲突。直接停用+禁用
service NetworkManager stop 关闭NetworkManager服务
chkconfig NetworkManager off 禁止开机启动
service network restart 重启网络
最终ping 接口IP通了。