<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>Re: [plug] Multiple ethernet cards, same driver</TITLE>
</HEAD>
<BODY dir=ltr>
<P><FONT size=2>-----Original Message----- <BR><B>From:</B>
plug-bounces@plug.linux.org.au on behalf of Adam Ashley
<BR><B>Sent:</B> Tue 15/06/2004 10:09 PM <BR><B>To:</B> plug@plug.linux.org.au;
Russell Steicke <BR><B>Cc:</B> <BR><B>Subject:</B> Re: [plug] Multiple ethernet
cards, same driver<BR><BR></FONT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT><FONT size=2>>pci cards are number
from 0 up, starting next to the cpu/agp slot. the<BR>>kernel and its drivers
initialise cards from slot 0 working their way
up<BR>><BR>>Adam<BR><BR>yeah. it will follow the pci bus device
enumeration, which will always be in a consistent direction. However I have
generally found that the same cards are picked up furthest from the AGP first,
working towards the AGP, although I am not sure there are any hard and fast
rules for the direction of the addresses. </FONT></TT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT><FONT size=2>PCI card addresses
('device no') typically start at 0x4X as devices such as your north/south
bridges, and other onboard devices have fixed addresses from the
manufacturer.</FONT></TT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT><FONT size=2>ioports etc should never
need to be specified for a PCI device as the BIOS should configure the address
space/io space mappings of the devices, and these addresses are then read
from the PCI configuration registers when Linux does its PCI bus enumeration.
(ie don't tell me what addresses to use, I'm going to tell you
;-))</FONT></TT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT>Disabling junk like kudzu is always a
good idea though. And you can also have the case of, say, eth0 dying and a
reboot turning the old eth1 into eth0. In a situation where this is
important you might need to check your MAC addresses, as Bernd states, and have
floating eths.</TT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT>Hmmm.... can you alias an ethX to a
completely different name? That would be useful.... something like ifalias eth0
ethinet. ifalias eth1 ethlocal. something like that...</TT></P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><TT><FONT
size=2>...John...</P></FONT></TT>
</BODY>
</HTML>