RTNETLINK answers: File exists

问题:

重启网络时报错如下

>>/etc/init.d/network start
RTNETLINK answers: File exists

分析:

 /etc/init.d/network 与 /etc/init.d/NetworkManager,这两个服务发生冲突;从根本上说是NetworkMaganager(NM)带来的冲突,停用NetworkManager即可解决。

解决:

利用chkconfig查看

>>chkconfig --list network
network         0:off  1:off  2:on  3:on  4;on  5:on  6:off
>>chkconfig --list NetworkManager
NetworkManager          0:off  1:off  2:off 3:on  4:on  5:off  6:off

停止NM服务

service NetworkManager stop

ps:更省事的方法是, 当前系统如果是桥接的模式,并且网卡配置为固定IP。把固定IP注销,然后换成DHCP;这样可以直接绕过 networkmanager这个冲突的毛病。

原文转自:http://www.qianshoublog.com/post/7096.html

原文地址:https://www.cnblogs.com/lukcyjane/p/3857613.html