Centos:device eth0 does not seem to be present problem solving method

Source: Internet
Author: User

After using the VMware Clone Linux virtual machine, often is the network connection is not up, behaves as Ifconfig cannot see the network card, even if changed/etc/sysconfig/network-scripts/under the corresponding network card file Onboot=yes also does not, when restarts the network (/etc/init.d/network restart) The following error message appears:

"Device eth0 does not seem to be present, delaying initialization."


This is due to the network card configuration file error of the clone machine, the workaround:


1. Open the/etc/udev/rules.d/70-persistent-net.rules file.

2. find the line that matches your MAC address of your machine, change its "name" field to the network card device name (ETH0,ETH1,ETH2, etc.) that you are using now, and then delete or comment out any rows that do not match your Mac. Such as:

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:04:19:2d:3f:52", attr{type}==" 1 ", kernel==" eth* ", name=" eth0 "
# PCI Device 0x1022:0x2000 (pcnet32)
#SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "00:04:19:2d:3f:53", attr{type}==" 1 ", kernel==" eth* ", name=" eth1 "

3. Please change the MAC address and network card name in the/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ETHX (the NIC name to be changed) file, and replace Onboot with Yes.

4. Restart the virtual machine, which is required.


Note: In the second step, the correct MAC address will go to the vsphere client's admin interface, edit setting to view it, rather than/etc/sysconfig/network-scripts/that in the system.


Centos:device eth0 does not seem to be present problem solving method

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.