Monday, August 25, 2008

persistent eth0 or eth1 values problem?? solved on debian-user today!

the below is thanks to Clifford Hansen in debian-user mail list!

I believe it's doing this because the network card has a different mac address to the previous machine
(albeit virtual)

Have a look in the following file:
% cat /etc/udev/rules.d/z25_persistent-net.rules

You should see lines like the following:
# PCI device 0x14e4:0x1677 (tg3)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", NAME="ethx"

where xx:xx:xx:xx:xx:xx is the mac address and ethx is the device name

just delete all ethx lines and then on reboot eth0 should be eth0 again...

HTH