[GLLUG] gentoo and net device ordering
Michael George
george at mutualdata.com
Wed Jul 20 15:26:43 EDT 2005
On Wed, Jul 20, 2005 at 02:41:24PM -0400, Matt Graham wrote:
> On Wednesday 20 July 2005 14:25, after a long battle with technology,
> Michael George wrote:
> > For you Gentoo-ers out there...
> >
> > If I have two network devices (which take different kernel modules),
> > can I affect which one gets to be eth0 by the order I have them in
> > /etc/modules.autoload.d/kernel-2.6?
>
> The modules are loaded in the order specified. If you have via-velocity
> before tulip in the file, the via-velocity module will be loaded first
> and the Velocity NIC will be eth0 (if you have a Velocity NIC.)
>
> /etc/modules.conf is automagically generated from the files
> in /etc/modules.d/ by one of the boot scripts, so you could also do
> something like this:
>
> # in /etc/modules.d/nic
> alias eth0 via-velocity # or whatever...
> alias eth1 tulip
> alias eth2 e100
> # EOF
>
> ...and then you really wouldn't have to put the modules in the autoload
> file. HTH,
Interesting, both methods. Thank you!
--
-M
There are 10 kinds of people in this world:
Those who can count in binary and those who cannot.
More information about the linux-user
mailing list