MAC address exception handling by Linux migration under virtual machine

Source: Internet
Author: User

MAC address exception handling by Linux migration under virtual machine

Linux cannot enable NIC: Device eth0 has different MAC address than expected,ignoring resolved

Encountered an error: On Linux, the network card cannot be successfully started,

When we activate a network card, the following error is indicated.

Cannot activate network device eth0!

Device Eth0 has different MAC address than expected, ignoring

Cause of the problem:

The network card in the configuration file has a MAC address that does not match the actual NIC address.

You can compare the MAC address in the Ifconfig results with the MAC address in the configuration file below.

/etc/sysconfig/network-scripts/ifcfg-eth0

(Note: The configuration file may not call this name, it may also be ifcfg-***, such as for my system, I modified called ifcfg-eth0.bat)

Workaround:

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Edit the MAC address.

I was on the virtual machine above the problem,

I modified the MAC address in the configuration file to the MAC address in the ifconfig results.

Problem solved, the network card can start from the new.

[Network configuration=>edit=>ethernet Device=>bind to MAC address] displays the MAC addresses,

Also becomes the correct MAC address.

MAC address exception handling by Linux migration under virtual machine

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.