当你使用service network restart命令重新启动网卡时,如果出现下面的提示,请进行修复:
[root@mytesthost ~]# 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/3[ OK ]
此时,你的网卡也是可以通信的,但是否有其他影响,目前我还不知道。那如何消除这个提示呢?
其实,问题的原因是RedHat自己开发的NetworkManager管理工具和/etc/sysconfig/network-scripts/ifcfg-ethx配置不同步造成的。如果要消除这个提示,请关闭NetworkManager服务即可:
[root@mytesthost ~]#chkconfig NetworkManager off
[root@mytesthost ~]#service NetworkManager stop
此时,你再重新启动network服务试试:
[root@mytesthost ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
转载于:https://blog.51cto.com/swenzhao/1221712