An error occurred while restarting the network When configuring ip addresses in linux.

Source: Internet
Author: User


An error occurred while restarting the network When configuring the ip address in linux. If an unknown connection occurs, install centos 6.3 by default. After logon, the ip address configuration does not take effect and the NIC is not activated. Www.2cto.com [root @ localhost ~] #/Etc/init. d/network restart is shutting down the interface eth0: Error: disconnect the device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) failed: this device is not active [failed] is shutting down the interface wlan0: Error: Disconnecting the device 'wlan0' (/org/freedesktop/NetworkManager/Devices/1) failed: this device is not active [failed] disable the loopback interface: [OK] The loopback interface pops up: [OK] the pop-up interface eth0: Error: Unknown connection: f7d2609a-d666-4c4e-9ce8-01ae908dc239 [failed] With # ifconfig troubleshooting found that there is no configured with ip, the error message is that the NIC is not activated, enter the configuration file to modify DEVICE = eth0BOOTPROTO = noneNM_CONTROLLED = YesONBOOT = yesTYPE = EthernetUUID = "f7d2609a-d666-4c4e-9ce8-01ae908dc239" IPADDR = 192.168.0.56NETMASK = Signature = 4156init = noUSERCTL = noPREFIX = 24 DEFROUTE = Signature = yesNAME = "System eth0" HWADDR = 20: 6a: 8a: 2e: cf: c3 configuration is correct. After repeated experiments, it was found that the fault occurred in centos due to the conflict between the two services that started the network:/etc/init. d/network and/etc/init. d/NetworkManager services. Just restart NetworkManager. root @ localhost ~] # Service NetworkManager restart stop the NetworkManager daemon: [OK] SET network parameters... [OK] Starting the NetworkManager daemon: [OK] [root @ localhost ~] # Service NetworkManager restart stop the NetworkManager daemon: [OK] SET network parameters... [OK] Starting the NetworkManager daemon: [OK] [root @ localhost ~] #/Etc/init. d/network restart: closing the interface eth0: device status: 3 (disconnect) [OK] Closing the interface wlan0: device status: 3 (disconnect) [OK] Closing the loopback interface: [OK] pop-up loop interface: [OK] pop-up interface eth0: Error: Unknown connection: f7d2609a-d666-4c4e-9ce8-01ae908dc239 [failed] But I still have a problem: pop-up interface eth0: Error: Unknown connection: f7d2609a-d666-4c4e-9ce8-01ae908dc239 [failure] this problem only need to/etc/sysconfig/network-scripts/ifcfg-eth0 configuration file UUID = "f7d2609a-d666-4c4e-9ce8-01ae908dc239" comment out OK, of course, delete is not affected.

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.