PVE (Proxmox VE) Multi-port Identification
This is a post about network card (multiple ports) identification in the
PVEsystem. Through the
ethtoolcommand, you can easily find the corresponding location of each network port.
Intel EXPI9402PTBLK 82571GB Network Adapteras an example
apt update && apt install ethtool -y
ethtoolcan be used to view network device driver parameters and hardware configuration.
Check the device name of the network card in the
ip -c a
enp1s0f1are the two network ports of the network card, corresponding to
ethtoolto identify the device name and corresponding network port location in the
Enter the following command to find the physical network port (network port with indicator) of the first device name
ethtool --identify enp1s0f0
Enter the following command to find the physical network port (network port with indicator) of the second device name
ethtool --identify enp1s0f1
If the network card does not support the
ethtool --identifycommand (indicator) for identification, the following method can be used.
Enable the two network ports
Insert the network cable (
Cat5e) into one of the network ports of the network card (
Intel EXPI9402PTBLK 82571GB) and the other end of the network cable into another powered network port, such as a switch, router, computer, etc.
At this time, enter the command to view the network port status
As shown in the figure, Link detected: yes indicates that the found network port is
On the contrary, it shows Link detected: no, indicating the network port
enp1s0f1 without a cable.
When directly passing a specified network port,
ethtoolcan easily find the location of the network port in the
View all physical network cards and locations of the server
lspci | grep -in 'eth'
View the location of the first network port
ethtool -i enp1s0f0
View the location of the second network port
ethtool -i enp1s0f1
As shown in the figure, the location of the first network port
01:00.0, and the location of the second network port
Finally, pass through the specified network card or network port in the virtual machine.
ethtoolto identify multiple network ports of a network card is really convenient.
Finally, a corresponding table can be made to facilitate future lookups.
|Physical Network Card
|PVE Device Name
|Device Location (for passthrough)