[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

Attachment: pgp7ROkmV9PwF.pgp
Description: PGP signature


Reply to: