The NIC configuration information is as follows:
[Root @ justin desktop] # vim/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = "eth0" BOOTPROTO = "static" NM_CONTROLLED = "yes" IPADDR = 10.15.72.194NETMASK = 255.255.255.0GATEWAY = networking = yesTYPE = "Ethernet" UUID = "aa67128b-2d66-4fd8-a346-4e69622bff67" HWADDR = 00: 0C: 29: 81: 38: 08 DEFROUTE = yesPEERDNS = yesPEERROUTES = yesIPV4_FAILURE_FATAL = yesIPV6INIT = noNAME = "System eth0" LAST_CONNECT = 1379901121
The following error is prompted when you restart the NIC:
[Root @ justin desktop] # service network restart is shutting down the interface eth0: Error: Disconnecting 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: aa67128b-2d66-4fd8-a346-4e69622bff67 [failed] [root @ justin desktop] #
The error message "the NIC is not activated. Use ifconfig eth0 to check whether the IP address has taken effect ."
[Root @ justin desktop] # ifconfig eth0eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 81: 38: 08inet6 addr: fe80: 20c: 29ff: fe81: 3808/64 Scope: linkUP broadcast running multicast mtu: 1500 Metric: 1RX packets: 9126 errors: 1 dropped: 0 overruns: 0 frame: 0TX packets: 810 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000RX bytes: 999666 (976.2KiB) TX bytes: 115751 (113.0KiB) Interrupt: 19 Base address: 0x2000 [root @ justin desktop] #
The fault occurs because two services on the startup network Conflict:/etc/init. d/network and/etc/init. d/NetworkManager. Just restart or close NetworkManager.
[Root @ justin desktop] # service NetworkManager restart stop NetworkManager daemon: [OK] SET network parameters... [OK] Starting the NetworkManager daemon: [OK] [root @ justin desktop] #/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 loopback interface: [OK] pop-up interface eth0: Error: Unknown connection: aa67128b-2d66-4fd8-a346-4e69622bff67 [failed] [root @ justin desktop] # ifconfig eth0eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 81: 38: 08 inet addr: 10.15.72.194 Bcast: 10.15.72.255 Mask: 255.255.255.0inet6 addr: fe80: 20c: 29ff: fe81: 3808/64 Scope: LinkUP broadcast running multicast mtu: 1500 Metric: 1RX packets: 11620 errors: 2 dropped: 0 overruns: 0 frame: 0TX packets: 964 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000RX bytes: 1271085 (1.2 MiB) TX bytes: 138181 (134.9 KiB) Interrupt: 19 Base address: 0x2000 [root @ justin desktop] #
[Pop-up interface eth0: Error: Unknown connection: aa67128b-2d66-4fd8-a346-4e69622bff67 [failed] This problem just comment out UUID = "ifcfg-eth0" in the/etc/sysconfig/network-scripts/aa67128b-2d66-4fd8-a346-4e69622bff67 configuration file, you can also delete it.
This error may occur when you restart the network adapter [RTNETLINK answers: File exists]. This is also caused by a conflict between the NetworkManager service and the Network Adapter Service. You can restart or close the network adapter, when using a wireless network, it is inconvenient to disable the NetworkManager service. You only need to restart the NetworkManager service. If the NetworkManager service is disabled, RTNETLINK answers: File exists will never appear.
[root@justin ~]# chkconfig --level 345 NetworkManager off
This article is from the "process is to achieve results" blog, please be sure to keep this source http://justinpeng.blog.51cto.com/7662323/1302799