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.

Advertisement

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

  1. 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.

  2. 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?

  3. 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!!!

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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.