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