Re: How to load an Ethernet driver on only one adapter
- From: Allen McIntosh <nospam@xxxxxxxxxxxxxxxx>
- Date: Thu, 22 Feb 2007 11:50:26 -0500
Pascal Hambourg wrote:
Dale Dellutri a écrit :>On Wed, 21 Feb 2007 10:35:59 -0500, in comp.os.linux.networking Cyril Perrin <cyril.perrin@xxxxxxxx> wrote:
I'm using a PC with two Intel Gigabit adapters (i8254x). When Linux
(RedHat 7.2, kernel 2.4.24) boots, it calls "insmod e1000.o" and the
driver initializes and takes control of both adapters. Is there a way to
restrict the e1000 driver to only one adapter? I've searched in the
driver parameters but there is nothing obvious.
For what purpose is this needed ?
The following doesn't quite answer your question, but it
may help.
I'm running FC6. The driver module loaded for each of my
ethernet interfaces is controlled by entries in
/etc/modprobe.conf
for example:
alias eth0 3c59x
alias eth1 e100
This does not work. Don't use it. This is a misuse of the module aliases because it does not mean that the actual interface names match the alias names.
I think RH 7.2 has a similar file, but I believe that the
file was /etc/modules.conf. Try
man modules.conf
You may be able to set them to use different drivers, or
even set one to have no driver:
alias eth0 e1000
alias eth1 off
I do not need to use RH to know it does not work.
When eth0 is invoked, the e1000 module is loaded, takes control of both adapters and creates eth0 and eth1.
As you say, the OP wasn't very clear on why he wanted to do this. If all he wanted to do was keep the second e1000 adapter from being recognized, that's not possible (and why would you want to do that anyway?) If some other adapter absolutely MUST be eth1, then it is possible to change the interface-name-to-adapter mapping after the modules load. However, I don't remember whether it was possible in RH 7.2. The OP should see if "man nameif" works. If it does, the OP can either create the appropriate configuration file, or set HWADDR to the right MAC addresses in the interface startup scripts (can be done from the GUI tool if it was around back then).
.
- References:
- Re: How to load an Ethernet driver on only one adapter
- From: Dale Dellutri
- Re: How to load an Ethernet driver on only one adapter
- From: Pascal Hambourg
- Re: How to load an Ethernet driver on only one adapter
- Prev by Date: internal DNS in vpn
- Next by Date: Re: How to load an Ethernet driver on only one adapter
- Previous by thread: Re: How to load an Ethernet driver on only one adapter
- Next by thread: Re: How to load an Ethernet driver on only one adapter
- Index(es):
Relevant Pages
|