我有 Mellanox MT27500 双端口卡,安装在 HP SL250s 上。服务器上运行的是 Ubuntu 14.04.5,内核为 3.13.0-24-generic。端口 1 类型和端口 2 类型均定义为 eth。我已使用相同类型的电缆将端口 1 和端口 2 连接到交换机,但似乎只有端口 2 已连接。端口 1 的 LED 熄灭。
您知道如何使用这两个端口吗?
$ sudo lspci | grep Mellanox
07:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
$ cat /sys/bus/pci/devices/0000\:07\:00.0/mlx4_port1
eth
$ cat /sys/bus/pci/devices/0000\:07\:00.0/mlx4_port2
eth
$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000014 (20)
link ifdown
Link detected: no
$ sudo ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
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: 0x00000014 (20)
link ifdown
Link detected: no
$ sudo ip link set dev eth0 up
$ sudo ip link set dev eth1 up
$ ip link show eth0
12: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 00:02:c9:fc:25:a0 brd ff:ff:ff:ff:ff:ff
$ ip link show eth1
13: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:02:c9:fc:25:a1 brd ff:ff:ff:ff:ff:ff