Linux virtual machine clone, boot system discovery NIC fails to start

Source: Internet
Author: User

First, the Linux virtual machine cloning, the boot system found that the network card could not start, and then ifup eth0 network card will prompt (Device eth0 does not seem to be present, delaying initialization.) failed.

Second, the treatment method:

Method One:

1, [[email protected] ~]# 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

2, [[email protected] ~]# 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″

3, # Ifdown eth0 && ifup eth0 or #/etc/init.d/networkrestart or service network restart

Method Two:

1. Delete (/etc/sysconfig/network-scripts/ifcfg-eth0) the network card MAC address line (hwaddr=) data.

2, after the last restart of the operating system is normal. See if (ifconfig) is normal. (This method is not recommended)

Linux virtual machine clone, boot system discovery NIC fails to start

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.