Device "eth0" doesnotseemtobepresent solution

Source: Internet
Author: User
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"

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.