On Fri, 14 May 2004, Brian Brazil wrote:
> On Fri, May 14, 2004 at 04:30:44PM +0100, Niall O Broin wrote:
> > I have a Linux router with three NICs, which works fine. I now want to build
> > standby hardware for that so that if it fails anyone can just switch to the
> > standby box by plugging it in, mains and networks, and turning it on.
> > However, if I have three identical NICs in a box how do I know which will
> > become eth0, eth1 and eth2 at boot time?
>> Interrogate the MAC address. Debian comes with a relavent script. Think
> its in ifupdown...
Failing that, unless the driver or the motherboard is weird, it should
be PCI slot order (assuming they're PCI devices)
(The kernel provides a standard way for drivers to walk find relevant
devices - it walks them along each bus in turn looking for the magic
device signature.)
Ronan
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!