Solve the Problem of NIC reloading in CentOS
After you modify the ip address, the following error occurs when you reload the NIC:
[root@vdb1dev]#servicenetworkrestart
Shuttingdowninterfaceeth0:Devicestate:3(disconnected)[OK]
Shuttingdowninterfaceeth1:[OK]
Shuttingdowninterfaceeth2:Devicestate:3(disconnected)[OK]
Shuttingdownloopbackinterface:[OK]
Bringinguploopbackinterface:[OK]
Bringingupinterfaceeth0:Activeconnectionstate:activating
Activeconnectionpath:/org/freedesktop/NetworkManager/ActiveConnection/23
Error:Timeout90secexpired.[FAILED]
Bringingupinterfaceeth1:Activeconnectionstate:activated
Activeconnectionpath:/org/freedesktop/NetworkManager/ActiveConnection/25[OK]
Bringingupinterfaceeth2:Activeconnectionstate:activated
Activeconnectionpath:/org/freedesktop/NetworkManager/ActiveConnection/26[OK]
At this time, the current Nic can communicate, but after you modify the IP address through the network management tool, the current modification operation does not take effect. So how can we eliminate this prompt?
In fact, the cause is that the NetworkManager management tool developed by RedHat is not synchronized with the/etc/sysconfig/network-scripts/ifcfg-ethx configuration. To eliminate this prompt, close the NetworkManager service:
[Root @ vdb1dev] # chkconfigNetworkManageroff -- permanently shut down the service and restart it.
[Root @ vdb1dev] # serviceNetworkManagerstop -- close the service immediately without restarting
StoppingNetworkManagerdaemon:[OK]