"Device eth0 does not seem to be present" workaround

Source: Internet
Author: User

when cloning a new CentOS virtual machine in KVM, the following issues occur:
# 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]

use Ifconfig to see the missing eth0, only lo; ifconfig-a to see more eth1 information.

Workaround 1:
# mv/etc/sysconfig/network-scripts/ifcfg-eth0/etcsysconfig/network-scripts/ifcfg-eth1
Change the MAC address of the eth0 to Eth1 's MAC address, changing its device name to Eth1, and then restarting the network.

Workaround 2:
# RM-RF /etc/udev/rules.d/ 70 -persistent-net.rules
# reboot

总之,
只要保证/etc/sysconfig/network-scripts/ifcfg-eth0 与/etc/udev/rules.d/70-persistent-net.rules的信息一致即可,即网卡地址与网卡编号一致,这样service network restart 就可以配置成功。

"Device eth0 does not seem to be present" workaround

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.