On Mon, 2005-10-17 at 08:54 +1000, Benjamin Herrenschmidt wrote: ... > > If the eth0 device above is missing at another system boot the whole > > devices order is shifting, and changed, and as a consequence > > previous eth2 (radio card) simply does not exist any more, thus > > rendering my settings in the /etc/network/interfaces useless ... :) > > The solution would be to able to specify interfaces by MAC or position > in sysfs rather than ethX name in /etc/network/interfaces... Volunteer > to fix those scripts ? >
The sysfs approach works for me. I have the file "/etc/udev/local.rules" and a link to it in "/etc/udev/rules.d" ------------------------------------------------------------------- # /etc/udev/local.rules # # name the ethernet devices clearly # Help provided by http://www.reactivated.net/udevrules.php # # To use make a simlink to /etc/udev/rules.d KERNEL="eth*", SYSFS{address}="00:30:65:20:89:6d", NAME="airport" KERNEL="eth*", SYSFS{address}="00:03:93:9d:ff:92", NAME="sungem" #KERNEL="eth*", SYSFS{address}="XXXXXXXXXXXXXXXX", NAME="pcmcia" ---------------------------------------------------------------------- Looks like I never got around to finishing it for my pcmcia card and firewire port. It's works nicely for me. I don't use ethX anymore In /etc/network/interfaces I use "iface airport inet dhcp" or "ifup sungem" This link discusses how to do it. http://www.reactivated.net/writing_udev_rules.html digger -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

