The problem of eth0 Nic cannot be found on the network after cloning Linux system with VMware

Source: Internet
Author: User

When using a cloned virtual machine to discover that the network card eth0 is not available in the system, using IFCONFIG-A will find only eth1. Because the system is cloned, the original eth0 and IP address are the original network card, VMware Discovery has been occupied, will create a new ETH1 network card. Because the network-related configuration of the system is based on eth0, ETH1 does not have a network-related configuration, so there is a situation where networking is not possible.

At this point we just need to modify the two files and then reboot the system just fine.

First modify Ifcfg-eth0 This file

Vim/etc/sysconfig/network-script/ifcfg-eth0

With these options, delete the UUID directly with HWADDR (the corresponding network card physical address), save exit

  

And then modify 70-persistent-net.rules this file,

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

These options appear, name=eth0 that comment off or delete, change name=eth1 to Name=eth0, exit save,

or more convenient to delete the 70-persistent-net.rules file directly, restart will automatically generate a correct

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

Finally reboot restart in ifconfig found the IP address appeared, normal networking also no problem.

  

The problem of eth0 Nic cannot be found on the network after cloning Linux system with VMware

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.