LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-10-2003, 01:45 PM   #1
jes
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
Mapping between interface and nic


Hi all,

I need to know what NIC corresponds to which interface on a 2.4 kernel. Can someone tell me how to do that ?
For disks, e.g, you can ask /proc/ide/ide0/hda/model and /proc/ide/ide0/hda/capacity
but for NICs, I can't seem to find the info. The only association I could find between eth0 and the card's name, is in dmesg, where I get something like:
eth0: RealTek RTL8139 Fast Ethernet at 0xd4a6a000, 00:40:f4:44:ed:34, IRQ 10

Isn't this info available in /proc ?

Thanks in adv.
 
Old 11-10-2003, 09:00 PM   #2
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
"ifconfig eth0" note the last line of eth0 that tells you the 'Base address'.
"cat /proc/ioports" match the base address given by ifconfig to see corresponding device name.


p.s. "hdparm -i /dev/hdX" also gives you model of HD.

Last edited by xexix; 11-10-2003 at 09:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping interface on boot DanyUP Linux - Networking 1 11-05-2005 10:09 AM
NIC and Interface Device mapping info? dileepkk Linux - Networking 3 07-20-2004 05:33 AM
smoothwall red interface on wrong nic illtbagu Linux - Software 3 03-11-2004 11:16 AM
Mapping between interface and nic jes Linux - Networking 1 11-10-2003 05:05 PM
2 NIC and traffic on the wrong interface Minuteman Linux - Networking 4 09-27-2003 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration