Re: How to load an Ethernet driver on only one adapter



On Wed, 21 Feb 2007 10:35:59 -0500, Cyril Perrin wrote:

Hi,

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.
Thanks,

Cyril.

Hi Cyril,
Have a look in your /etc/modprobe.conf (or possibly modules.conf)
it will have entries for both your network cards there something like:
alias eth0 e1000
alias eth1 e1000

Remark out the second one (eth1)

next look at your /etc/sysconfig/networking/devices directory
you will probably have a couple of configuration files, one for each nic.
They will be named something like:ifcfg-eth0

In your ifcfg-eth0 file, make sure you reference the correct mac address
of the nic you want to enable. eg:
HWADDR=00:00:00:00:00:00

This should effectively disable your eth1 device. To be extra sure, you
could rename ifcfg-eth1 to old-ifcfg-eth0 (NB. put the old as a prefix
rather than a suffix, as I believe the system looks for ifcfg-* files )



--
Regards,
David Bailey
david _AT_ bailey dot id dot au
.



Relevant Pages

  • [PATCH 18-rc3] Fix typos in /Documentation : S
    ... Request flows seen by I/O schedulers ... cpufreq-stats is a driver that provices CPU frequency statistics for each CPU. ... +interface will appear in a separate directory under cpufreq ... This drives supports all SMC ISA/MCA adapters. ...
    (Linux-Kernel)
  • Re: Pocket PC NDIS Intermediate Driver Programmatic Uninstall
    ... as their Ndis call counterparts. ... > definitely able of starting/stopping the network adapters, ... Binding remake necessary to uninstall the IM will cause the ... >> protocols manually from the intermediate driver miniport, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: NDIS IM driver vs TDI filter
    ... I'll see the traffic from all adapters. ... > Intercepting RAS over modem is EXTREMELY difficult in an intermediate driver. ... You need to understand the NDIS upper-edge and the NDIS ... > If you sit on top of TCP, then filtering the connection is a little harder. ...
    (microsoft.public.development.device.drivers)
  • Re: [RFC|PATCH][2.6] Additional i2c adapter flags for i2c client isolation
    ... My goal was to keep all non-dvb i2c clients away from my dvb i2c adapters. ... I didn't want to touch every i2c driver and break things. ... >>class and the driver class don't match, the driver is not probed on the bus. ...
    (Linux-Kernel)
  • Re: 2nd NIC ifconfig
    ... also assume eth0 and eth1 are different types of nics and thus need ... then ifconfig eth1 to bring the card up ... if you don't know the driver needed for the secound card. ... I know by using each NIC one at a time that all four NICs I've tried ...
    (comp.os.linux.networking)