切换模式
执行 ibstat,返回的 Link layer 信息,就是网卡的工作模式
> ibstat
CA 'mlx4_0'
CA type: MT4103
Number of ports: 2
Firmware version: 2.42.5700
Hardware version: 0
Node GUID: 0x98f2b3ffffd5c3c0
System image GUID: 0x98f2b3ffffd5c3c3
Port 1:
State: Down
Physical state: Disabled
Rate: 40
Base lid: 0
LMC: 0
SM lid: 0
Capability mask: 0x00010000
Port GUID: 0x9af2b3fffed5c3c1
Link layer: Ethernet
Port 2:
State: Down
Physical state: Disabled
Rate: 40
Base lid: 0
LMC: 0
SM lid: 0
Capability mask: 0x00010000
Port GUID: 0x9af2b3fffed5c3c2
Link layer: Ethernet
切换工作模式
需要安装 mst 工具:https://network.nvidia.com/products/adapter-software/firmware-tools/