Nic configuration problems after cloning CentOS Virtual Machine

Source: Internet
Author: User

After the CentOS virtual machine is cloned, Nic configuration problems CentOS Virtual Machine clone will conflict with the physical address, so the network adapter eth1 is automatically created and cannot start the network adapter. Solution: www.2cto.com Mode 1: 1) Modify/etc/sysconfig/network-scripts/ifcfg-eth0 to/etc/sysconfig/network-scripts/ifcfg-eth1 2) configure/etc/sysconfig/network-scripts/ifcfg-eth1 # change to eth1 DEVICE = "eth1" BOOTPROTO = "static" # hardware address from eth1 (obtained through ifconfig-) HWADDR = "00: 0C: 29: 91: 42: 2C "MTU =" 1500 "NM_CONTROLLED =" yes "ONBOOT =" yes "IPADDR = 192.168.152.101 NETMASK = 255.255.255.0 GATEWAY = 192.168.152.2 3) service network restart Mode 2: 1) modify/etc/udev/rules. d/70-persistent-net.rules copy the hardware address of eth1 to eth0 and delete eth1 Information 2) configure/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" BOOTPROTO = "static" HWADDR = "00: 0C: 29: 91: 42: 2C "MTU =" 1500 "NM_CONTROLLED =" yes "ONBOOT =" yes "IPADDR = 192.168.152.101 NETMASK = 255.255.255.0 GATEWAY = 192.168.152.2 3) reboot Mode 3 (not tested): 1) delete/etc/udev/rules. d/70-persistent-net.rules 2) Configure/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" BOOTPROTO = "static" HWADDR = "00: 0C: 29: 91: 42: 2C "MTU =" 1500 "NM_CONTROLLED =" yes "ONBOOT =" yes "IPADDR = 192.168.152.101 NETMASK = 255.255.255.0 GATEWAY = 192.168.152.2 3) reboot

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.