LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2004, 03:50 AM   #1
dileepkk
Member
 
Registered: Jul 2004
Posts: 42

Rep: Reputation: 15
How to specify which eth# maps to to which nic.


Hello,

Iam having 3 NIC cards in 3 slots in my system. i would like to know eth# that is assigned to each card.

Is there is any system call /configuration file for getting the same or any other means?.


Thanks & Regards

Dileep
 
Old 07-27-2004, 04:17 AM   #2
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
the output of

$ ifconfig

will show all the NIC's on the system and their associated hardware address, which is unique for every NIC. That HW address should be visible on the card and / or retrievable via utility programs.
 
Old 07-27-2004, 04:30 AM   #3
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
normally if module for a specific card is loaded before others.
that interface becomes eth0 and vice versa.

check through

dmesg |eth
 
Old 07-27-2004, 04:30 AM   #4
dileepkk
Member
 
Registered: Jul 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hi

Thank U for your information
but, i would like to know which NIC is given which eth#;
even if we go for 'ifconfig' it gives H/W address.
But how to resolve that this is the address of this particular NIC card if both carda are from same manufacturer.

Waiting for ur reply

regards

Dileep
 
Old 07-27-2004, 04:36 AM   #5
dileepkk
Member
 
Registered: Jul 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hi,

Even with 'dmesg | grep eth' we will get the driver name associated with eth#.
but, when we are having NICs from same manfacturer its difficult to trace the
information..

Waiting for ur Reply

Regards,
Dileep
 
Old 07-27-2004, 07:01 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,074

Rep: Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371
AFAIK the NICs will be assigned as scanned on the bus starting with PCI slot 1. The first NIC found will be eth0, the next eth1 etc. The onboard NIC, if any will be last.

If I remember slot 1 is the one closest to the AGP slot. Check your motherboard manual.

You can test each interface by turning the others off. i.e.
ifdown eth0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HOWDOI implicitily configure a USB NIC to be eth(whatever) zareous Linux - Hardware 2 07-20-2005 01:15 AM
Bind ETH devices to specific NIC/MAC not_an_expert Slackware 8 10-13-2004 11:00 AM
mandrake 10.0 - linksys eth nic detected - wont connect 2 net keyshawn Mandriva 12 08-15-2004 08:25 PM
bzflag maps e1000 Linux - Games 1 11-29-2003 02:35 PM
E100: eth NIC link is down. bossie Linux - General 1 10-18-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration