新安装的centos6.5无法解析地址,也无法ping通网址,会出现unkown host 增加网关route add default GW xxxx 后重启网卡发现 :
[[email protected] 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)
[[email protected] network-scripts]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
[[email protected] network-scripts]# chkconfig NetworkManager off
[[email protected] network-scripts]# chkconfig network on
[[email protected] 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 ]