Which Nic is in which PCI slot ?

Roger Grosswiler roger at gwch.net
Thu Jul 21 06:12:15 UTC 2005


> On Wed, 2005-07-20 at 23:06, William Hooper wrote:
>
>> > Does anyone know of a single command I can use to list which nic is in
>> > which slot in multi-nic machines ?
>> >
>> > lspci and cat /proc/pci list the type of card (and in the /proc/pci
>> case,
>> > the interrupt) and ifconfig lists the nics and their other details,
>> > incluing interrupt, so I can figure it out.
>>
>> ifconfig also lists MAC address.  You might have to put a visible label
>> on
>> the NIC with the MAC, though, because most any more seem to be labeled
>> on
>> the PCB.
>
> If you are at the machine you can always plug one nic at a time into a
> hub/switch and run mii-tool to tell you which device link is up.
>
you can also try dmidecode, this should show you the ports.

Roger




More information about the fedora-list mailing list