LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Network cards were switched (http://www.linuxquestions.org/questions/slackware-14/network-cards-were-switched-171337/)

Worstje 04-17-2004 01:00 PM

Network cards were switched
 
Hello,

I have two network cards in my computer, one is currently unused but I do need it occasionally so I cannot remove it. I have today compiled my 2.6.5 kernel, and now I run that, it looks like it switched the networkcards around.

dmesg gives this (booted in 2.4.22 kernel):

Code:

PCI: Found IRQ 5 for device 00:12.0
PCI: Sharing IRQ 5 with 00:0c.0
ne2k-pci.c:v1.02 10/19/2000 D. Becker/P. Gortmaker
  http://www.scyld.com/network/ne2k-pci.html
PCI: Found IRQ 10 for device 00:10.0
eth0: RealTek RTL-8029 found at 0xe000, IRQ 10, 00:20:18:BA:26:5A.
...
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 11 for device 00:0a.0
eth1: RealTek RTL8139 Fast Ethernet at 0xc8ba9000, 00:50:fc:a3:02:1b, IRQ 11
eth1:  Identified 8139 chip type 'RTL-8139C'

I have a few questions.

1) How do I see what networkcard is currently attached to what interface. ifconfig -a does not give me that information. --Edit: Never mind, I looked over the eth1: lines.. :/

2) How can I keep the networkcards 'glued' to a certain interface? I can't keep switching cables around every time I have to fall back on a 2.4 kernel, or that I compile another kernel and it switches again.

Which networkcard is used for what interface, I don't care. As long as it doesn't change :D

Thanks in advance :)

Tinkster 04-17-2004 04:08 PM

You could define aliases in
/etc/modules.conf ...

I'm a bit surprised, though, that they would be
sorted out differently in differen kernel releases.

The way they are evaluated is by pci-slot:
http://www.linuxquestions.org/questi...light=PCI+slot



Cheers,
Tink

shadow_wwp 11-17-2004 08:02 AM

i have the same question , and i try to edit /etc/modules.conf , add "alias eth1 ne2k-pci" in it.

than reboot system . but i still can't use the "eth1". than , i found the module "ne2k-pci" have not
load . i try to do this by myself, so i used "insmod ne2k-pci" but , error . the system tell me
"-1 Unknown symbol in module". and the log message is :

ov 17 21:59:02 unit-e7slf2y5c3 kernel: ne2k_pci: Unknown symbol ei_open
Nov 17 21:59:02 unit-e7slf2y5c3 kernel: ne2k_pci: Unknown symbol alloc_ei_netdev
Nov 17 21:59:02 unit-e7slf2y5c3 kernel: ne2k_pci: Unknown symbol ei_interrupt
Nov 17 21:59:02 unit-e7slf2y5c3 kernel: ne2k_pci: Unknown symbol ei_close
Nov 17 21:59:02 unit-e7slf2y5c3 kernel: ne2k_pci: Unknown symbol NS8390_init



who can help me ? thank's ..

shadow_wwp 11-17-2004 08:20 AM

ha~~

i find the answer ,

i use the
modprobe ne2k-pci

the module can load. i can use "8029" as eth1


All times are GMT -5. The time now is 05:43 AM.