Solve the problem of Nic restart failure in Centos

Source: Internet
Author: User
Preparing to restart the NIC. failed to use both commands [root @ localhostDesktop] # ifupeth0Activeconnectionstate: activatingActiveconnectionpath:/org/freedesktop/NetworkManager/ActiveConnection/1 ^ C ** Message: Caugh

Prepare to restart the NIC. failed to use both commands

[Root @ localhost Desktop] # ifup eth0
Active connection state: activating
Active connection path:/org/freedesktop/NetworkManager/ActiveConnection/1
^ C ** Message: Caught signal 2, shutting down...
[Root @ localhost Desktop] #/etc/init. d/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: activating
Active connection path:/org/freedesktop/NetworkManager/ActiveConnection/2
State: activated

The two errors are the same sentence.

Active connection path:/org/freedesktop/NetworkManager/ActiveConnection/

Baidu finds a solution and gets the following answer:

After you use the network management tool to modify the IP address, the current modification 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@vdb1 dev]# chkconfig NetworkManager off  ----

You only need to cancel a service.

[Root @ localhost Desktop] # service NetworkManager stop
Stopping NetworkManager daemon: [OK]

Next, proceed with the previous steps.

[Root @ localhost Desktop] #/etc/init. d/network restart
Shutting down interface eth0: [OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0:
Determining IP information for eth0.... done.
[OK]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.