LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   finding out which ethX is using which module (https://www.linuxquestions.org/questions/linux-newbie-8/finding-out-which-ethx-is-using-which-module-276019/)

Menestrel 01-10-2005 05:54 AM

finding out which ethX is using which module
 
I have two ethernet cards. One is a 3com and the other is a Realtek. When I issue the command ifconfig, both eth0 and eth1 are displayed. The question is: How can I find out if eth0/eth1 is 3com or Realtek ?

okmyx 01-10-2005 06:12 AM

if i remember correctly the number given to each adaptor is based on its position in the pci slots.

e.g. eth0 will be the network card nearest the agp slot (if your motherboard has an agp slot)

I'm guesing that an adaptor built in to the motherboard would be eth0 then the next one in the pci slots would be eth1

scuzzman 01-10-2005 06:15 AM

This command might prove helpful:
Code:

lspci

michaelk 01-10-2005 06:16 AM

Check the /etc/modules.conf file. There will be a line for each with the associated module. The module name will indicate the network card.

BTW the PCI slots are scanned first then the built in adapter. So it would be eth1 not eth0

zameer_india 01-10-2005 06:17 AM

well menstrell .... check " hwconf " file or similar file in ur OS... which is available in /etc/sysconfig or else hardware browser....

hope this helps...

zameer ------

Menestrel 01-10-2005 01:39 PM

First of all let me thank you for the answers, Linux has a really great community :)
okmyx: you were right
scuzzman: how could lspci be used ? it outputs something like
00:0b.0 Ethernet controller: 3com Corporation 3c905 100BaseTX [boomerang]
00:0c.0 Ethernet controller: Realtek Semiconductor Co,
Can this be always used ? Does this mean that I have the 3com card on the 2nd PCI slot (and the realtek card on the 3rd PCI slot) counting from the AGP Slot downwards ?

michaelk: My network cards are compiled into the kernel, so checking /etc/modules.conf didn't help

zameer_india: Which is the equivalent of hwconf for Slackware ?

bulliver 01-10-2005 02:04 PM

Why not use dmesg?
Code:

# dmesg | grep eth
eth0: RealTek RTL8139 at 0xd000, 00:40:f4:39:9d:90, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8139C'
eth1: RealTek RTL8139 at 0xd100, 00:40:f4:5d:76:10, IRQ 11
eth1:  Identified 8139 chip type 'RTL-8139C'
<snip>

Here you can see I have 2 nics, both using realtek driver...your output will show which card is using which driver if they are different...

zameer_india 01-10-2005 11:32 PM

well menstrell... bulliver gave u a clean answer ..... I never used slackware before...

i ma not haivng any idea about it... just check with this command ls h* in /etc/sysconfig ...and find which is hwconf(hardware configuration) similar file..i am sure u will get it... in this file u found information like as follows..for example ..

class: NETWORK
bus: PCI
detached: 0
device: eth0(here u can find information )
driver: 8139too
desc: "Realtek|RTL-8139/8139C/8139C+"(its ur card description)
vendorId: 10ec
deviceId: 8139
subVendorId: 11f6
subDeviceId: 8139
pciType: 1
pcibus: 3
pcidev: 2
pcifn: 0
-
class: MOUSE
bus: PSAUX
detached: 0
device: psaux
driver: msintellips/2
desc: "Generic PS/2 Wheel Mouse"
-
class: AUDIO
bus: PCI
detached: 0
driver: i810_audio
desc: "Intel Corp.|82801DB (ICH4) AC'97 Audio Controller"
vendorId: 8086
deviceId: 24c5
subVendorId: 13f6
subDeviceId: 0300
pciType: 1
pcibus: 0
pcidev: 1f
pcifn: 5
-
class: CDROM
bus: IDE
detached: 0
device: hdb
driver: ignore
desc: "SAMSUNG CD-ROM SC-152A"
-
class: VIDEO
bus: PCI
detached: 0
driver: Card:Intel 845
desc: "Intel Corp.|82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"vendorId: 8086
deviceId: 2562
subVendorId: 8086
subDeviceId: 2562
pciType: 1
pcibus: 0
pcidev: 2
pcifn: 0
-


hope this helps...

zameer-------


All times are GMT -5. The time now is 11:27 AM.