1 device & quot; eth0 & quot; doesnotseemtobepresent, delayinginitialization is the rule that Centos6 uses udev to dynamically manage device files to record MAC addresses and network card names in udev
1 |
device "eth0" does not seem to be present, delaying initialization |
The reason is that Centos6 uses udev to dynamically manage the device file and records the MAC address and Nic name in the udev rule script. after VMware is upgraded, the VM Nic MAC will change, in this case, the system considers that the NIC is newly added and named eth1, as shown below:
12345678910 |
ip add1: lo:
mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth1:
mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0c:29:ce:c0:1e brd ff:ff:ff:ff:ff:ff inet 192.168.1.13/24 brd 192.168.1.255 scope global eth1 inet6 fe80::20c:29ff:fece:c01e/64 scope link
|
Solution 1: Change the network configuration file device eth0 to eth1:
1234567 |
cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth1"BOOTPROSTO=staticIPADDR=192.168.1.13NETMASK=255.255.255.0GATEWAY=192.168.1.1ONBOOT="yes" |
Solution 2: modify the rules for the mac and Nic names of the udev record:
123 |
cat /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x1022:0x2000 (pcnet32)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:ce:c0:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |