2006-11-7, 16:44(-08),
(E-Mail Removed):
> Hello,
>
> How can I go about determining which card is assigned which name if I
> have more than one?
>
> At the moment, I have two NICs in a PC. Running ifconfig reveals the
> interface names along with the MAC addresses. Running lspci reveals the
> hardware information. But I don't know which NIC model got assigned
> what interface name.
[...]
ethtool -i eth<n>
tells you the name of the driver (in case the two NICs are
different makes).
$ sudo ethtool -i eth0
driver: via-rhine
version: 1.4.2
firmware-version:
bus-info: 0000:00:12.0
Also:
-p --identify
initiates adapter-specific action intended to enable an operator
to easily identify the adapter by sight. Typically this
involves blinking one or more LEDs on the specific ethernet
port.
If you don't have ethtool,
ls -l /sys/class/net/eth0/device
(in 2.6 kernels)
gives you something that you can feed lspci -s with:
$ ls -l /sys/class/net/eth0/device
lrwxrwxrwx 1 root root 0 Nov 8 08:26 /sys/class/net/eth0/device -> ../../../devices/pci0000:00/0000:00:12.0/
$ lspci -s 0000:00:12.0
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
The MAC address will tell you the Vendor:
$ ip link show eth0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:11:5b:41:fc:63 brd ff:ff:ff:ff:ff:ff
$ grep -i 00115b /usr/share/nmap/nmap-mac-prefixes
00115B Elitegroup Computer System Co. (ECS)
(not sure about the relationship between ECS and VIA though).
--
Stéphane