码迷,mamicode.com
首页 > 其他好文 > 详细

centos 6.5网卡固定IP重启出错

时间:2014-07-19 02:15:45      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:network   网卡   service   

 新安装的centos6.5无法解析地址,也无法ping通网址,会出现unkown host 增加网关route add default GW xxxx 后重启网卡发现 :

[root@kvm network-scripts]# service network restart
Shutting down interface eth0:  Device state: 3 (disconnected)
[  OK  ]
Shutting down loopback interface:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/6
[  OK  ]


  

解决方案如下:

停用NetworkManager后再重新启动服务即可解决问题(restart network service)

[root@kvm network-scripts]# service NetworkManager stop
Stopping NetworkManager daemon: [  OK  ]
[root@kvm network-scripts]# chkconfig NetworkManager off
[root@kvm network-scripts]# chkconfig network on
[root@kvm network-scripts]# service network restart
Shutting down interface eth0:  [  OK  ]
Shutting down loopback interface:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  Determining if ip address 192.168.xxx.xxx is already in use for device eth0...
[  OK  ]



本文出自 “低调的IT民工” 博客,请务必保留此出处http://vicent.blog.51cto.com/287372/1439949

centos 6.5网卡固定IP重启出错

标签:network   网卡   service   

原文地址:http://vicent.blog.51cto.com/287372/1439949

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!