Skip to contentSkip to conversation

Multiple NIC cards in the same machine and 2.5/2.6

DISCUSSION NoTellin 2 participants 4 messages Feb 21, 2004 – Feb 22, 2004

lore
Share & tools
lore

NoTellin

author
#0 lore raw

I use an iptables based firewall. I currently have 4 NIC cards in the machine.

My modules.conf file contains the following lines:

alias eth0 ne
alias eth1 ne
options eth0 -o ne-0 io=0x300 irq=3
options eth1 -o ne-1 io=0x200 irq=5
alias eth2 winbond-840
alias eth3 3c509

This works perfectly fine for the 2.4.x series of kernels up to and including 2.4.24

However, I can't get this to work in any 2.5/2.6 kernel. The 2.6 series of kernels will recognize that there are 3 nic cards but doesn't seem to accept 2 copies of the ne nic drivers in memory. I've tested this up to and including 2.6.3.

I've tried researching this on the 'Net but I've only been able to find references suitable for the 2.4 and lesser series of kernels. Could someone point me to the equivalent information for 2.5/2.6 and higher?

Configuration:

90 MHz Pentium Classic, 64 meg ram, 3 gig hardrive.

eth0 - ISA NE2000 - ADSL connection to Internet
eth1 - ISA NE2000 - Lan Segment 2 connection
eth2 - PCI Windbond - Lan segment 1 connection
eth3 - ISA 3com - Cable Modem (backup) connection to the Internet.

Thank you everyone.
Guy

Signature · 1 line
Free Speech is better than Free Beer
#1 lore raw
Quoted 7 lines · NoTellin

alias eth0 ne
alias eth1 ne
options eth0 -o ne-0 io=0x300 irq=3
options eth1 -o ne-1 io=0x200 irq=5
alias eth2 winbond-840
alias eth3 3c509

Quoted 7 lines

This works perfectly fine for the 2.4.x series of kernels up to and including 2.4.24

However, I can't get this to work in any 2.5/2.6 kernel. The 2.6 series of kernels will recognize that there are 3 nic cards but doesn't seem to accept 2 copies of the ne nic drivers in memory. I've tested this up to and including 2.6.3.

There is no need to load two copies of the ne module. Just use:

alias eth0 ne
alias eth1 ne
options ne io=0x300,0x200 irq=3,5

author
#2 lore raw
Quoted 6 lines · Sergey Vlasov

There is no need to load two copies of the ne module.  Just use:

alias eth0 ne
alias eth1 ne
options ne io=0x300,0x200 irq=3,5

Ah-HAH. This must be one of those fundamental differences between 2.4 and 2.6. At the risk of sounding utterly incompetent, could you enlighten me as to what I should have been looking for in terms of seach terms. I like to think I'm a decent googler and I generally RTFM, but I was totally unable to help myself this time.

I was aware that the driver layer is completely different between the 2.4 and 2.6 series, but I have difficulty in finding out what that means from a practical standpoint. Hence the questions.

Thank you very much for your answer BTW. I play with it later this weekend.

Guy

Signature · 1 line
Free Speech is better than Free Beer
#3 lore raw
Quoted 5 lines · NoTellin
Quoted 1 line · Sergey Vlasov

options ne io=0x300,0x200 irq=3,5

Ah-HAH. This must be one of those fundamental differences between 2.4 and 2.6.

No - this is an old feature (it was present in 2.2 and maybe even earlier). It is noted in Documentation/networking/net-modules.txt.