relationship between eth and pci device
C M Reinehr
cmr at amsent.com
Mon Oct 13 11:30:53 PDT 2008
Vu,
On Mon 13 October 2008 12:34, vu pham wrote:
> I am looking for which PCI device an ethernet device is. Starting with
> lspic, I have
>
> 04:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
> Ethernet Controller (Copper) (rev 01)
> 04:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
> Ethernet Controller (Copper) (rev 01)
> 0b:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
> 0b:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
>
>
> Then I compare with dmesg,
> 0000:02:02.0: eth0: (PCI Express:2.5GB/s:Width x4) 00:1e:68:2f:59:4a
> 0000:02:02.0: eth0: Intel(R) PRO/1000 Network Connection
> 0000:02:02.0: eth0: MAC: 3, PHY: 5, PBA No: ffffff-0ff
> 0000:02:02.0: eth0: Link is Up 1000 Mbps Full Duplex, Flow Control: RX
>
> Go back to lspci and find out 02:02 is the
> 02:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
> Downstream Port E3 (rev 01)
>
>
> How do you find it ?
>
> Thanks,
>
> Vu
One way which works for me is to look in /sys/bus/pci/devices/ and cd to the
bus address from dmesg. You should find a file in this node such as net:eth0,
net:eth1, etc. With this information 'ifconfig -a' will allow you to identify
the individual interface by the MAC id.
HTH
cmr
--
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC
More information about the Linux-users
mailing list