Click to See Complete Forum and Search --> : one module for 2 differnet speeds


ee99ee2
08-29-2002, 01:08 PM
Running Debian Woody. I've got 3 interfaces on this machine. One is external, two are internal. One interface needs to sync at 10 Mbps (eth0), and the other 2 need to sync at 100 Mbps (eth1 and eth2).

The problem is that all 3 interfaces are the same chipset, so I use the same module (3c59x.o). To get the module to sync at 100 Mbps, you have to pass 'options=4' to the module. So when I first installed Debian, I told it to pass that option on to the module.

However, I now need one of the three interfaces to sync at 10. How can I do this since the module is only going to sync at 100 b/c of the other 2 interfaces? Can I just copy the module over to something like '3c59x2.o' and use that one for eth0 and not pass 'options=4' to it? If I did that, how would I tell eth0 to use 3c59x2 and eth1 and eth2 to use 3c59x?

I know there's a simple solution, but I'm lost.

-ee99ee2

cowanrl
08-29-2002, 06:27 PM
I think you can do that in your /etc/modules.conf file. There is usually a line or lines in it that look like:

alias eth0 3c59x
alias eth1 3c59x

You should be able to add the options line to it. In other words add:

options eth0 "options=4"

after the alias eth0 line.

You should be able to have separate options for each alias.

Of course the catch to this is that modules.conf already has an alias for each Ethernet interface. If it does then it is probably loading the modules by alias name. If not, then you may have to modify some of the scripts that load the modules so they are loaded by alias name.

On Red Hat, there is a man page for modules.conf. Don't know if there will be on Debian or not.