Finally! Thank you Jan. Some of the suggestions are pretty convenient, like
dmesg, which should give you the vendor details, but that would break down
if they are the same vendor. And considering this is the absolute correct
way, some of the other suggestions are a little "long way around" types.

The MAC address always exists on Ethernet cards. It should be visible from
the outside of your computer, however, some have it printed on the card
itself. If the latter is the case, I would try one of the simpler
suggestions, as applicable to your situation.

Regards,
Shaddy

-----Original Message-----
From: Jan Minar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 10:42 AM
To: Debian Users List
Subject: Re: eth0/eth1 which one?


On Thu, Feb 12, 2004 at 10:40:11AM -0800, Lars Jensen wrote:
> I have two network cards on my machine How do I tell which one is eth0
> and which one is eth1 ?

Quite a bunch of interesting replies :-)  Here is mine:

Each and every ethernet card has its own unique MAC number, this number
usually is written on the retail box and/or the card itself.  You can
get this number e.g. using ip(8) of the iproute package (The MAC is
00:04:AC:24:67:7D here):

| % ip l l eth0
| 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
|     link/ether 00:04:ac:24:67:7d brd ff:ff:ff:ff:ff:ff

You may or may not find this useful:

| nameif (8)           - name network interfaces based on MAC addresses

HTH.

-- 
Jan Minar                   "Please don't CC me, I'm subscribed." x 9

<<application/ms-tnef>>

Reply via email to