centos7网卡启动报错Failed to start LSB: Bring up/down networking.

Job for network.service failed because the control process exited with error code问题

解决方法:

1、停止NetworkManager

systemctl stop NetworkManager

systemctl disable NetworkManager

systemctl restart network

2、修改网卡配置文件vi /etc/sysconfig/network-scripts/ifcfg-XX文件,添加mac地址

通过ip a可以查看网卡对应的mac地址

添加:

HWADDR=XX

重启网络

3、仔细查看网卡配置文件,不能配错,一般配成静态ip,参考我的另一篇博客https://www.cnblogs.com/longchengruoxi/p/11149384.html

里边需要注意的是,NAME要和网卡名字一致,静态ip  

BOOTPROTO=static
配置不能出错

4、网卡配置文件,注释掉DEVICE这一行

#DEVICE=XX

5、当前服务器有多个网卡的情况下,要对应其他的网卡配置也要正确,如果服务器只插一条网线,需要检查其他的网卡配置文件是否禁用了开机自启动项

ONBOOT=yes     #yes代表对应网卡自启动,no代表对应网卡不自启动


原文地址:https://www.cnblogs.com/longchengruoxi/p/12766131.html