[GLLUG] gentoo and net device ordering

Matt Graham danceswithcrows at usa.net
Wed Jul 20 14:41:24 EDT 2005


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,

-- 
   People don't tend to get paid.
   --MegaHAL, trained on Netizen's quotes file
There is no Darkness in Eternity/But only Light too dim for us to see


More information about the linux-user mailing list