Network configuration is invalid after a CentOS virtual machine copy move

Source: Internet
Author: User

Unable to resolve network after porting CentOS virtual machine
1, after migration, there will be one of the network card can not start (eth0 or eth1)

[[email protected] ~]# ifup eth0

warning:deprecated config file/etc/modprobe.conf, all config files belong into/etc/modprobe.d/.

warning:deprecated config file/etc/modprobe.conf, all config files belong into/etc/modprobe.d/.

Device eth0 does not seem to be present, delaying initialization.

2, delete file

[[email protected] ~]# mv/etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/ 70-persistent-net.rules.bak

3, comment out the file Ifcfg-eth0 and Ifcfg-eth01 mac address (HWADDR)

[[email protected] ~ ]# cat/etc/sysconfig/network-scripts/ifcfg-eth0

device=eth0

bootproto=static

#HWADDR = "XX: XX:XX:XX:XX:XX "

Onboot=yes

type=ethernet

4, restart the server (restart Nic bad)

Extension Description:

Caused by the problem is mainly because we unplug the hard drive from one server to another server, the MAC address of the two server network card is inconsistent, so we need to clear the original server configuration file specified MAC address, restart the new server after restarting the MAC address, the network card boot is also successful.

Of course the inconsistency between the MAC address information of the NIC and the configuration file caused by a similar situation causes the NIC to start prompting a similar error.

The network configuration is not valid after a CentOS virtual machine copy move

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.