重新加載網(wǎng)卡時出現(xiàn)的錯誤如下:
[root@vdb1 dev]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down interface eth1: [ OK ]
Shutting down interface eth2: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/23
Error: Timeout 90 sec expired.
[FAILED]
Bringing up interface eth1: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/25
[ OK ]
Bringing up interface eth2: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/26
[ OK ]
此時,當前網(wǎng)卡也是可以通信的,但是通過網(wǎng)絡管理工具修改IP之后隅居,當前修改操作是不會生效的。那如何消除這個提示呢葛虐?
其實胎源,問題的原因是RedHat自己開發(fā)的NetworkManager管理工具和/etc/sysconfig/network-scripts/ifcfg-ethx配置不同步造成的。如果要消除這個提示屿脐,請關閉NetworkManager服務即可:
[root@vdb1 dev]# chkconfig NetworkManager off --永久關閉服務涕蚤,需要重啟
[root@vdb1 dev]# service NetworkManager stop --立即關閉服務,不需要重啟
Stopping NetworkManager daemon: [ OK ]
此時的诵,再重新加載network服務即可:
[root@vdb1 dev]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down interface eth2: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed.
[FAILED]
Bringing up interface eth1: Determining if ip address 192.168.179.181 is already in use for device eth0...
[ OK ]
Bringing up interface eth2: Determining if ip address 172.168.180.191 is already in use for device eth2...
[ OK ]