Thursday, 8 March 2012

Using a clone image on new hardware.

The Centos networking will not work after the new hardware is using a clone image. The problem occurs because the MAC addresses on the new hardware don't match the MAC addresses in the config files of the clone image, these are the MAC addresses of the original hardware the image was taken from.

To get Networking working on Centos when using a cloned image, just modify the entries in /etc/sysconfig/network-scripts/ifcfg-eth0 ifcfg-eth1 and the /etc/udev/rules.d/70-persistent-net.rules files so that the eth0 and eth1 entries match the new hardware MAC addresses.

Restart the networking using service network restart and networking should now be working.

No comments:

Post a Comment

File resolv.conf changed on reboot

The file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing ...