From: Andrzej Krzysztofowicz <ankry@pg.gda.pl>
To: rhw@MemAlpha.CX (Riley Williams)
Cc: linux-kernel@vger.kernel.org (Linux Kernel)
Subject: Re: How does "alias ethX drivername" in modules.conf work?
Date: Tue, 7 Aug 2001 12:49:21 +0200 (MET DST) [thread overview]
Message-ID: <200108071049.MAA07138@sunrise.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.4.33.0108070757460.11974-100000@infradead.org> from "Riley Williams" at Aug 07, 2001 08:04:58 AM
"Riley Williams wrote:"
> >>>> Q> alias eth0 ne
> >>>> Q> options eth0 io=0x340
> >>>> Q> alias eth1 ne
> >>>> Q> options eth1 io=0x320
> >>>> Q> alias eth2 ne
> >>>> Q> options eth2 io=0x2c0
> >>>> Q> alias eth3 ne2k-pci
> >>>> Q> alias eth4 ne2k-pci
> >>>> Q> alias eth5 tulip
>
> >> However, if the cards are controlled by different drivers, you can
> >> influence the order they are detected in by your choice of entries in
> >> modules.conf - in the example above, the ISA cards are always eth0,
>
> >> eth1 and eth2, the NE2k-pci cards are always eth3 and eth4, and the
> >> tulip card is always eth5, simply because that's what the said file
> >> says.
>
> > Not always. You are wrong here, I'm afraid:
>
> > Lets assume that eth0-eth3 are not initialized at boot time and
> > your init scripts attempt to initialize eth4 ...
>
> Then I get an entry for eth4 in the `ifconfig` output, with NO entries
> for `eth0` through `eth3`, exactly as expected.
Did you ever try ? I think no. I've got the problem a few times while
(re)configuring multi-ethernet machines.
ne2k-pci is the first module loaded then and it finds two interfaces.
As there is no interfaces registered at the moment, they are named eth0 and
eth1 (sic!)
The interface names from modules.conf mean nothing here, they are ignored.
I see tho ways to get the proper intyerface names:
1. Force loading all modules in the appropriate sequence (ne before
ne2k-pci) either manually or via pre-install command
2. Renaming interfaces after they are initialized (yes, interface names can
be changed, but it is ugly)
> Note that the `ifconfig` command refers to the interfaces by name, and
> it's the settings in modules.conf that decide what type of interface
> that name refers to. That mapping can't be changed by any interface
> configuration or initialisation command, and the names used are those
> as given.
ifconfig does not assign interface names. The kernel driver (module) does.
And the driver has no option passed (even I thing it is impossiblke to pass
any) to define new interface naming scheme.
> > To avoid such problems one probably should add a lot of
> > pre-install parameters in modules.conf.
>
> What problems?
Described above.
Andrzej
--
=======================================================================
Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk
next prev parent reply other threads:[~2001-08-07 10:50 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 21:29 Mark Atwood
2001-08-04 1:21 ` Chris Wedgwood
2002-03-28 2:52 ` How to tell how much to expect from a fd Mark Atwood
2002-03-28 13:27 ` Eric Lammerts
2002-03-31 3:03 ` David Schwartz
2001-08-04 1:32 ` How does "alias ethX drivername" in modules.conf work? Thomas Duffy
2001-08-04 2:31 ` Chris Wedgwood
2001-08-04 4:39 ` Jim Roland
2001-08-04 19:35 ` Riley Williams
2001-08-06 19:59 ` Thomas Duffy
2001-08-06 22:56 ` Riley Williams
2001-08-06 23:46 ` Andrzej Krzysztofowicz
2001-08-07 7:04 ` Riley Williams
2001-08-07 10:49 ` Andrzej Krzysztofowicz [this message]
2001-08-07 19:04 ` Riley Williams
2001-08-07 21:46 ` Mark Atwood
2001-08-07 22:33 ` Tim Jansen
2001-08-07 23:06 ` Josh Wyatt
2001-08-07 23:35 ` Riley Williams
2001-08-08 0:04 ` Josh Wyatt
2001-08-08 6:28 ` Riley Williams
2001-08-08 10:59 ` Alan Cox
2001-08-08 0:08 ` Mark Atwood
2001-08-08 6:40 ` Riley Williams
2001-08-08 8:41 ` Andrzej Krzysztofowicz
2001-08-08 10:52 ` Eric W. Biederman
2001-08-08 11:40 ` Andrzej Krzysztofowicz
2001-08-08 22:04 ` Riley Williams
2001-08-08 21:09 ` Riley Williams
2001-08-08 0:11 ` Mark Atwood
2001-08-08 6:47 ` Riley Williams
2001-08-08 0:16 ` Mark Atwood
2001-08-08 20:26 ` Riley Williams
2001-08-08 9:30 ` Andrzej Krzysztofowicz
2001-08-08 21:31 ` Riley Williams
2001-08-08 21:42 ` Alan Cox
2001-08-08 22:24 ` Horst von Brand
2001-08-09 20:05 ` Colonel
2001-08-10 6:32 ` Paul Gortmaker
2001-08-10 21:25 ` Riley Williams
2001-08-15 4:32 ` Paul Gortmaker
2001-08-04 4:33 ` Jim Roland
2001-08-04 4:48 ` Jim Roland
[not found] ` <15SnZL-05h4nQC@fmrl06.sul.t-online.com>
2001-08-06 19:46 ` How to hack a network driver to use a specific ethX (was Re: How does "alias ethX drivername" in modules.conf work?) Mark Atwood
2001-08-07 20:51 How does "alias ethX drivername" in modules.conf work? Stuart Lynne
2001-08-08 2:36 ` Bill Nottingham
2001-08-08 5:45 ` Greg KH
2001-08-08 13:59 Matt_Domsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200108071049.MAA07138@sunrise.pg.gda.pl \
--to=ankry@pg.gda.pl \
--cc=ankry@green.mif.pg.gda.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=rhw@MemAlpha.CX \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®