linux中启动网卡报错:Error: Connection activation failed: Connection 'eth0' is not available on the device eth0 at this time.

在重启linux网络服务的时候提示:

Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2

并且产生报错:

Error: Connection activation failed: Connection 'eth0' is not available on the device eno16777728 at this time.

经过在网上一番查找,是由于开启了NetworkManager服务,这个服务是RedHat自己开发的,由于NetworkManager管理工具和/etc/sysconfig/network-scripts/ifcfg-ethx配置不同步造成的报错。如果要消除这个提示,关闭NetworkManager服务即可。

通过下面两条命令永久关闭:

service NetworkManager stop   结束进程

chkconfig NetworkManager off   关闭开机自启

chkconfig network on 开启开机自启动

service network restart   重启网络服务

当我关闭这个服务后,发现原本网卡配置的dhcp也能自动获取IP了。

猜你喜欢

转载自www.cnblogs.com/moox/p/11112204.html