I have a bootable Linux memstick that I use on a lot of different PCs (but all of the same model and configuration). Trouble is that udev is renaming the eth interfaces so that what was
eth0 on the last PC is suddenly ethX, where X=1..inf. This causes if-up (called by ifplugd) to fail, since
/etc/network/interfaces only specifies how to bring up
auto eth0 iface eth0 inet dhcp
It's a well-known problem; I've googled and found that this is caused by the MAC addresses changing and that it may be fixed by deleting
/etc/udev/rules.d/70-persistent-net.rules. But that only works after a reboot, which is inconvenient and should be unneccessary, since I know what behaviour I want.
What I want is non-persistent net rules, or in the alternative, an
/etc/network/interfaces script that adapts to the changing eth names, or perhaps it can be done with ifplugd. What's the best way to achieve this?
Distro: Ubuntu 8.04.