当前位置:   article > 正文

centos 6.x 设置固定ip报错,及重启网卡dns被重置

centos 6.x 设置固定ip报错,及重启网卡dns被重置
机器安装的是centos 6.2,多网卡。网卡1设置固定ip,重启出现如下错误,并dns还原
Shutting down interface em2:  Error: Device 'em2' (/org/freedesktop/NetworkManager/Devices/1) disconnecting failed: This device is not activeShutting down interface em1:  Device state: 3 (disconnected)                                                           [  OK  ]Shutting down interface em2:  Error: Device 'em2' (/org/freedesktop/NetworkManager/Devices/1) disconnecting failed: This device is not active                                                           [FAILED]Shutting down loopback interface:                          [  OK  ]Bringing up loopback interface:                            [  OK  ]Bringing up interface em1:  Active connection state: activatedActive connection path: /org/freedesktop/NetworkManager/ActiveConnection/4

经过查看是NetworkManager的问题
NetworkManager是是分发网络服务请求的一个进程,是一个网络管理的工具。。 由于启动了NetworkManager服务导致的 ,netwoekmanager会和network冲突导致resolv.conf被还原

解决:
[code="java"]
$ service NetworkManager stop
## 永久性关闭此服务
$ chkconfig NetworkManager off
NM_CONTROLLED 实际上是network mamager的参数,而且实时生效。也就是说你改完它保存,不需要重启,它立刻生效。NM_CONTROLLED=yes
[/code]
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/655988
推荐阅读
相关标签
  

闽ICP备14008679号