About the NIC name modification after Linux cloning on VMware

Source: Internet
Author: User

After installing the CENTOS6 system, the purified system clones several out to facilitate the late-stage experiment; because the MAC address regenerates after cloning, the actual effect is that Eth1,eth0 is cloned. The clone system will regenerate a MAC address because the system will become eth1 in Eth0 plus 1.


There are two ways to solve this problem:

Law One:

1.root Login, Cp/etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/70-persistent-net.rules.bak

2.vi/etc/udev/rules.d/70-persistent-net.rules, delete all content

3.reboot

4.vi/etc/udev/rules.d/70-persistent-net.rules, modify eth1 to eth0, record MAC address

5. Click the desktop system-perference-network connctions, delete auto-eth0, modify the system eth0 name as Eth0

6.vi/etc/sysconfig/network-scripts/ifcfg-eth0, modify the address where the MAC address is recorded in step 4

7. Restart, check the configuration


Law II:

1..root Login, Cp/etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/70-persistent-net.rules.bak

2.vi/etc/udev/rules.d/70-persistent-net.rules, delete eth0 related content, modify eth1 to Eth0

3. Record the MAC address of this new eth0

4.vi/etc/sysconfig/network-scripts/ifcfg-eth0, modify the address where the MAC address is recorded in step 2

5. Restart, check the configuration

In addition:

Select the network settings for the virtual machine:

Bridged:connected directly to the physical network

Replicate Physical network connection state tick

This allows you to use the same network segment IP as the physical machine.


CentOS 7 vmware Virtual machine Cloning network issues:

In fact, CentOS7 in this issue is more simple to deal with, as long as the configuration file about the network card hwaddr and UUID two lines to delete the

This article is from the "Small ops" blog, please make sure to keep this source http://wangyongchun.blog.51cto.com/10421552/1768404

About the NIC name modification after Linux cloning on 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.