Linux Basic Learning-Nic does not start after cloning backup

Source: Internet
Author: User

Today in the practice of a sudden thought if the current use of the virtual machine in the system is broken or an unknown failure to affect the learning progress what to do, after all, re-install a system to delay a lot of time, so want to use the current normal system copy a backup

After copy, use VMware to open and change the name, boot OK, login OK, test network faile ... Restart the NIC

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

Think carefully, clone backup ... Oh, the network card settings must be wrong, the current virtual machine network card information about where to find it?

Baidu find the following file

/etc/udev/rules.d/70-persistent-net.rules

Open it

# 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 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:27:aa:db", attr{type}== "1", kernel== "eth*" , name= "Eth0"


# PCI Device 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:0e:59:33", attr{type}== "1", kernel== "eth*" , name= "Eth1"



Record the Mac of eth1

Go to/etc/sysconfig/network-scripts/ifcfg-eth0 to change Mac, device and static IP address after saving restart Nic ... Ok


Linux Basic Learning-Nic does not start after cloning backup

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.