Workarounds that eth0 cannot find after VMware clones a Linux virtual machine

Source: Internet
Author: User

Cause analysis: Many Linux uses udev to dynamically manage device files and to persist names based on device information, andVMware automatically generates Mac addresses for virtual machines. In this way, because the virtual machine of the base system has recorded the NIC mac address of the virtual machine corresponding to the NIC eth0, the mac address of the cloned virtual machine will be changed, andUdev will automatically The Mac corresponds to the NIC eth1. And so on,Udev will record all of the identified Mac and network card name relationship, so each clone network card name will automatically add 1, but in fact, kernel only to recognize a network card, The network configuration associated with the NIC name has not changed.

Solution:

1.udev Save the mac and Nic name in /etc/udev/rules.d/70-persistent-net.rules , in the cloned virtual machine as long as the deletion and name= " Eth0 " related row Delete, then the eth1 corresponding line of " eth1 " modified to " eth0 ", and restart the system. Another way is to remove the contents and restart the system.

2. # ifconfig eth0 up

#ifconfig

Now you can see the relevant information of Eth0 !



This article is from the "10917734" blog, please be sure to keep this source http://10927734.blog.51cto.com/10917734/1826825

Workarounds that eth0 cannot find after VMware clones a Linux virtual machine

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.