首页 » Linux » centos 7重启网卡报错

centos 7重启网卡报错

 

win7重启网卡:systemctl restart network.service 时会报以下错误:

ar 1 14:39:40 centos7 systemd: network.service: control process exited, code=exited status=1
Mar 1 14:39:40 centos7 systemd: Failed to start LSB: Bring up/down networking.
Mar 1 14:39:40 centos7 systemd: Unit network.service entered failed state.
Mar 1 14:39:40 centos7 systemd: network.service failed.
Mar 1 16:20:17 centos7 systemd: Starting LSB: Bring up/down networking…
Mar 1 16:20:18 centos7 network: Bringing up loopback interface: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo’
Mar 1 16:20:18 centos7 network: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo’
Mar 1 16:20:18 centos7 network: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo’
Mar 1 16:20:18 centos7 network: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo’
Mar 1 16:20:18 centos7 network: [ OK ]
Mar 1 16:20:18 centos7 network: Bringing up interface eno16777736: [ OK ]
Mar 1 16:20:18 centos7 network: Bringing up interface eth0: Error: Connection activation failed: No suitable device found for this connection.
Mar 1 16:20:18 centos7 network: [FAILED]
Mar 1 16:20:18 centos7 network: Bringing up interface bridge0: [ OK ]
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists
Mar 1 16:20:18 centos7 network: RTNETLINK answers: File exists

 

 

解决方法:

由于是自己在/etc/sysconfig/network-scripts目录下新建了一个ifcfg-eth0的文件,里面的device名字是不是硬件名字,所以重启会报错。

删除这个文件就可以了。

 

错误 :

Failed to start LSB: Bring up/down networking.

如果报这个错,可能是物理地址没有添加到网卡配置文件中,如:HWADDR=**

 

 

原文链接:centos 7重启网卡报错,转载请注明来源!

0