激活连接失败:device not managed by networkmanger

在虚拟机里安装centos 6 并配置/etc/sysconfig/network-scripts/ifcfg-eth0中的网络地址后,使用命令重启网卡:service network restart,在重启的过程中就报错:

激活连接失败:device not managed by networkmanger


解决方法如下:

输入以下命令关闭NetworkManager服务:

service NetworkManager stop

 

另外,根据网络上的资料,为了防止下次启动时该服务重新启动,还可以使用命令直接停止此服务:

chkconfig NetworkManager off 
 

然后再次重启网卡(service network restart)就不再报错了。

 
 
posted @ 2012-02-03 15:38  Mr.chenz  阅读(1527)  评论(0编辑  收藏  举报