[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 NIC's, assigned in wrong order



On Mon, Dec 29, 2003 at 12:33:17AM +0100, Jan Minar wrote:
> On Sun, Dec 28, 2003 at 12:56:47PM -0700, Dean Allen Provins wrote:
> > I have two Ethernet cards (NICs) in a PII-300.  The first recognized is
> > an NE2000 ISA clone at IRQ10, and the second is a PCI at (shared) IRQ
> > 12.
> > 
> > I would like the second (the PCI) to be assigned as ETH0, and the first
> > (ISA) to be ETH1.
> 

First of all, why does the name order matter?

Second, iirc they are named by order of detection, so you could compile
them in as modules and then load the modules in the naming order you
want.
>From what you are writing, it is not relevant for this case, but if
they both use the same driver, replacing their physical order in the
slot should do the trick.

> I have rather similar problem.  And what is the solution when the cards
> are the same type? -- The closest I got is:
> 
> nameif (8)           - name network interfaces based on MAC addresses
> 
> But I couldn't find nameif called from anywhere--so I guess the right
> thing to do would be to call it from /etc/init.d/networking or
> /etc/networking/interfaces.
> 
> Whoopy Xmas.
> Jan.
> 
> > I've fiddled with the ether= append line for the kernel, and also the
> > contents of the interfaces file in /etc/network to no avail.
> 
> 
> 
> -- 
> Jan Minar                      Had I any humility, I would be perfect.




Reply to: