我有两个 HP NC523SFP 10Gb 双端口(一个在 HP DL380e Gen8 上,另一个在 Dell PowerEdge 2950 上),两个系统都安装了 Centos 7,卡已检测到并运行相同的固件。我已使用 10Gtek SFP-H10GB-CU2M 电缆直接连接服务器,根据在线找到的其他一些帖子,该电缆看起来兼容(我也尝试使用 10Gtek SFP-H10GB-CU2M 电缆),但问题是两个卡之间检测不到链路。在这些卡的另外两个插槽上,我有光纤适配器 10Gtek AXS85-192-M3-Cisco2,它们通过 LC-SC 光纤电缆连接到 Cisco 交换机,但都没有检测到链路。以下是两个服务器的 ethtool 输出:
DL380e Gen8(似乎光纤和铜收发器都可以被识别)
[root@hpe ~]# ifconfig ens4f0
ens4f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 8c:dc:d4:91:5e:50 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 90
[root@hpe ~]# ifconfig ens4f1
ens4f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 8c:dc:d4:91:5e:54 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 91
[root@hpe ~]# ethtool ens4f0
Settings for ens4f0:
Supported ports: [ TP FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000000 (0)
Link detected: no
[root@hpe ~]# ethtool ens4f1
Settings for ens4f1:
Supported ports: [ TP FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: FIBRE
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000000 (0)
Link detected: no
戴尔 PowerEdge 2950
[root@dell ~]# ifconfig enp8s0f0
enp8s0f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c4:34:6b:cc:cf:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 31
[root@dell ~]# ifconfig enp8s0f1
enp8s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c4:34:6b:cc:cf:64 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 32
[root@dell ~]# ethtool enp8s0f0
Settings for enp8s0f0:
Supported ports: [ TP FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000000 (0)
Link detected: no
[root@dell ~]# ethtool enp8s0f1
Settings for enp8s0f1:
Supported ports: [ TP FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: FIBRE
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000000 (0)
Link detected: no
我应该检查什么?我尝试强制提高链接速度,但收到“操作不允许”的提示,我注意到在戴尔电脑上,铜缆被检测为“端口:其他”
答案1
问题解决了,是戴尔 2950 上的端口 enp8s0f0 坏了。我已移动 enp8s0f1 上的 DAC 电缆,现在有了链接。确定这一点的测试是:
- 将 DAC 电缆绕在 HP 上 -> 连接正常
- 将 DAC 电缆绕在戴尔 -> Link KO 上