How to modify the network adapter after VMware virtual machine cloning CentOS 6

Source: Internet
Author: User

CENTOS6after the virtual machine is cloned, the NIC name changes, and the default network card name is eth0. The network card for the cloned virtual machine is eth1.

Default configuration file:/etc/sysconfig/network-scripts/ifcfg-eth0

1 , and the configuration file, restart network.

[[Email protected]]# vim/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Type=ethernet

Onboot=on

Nm_controlled=yes

Bootproto=dhcp

        

2 , editing a network card device

[Email protected]]# Vim/etc/udev/rules.d/70-persistent-net.rules

The following content, you will see that there are 2 NICs eth0 and Eth1,eth0 for the clone system, eth1 for regeneration, the front plus # comment out the first network card, change the 2nd network card for eth0, record the MAC address

# PCI Device 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:c1:4c:6b", attr{type}== "1", kernel== "eth*" , name= "Eth0"

# PCI Device 0x8086:0x100f (e1000)

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

3 and restart the machine. The NIC name will be changed to eth0.


Network adapter Modification method after VMware virtual machine cloning CentOS 6

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.