Device eth0 has different MAC address than expected, ignoring.


After testing the Instant Recovery of a Linux web server. See my previous post about this Recovery process. The Linux web server has no network connection. I quick look at ifconfig only showed the loopback adapter. So I tried ifup eth0 and run into to following error:

image

This can simply be fixed by changing the MAC address. Open the Virtual Machine Properties and write down the MAC Address:

image

open the /etc/sysconfig/network-scripts/ifcfg-eth0 in your favorite editor and change the HWADDR to the new MAC address and save the file.

image

The final step is to restart networking via /etc/init.d/network restart.

Advertisements

6 thoughts on “Device eth0 has different MAC address than expected, ignoring.

  1. Bob Plankers

    Alternately, you can just remove the HWADDR line from the offending ifcfg-eth* file and restart the network, too. In nearly every case the interfaces will be correct based on the detection order. I do this with my template VMs so there’s one less step at provisioning time.

    Reply
  2. dung

    I tried this on a cloned CentOS-5.5 VPS and it did not work. I also changed the network.addr parameter of /etc/sysconfig/hwconf to resemble the MAC address of VMWare configuration. However, I still get the same error (even after a reboot).

    Anyother suggestions?

    Reply
  3. Pingback: Solution for device eth0 has different mac address on vmware centOS « Oracle, Web, Script, SQLserver, Tips & Trick

  4. Alex

    Yes. works under VM with Fedora12. Long pain solved at last!!! I edited from GUI. Before was enough just to unplug network cable and that ruined connection between VM and host. Also always was after hibernate. Now all solved. Great!!!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s