I am working on a server that has multiple dual port NIC cards. Each port has a different address on the PCI bus.
I'm using nping
to send packets through network interfaces given their logical names (such as eth0
), but I want to be able to send packets through an interface given its PCI address (such as 0000:00:07.0
). How can I achieve it ?
sudo lshw -C network gives:
*-network:0 UNCLAIMED
description: Ethernet controller
product: 82599ES 10-Gigabit SFI/SFP+ Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress vpd bus_master cap_list
configuration: latency=0
resources: memory:dfd20000-dfd3ffff ioport:8020(size=32) memory:dfd44000-dfd47fff memory:def00000-deffffff memory:dee00000-deefffff