After performing the network service restart, the device eth0 does not seem-to is present problem, mainly because the system has a number of network card configuration, and configuration file mismatch caused.
To solve this problem, the idea is to look at the current configuration of the system NIC configuration file, and then modify the corresponding configuration in the network configuration file
Specific phenomena:
Service Network restart
Shutting down loopback insterface: [OK]
Bringing Up loopback insterface: [OK]
Bringing up interface Eth0:device eth0 does no seem to be present,delaying initialization. [FAILED]
Workaround:
1. View the network configuration file
Cat/etc/udev/rules.d/70-persistent-net.rules
#This file is automatically generated by the/lib/udev/write_net_rules# program, run by the Persistent-net-generator. Rules rules file.## You can modify it, as long as you keep each rule in a single# line, and the change is only the value of the N Ame= key.# PCI device 0x8086:0x100f (e1000)subsystem=="Net", action=="Add", drivers=="?*", attr{address}=="00:0C:29:6F:02:C2", attr{type}=="1", kernel=="eth*", name="eth0"#PCI device 0x8086:0x100f (e1000)subsystem=="Net", action=="Add", drivers=="?*", attr{address}=="00:0c:29:d0:74:01", attr{type}=="1", kernel=="eth*", name="eth1"#PCI device 0x8086:0x100f (e1000)subsystem=="Net", action=="Add", drivers=="?*", attr{address}=="00:0c:29:bc:4e:d6", attr{type}=="1", kernel=="eth*", name="eth2"#PCI device 0x8086:0x100f (e1000)subsystem=="Net", action=="Add", drivers=="?*", attr{address}=="00:0c:29:78:35:ae", attr{type}=="1", kernel=="eth*", name="Eth3"
After using the ifconfig command execution, the network card shown is the last eth3, now we do not need to eth3, want to change back to eth0. Only Ifcfg-eth0 in the/etc/sysconfig/network-scripts/folder
#This file is automatically generated by the/lib/udev/write_net_rules# program, run by the Persistent-net-generator. Rules rules file.## You can modify it, as long as you keep each rule in a single# line, and the change is only the value of the N Ame= key.# PCI device 0x8086:0x100f (e1000) #SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "00:0c : 29:6f:02:c2 ", attr{type}==" 1 ", kernel==" eth* ", Name=" eth0 "# PCI device 0x8086:0x100f (e1000) #SUBSYSTEM = =" NET ", ACTION = = "Add", drivers== "? *", attr{address}== "00:0c:29:d0:74:01", attr{type}== "1", kernel== "eth*", Name= "eth1" # PCI Device 0X8086:0X100F (e1000) #SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:bc:4e:d6", Attr{type }== "1", kernel== "eth*", Name= "eth2" # PCI device 0x8086:0x100f (e1000)subsystem=="Net", action=="Add", drivers=="?*", attr{address}=="00:0c:29:78:35:ae", attr{type}=="1", kernel=="eth*", name="eth0"
The last record is currently in use of the network card data, including the MAC address information, you need to put the last card name from Eth3, change to eth0, and then modify Ifcfg-eth0
Device="eth0"Bootproto="Static"HWADDR="00:0c:29:78:35:ae"Ipv6init="Yes"nm_controlled="Yes"Onboot="Yes"TYPE="Ethernet"NETMASK=255.255.255.0ipaddr=192.168.114.128GATEWAY=192.168.114.1
HWADDR changed to the MAC address of the last record in the 70-persistent-net.rules file.
Restart modification succeeded.
Attention:
If NetworkManager is not turned off, you need to close
Service NetworkManager Stop
Chkconfig NetworkManager off
Network error Device eth0 does not seem to be present under CentOS