Which PCI Device for NIC

nomadix

Member
Jul 13, 2021
4
1
6
44
Hello,

I'm trying to figure out which if my onboard NICs corresponds to which PCI device so I can pass one through to a Truenas VM. I have four onboard NICs that each appear to have their own IOMMU group. I can't seem to figure out which NIC is which PCI device, as I'm not sure where else to look. Is there another command I can use to find this information?

Code:
root@pve-homelab:~# lspci -nn | grep Ethernet
06:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
07:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
0a:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
0b:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]

Code:
root@pve-homelab:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/21/devices/0000:06:00.0
/sys/kernel/iommu_groups/22/devices/0000:07:00.0
/sys/kernel/iommu_groups/24/devices/0000:0a:00.0
/sys/kernel/iommu_groups/25/devices/0000:0b:00.0

Code:
root@pve-homelab:~# ip addr
2: enp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:50:99:c1:81:1d brd ff:ff:ff:ff:ff:ff
3: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether d0:50:99:c1:81:1b brd ff:ff:ff:ff:ff:ff
4: enp10s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:50:99:c1:81:1e brd ff:ff:ff:ff:ff:ff
5: enp11s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:50:99:c1:81:1c brd ff:ff:ff:ff:ff:ff


Thanks!
 
Wait...is it really as simple as this? I just noticed this pattern...

enp6s0 -> 06:00.0
enp7s0 -> 07:00.0
enp10s0 -> 0a:00.0
enp11s0 -> 0b:00.0
 
  • Like
Reactions: Arnavisca

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!