我正在尝试使用 Ubuntu 14.04 远程管理戴尔服务器。该服务器有一个 540-BBW Broadcom 5720 QP 1Gb 网络子卡。Broadcom文档 说它有两个 PCIe 插槽,每个插槽有两个以太网端口。
我通读了这些biosdevname文档和节目p<slot>p<ethernet port>
。ip link
显示 p4p1、p4p2、p6p1 和 p6p2。那讲得通。该卡必须使用插槽 4 和 6。
对我来说没有意义的是ip link
还显示 em1、em2、em3、em4。这些被描述为嵌入式网络接口。这些不是上述 PCIe 以太网端口的别名吗?如果它们是别名,我怎么知道哪个对应于另一个?换句话说,em1 是否对应与 p4p1 相同的硬件端口?
cameron@echo:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:2b:4c:39 brd ff:ff:ff:ff:ff:ff
3: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:2b:4c:3a brd ff:ff:ff:ff:ff:ff
4: em3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:2b:4c:3b brd ff:ff:ff:ff:ff:ff
5: em4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:2b:4c:3c brd ff:ff:ff:ff:ff:ff
6: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether a0:36:9f:12:11:e8 brd ff:ff:ff:ff:ff:ff
7: p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether a0:36:9f:12:11:ea brd ff:ff:ff:ff:ff:ff
8: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:07:43:33:51:00 brd ff:ff:ff:ff:ff:ff
9: p6p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:07:43:33:51:08 brd ff:ff:ff:ff:ff:ff
10: lxcbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 1e:c4:f7:44:50:cd brd ff:ff:ff:ff:ff:ff
11: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:f4:3d:2c:be brd ff:ff:ff:ff:ff:ff
更新 1. 如果有帮助,这里是 PCI 信息。可能是我对硬件的看法错了。很高兴知道上面的哪个链接对应于这些 PCI 设备中的哪个。
cameron@echo:~$ lspci -nn | grep Ethernet
01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
01:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
02:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
02:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
04:00.0 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.1 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.2 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.3 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.4 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5401]
82:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
82:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
答案是否定的,有三个独立的网络接口。从这些文档中,我了解到
sudo lshw -class network
可用于查看哪些逻辑名称与每个 pci 地址相关联。