Network Configuration to be modified after Linux machine cloning

Source: Internet
Author: User

After cloning a Linux machine, you need to modify the network configuration. Assume that the original machine is two NICs, eth0 and eth1. After cloning, the MAC address is also two. The MAC address is different from the original one, however, because some network configurations of the system are not updated, the network of the cloned machine cannot be started. For example, an exception occurs: Bringing up interface eth0: pcnet32 device eth0 does not seepresent, delaying initialization. or the output shown in ifconfig-a is inconsistent with the actual situation, for example, eth0 does not exist, but eth2 and eth3 are added. The following are some repair items: 1. change/etc/sysconfig/network-scripts/ifcfg-eth3 to xxx-eth0, modify the information in 2. open etc/sysconfig/network-scripts/ficfg-eth0 (if this file does not exist, retry from xxx-eth3 Check the MAC of the ficfg-eth0 and the MAC of the ifconfig actual MAC and the MAC of the NIC corresponding to the VM information page, and modify the MAC of the ficfg-eth0. 4. Change the hostname in/etc/sysconfig/network to the new hostname3. restart the service, service NetworkManager restart and service network restart. if not, delete or modify/etc/udev/rules. d/70-persistent-net.rules, reboot system, which defines the binding relationship between the NIC and MAC address. /Etc/udev/rules. d/70-persistent-net.rules

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.