首页 > 代码库 > centos 6.5网卡固定IP重启出错
centos 6.5网卡固定IP重启出错
新安装的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重启出错