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?
Well interfaces are ordered in order of driver loading.
However if you have many interfaces handled by one driver
which is usually the case, you are at the mercy of PCI ordering.
Note adding a PCI nic can change the ordering (even taking
precedence over on board nics).
Across boots it shouldn't change so you can always
just hardcode the renaming in a script using
ip link set dev eth0 name lan
ip link set dev eth1 name dmz
ip link set dev eth2 name wan
You can do it based on MAC address using nameif
to handle the case where adding cards changes
the ordering, though I've never had to handle
that situation.
--
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---
There are a few handy shortcuts common to all linux window managers:
lower window Middle mouse click on titlebar
resize window Alt + Middle mouse drag in appropriate bit of window
move window Alt + Left mouse drag anywhere in window
--
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!