Device eth0 does not seem-to-be present error resolution in CentOS

Source: Internet
Author: User

Cloning a virtual machine today, when more than one virtual machine, try to clone is really convenient, but encountered a
Device eth0 does not seem-be present problem, find a solution to the same problem on the Internet,
A smooth solution to the record:

Ifconfig ... did not see eth0. Then restart the NIC and report the following error.

Failure 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]

CentOS Linux Solution device eth0 does not seem to be present

Workaround:


First, open the/etc/udev/rules.d/70-persistent-net.rules content as shown in the following example:

# Vim/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.
#
# can modify it, as long as you keep each rule to a single
# line, and change is only the value of the Name= key.
# PCI Device 0x1022:0x2000 (Pcnet32)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:7e:8c:e7″, attr{type}==" 1″, KERNEL== "eth*" , name= "Eth0″
# PCI Device 0x1022:0x2000 (Pcnet32)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:30:c2:57″, attr{type}==" 1″, KERNEL== "eth*" , name= "Eth1″

Record the MAC address of the eth1 Nic 08:00:27:30:c2:57

Next, open the/etc/sysconfig/network-scripts/ifcfg-eth0

# Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Change the device= "Eth0″ to Device=" Eth1″,
Change the hwaddr= "08:00:27:7e:8c:e7″ to the MAC address above hwaddr=" 08:00:27:30:c2:57″

Here you need to use the copy y of vim to paste P

If you are currently in edit mode, you need to press the ESC key and then press the CTRL + V key on your keyboard (the normal state only needs to press CTRL + V), and the word "visual block" appears at the bottom of the edit box.

Use the arrow keys to move the cursor and select the text within the rectangular area.

Press the Y key to copy the selected text.

Use the arrow keys to move the cursor to the location where you want to paste, and then press p to paste.

Finally, restart the network

# Service Network Restart
Or

#/etc/init.d/network Restart

It's okay, it's done.

Device eth0 does not seem-to-be present error resolution in CentOS

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.