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 ?
|
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 |
This command might prove helpful:
Code:
lspci |
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 |
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 ------ |
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 ? |
Why not use dmesg?
Code:
# dmesg | grep eth |
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. |