Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-27-2004, 03:50 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 42
Rep:
|
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
|
|
|
07-27-2004, 04:17 AM
|
#2
|
Member
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127
Rep:
|
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.
|
|
|
07-27-2004, 04:30 AM
|
#3
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Rep:
|
normally if module for a specific card is loaded before others.
that interface becomes eth0 and vice versa.
check through
dmesg |eth
|
|
|
07-27-2004, 04:30 AM
|
#4
|
Member
Registered: Jul 2004
Posts: 42
Original Poster
Rep:
|
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
|
|
|
07-27-2004, 04:36 AM
|
#5
|
Member
Registered: Jul 2004
Posts: 42
Original Poster
Rep:
|
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
|
|
|
07-27-2004, 07:01 AM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,120
|
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
|
|
|
All times are GMT -5. The time now is 01:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|