Returns the lost eth0 after recovery of the ghost.

Source: Internet
Author: User
Find the lost eth0 after ghost recovery-Linux Enterprise Application-Linux server application information. For details, refer to the following. A few days ago, I used ghost to back up the entire hard disk (the entire hard disk ).

The device eth0 of the NIC disappears after the computer with the same configuration is recovered.

Depressed, where is the problem?

I checked some information and said that the device information may have changed.

I looked at the/proc/net/dev file, dizzy, and two NICs, eth0 and eth1, are the current NICs eth1?

Change eth0 to eth1 in the/etc/network/interfaces file.

It seems that the mac address of the NIC is changed, and the system recognizes the NIC of the new machine as eth1.

This is also inconvenient. How can the recovered system automatically identify the new Nic?

Ubuntu7.10server can be implemented in this way

Delete the/etc/udev/rules file. d/70-persistent-net.rules restarts, and the new Nic is automatically set to eth0. Other linux systems should also have similar files. Because the 70-persistent-net.rules file in my system only contains information about the NIC, so I deleted the file directly, and the file will be automatically generated after the restart.

Before ghost, delete the/etc/udev/rules. d/70-persistent-net.rules file in the source disk. After the ghost hard disk is completed, it can automatically identify eth0 on the new system.
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.