Solve the problem of changing the address restart of Hyerv Linux virtual machine NIC

Source: Internet
Author: User

About Linux virtual machine, when the virtual machine copy, because the virtual machine configuration file will record the MAC address of the network card, so the Linux inside the recorded network card address and the actual conflict, so Linux will automatically increase the network card address.

For example, the original is eth0, then it will become eth1. So this machine will be a problem, resulting in no network card, unable to obtain an IP address.

The solution to this problem is to first modify the Ifcfg file inside the/etc/sysconfig/network-scripts to eth0 and eth1.

Then delete the files that record the MAC address of the NIC, and let Linux restart with the default eth0 and eth1 for the two NIC names.

The file that needs to be deleted is/etc/udev/rules.d/70-persistent-net.rules.

Ensure that the eth0 and ETH1 are configured correctly, and then restart the Linux server.

Solve the problem of changing the address restart of Hyerv Linux virtual machine NIC

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.