1、报错及现象
journalctl -u network -f 查看报错如下:
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
Feb 25 16:22:42 compute network[57035]: RTNETLINK answers: File exists
2、问题的成因
- /etc/init.d/network
- /etc/init.d/NetworkManager
这两个服务有冲突。
从根本上说是NetworkMaganager(NM)的带来的冲突,停用NetworkManager即可解决。重启即可。
3、解决方法
停用NetworkManager
service NetworkManager stop
重启network
service network restart