which card is which (eth0 and eth1)
Damien Elmes
resolve at repose.cx
Tue Aug 28 22:09:31 EST 2001
Steven Hanley <sjh at svana.org> writes:
> All
>
> I am wondering if anyone knows if there is some solution for this. If you have
> two identical ethernet cards (in this case eepro100's) when you load the
> module for them they both get recognised. However the order in which they are
> initialised can change. Ie one time one gets eth0 the next time that same card
> gets eth1.
>
> Now this generally wont happen booting the same kernel version without
> changing the kernel arguments or anything (that they would change) however on
> a kernel upgrade or if someone changed the order in which the pci bus is
> scanned they could change. (pci bus scan order is an available kernel command
> line argument AFAIR).
>
> Anyway I am wondering if there is some simple way you can tie one specific
> card to eth0 and the other to eth1 no matter what, using the hwaddr or
> something similar (ie data stored inside the card) would be good.
>
> If not do I have to just know which card is which for a given installation,
> and any time the kernel changes or similar make sure it is tested.
steve, if no better solution is posted, ifconfig reports HW addresses,
and so you could write a little script to do the various routing for
each interface.
cheers!
--
Damien Elmes
resolve at repose.cx
More information about the linux
mailing list