Linux端口自协商,如何更改Mellanox适配器的以太网端口速度(Linux)

配置ConnectX-3Pro适配器以实现10000Mb/s速度
本文档提供了在两台背靠背连接的服务器上,使用MLNX_OFED或最新驱动程序设置ConnectX-3Pro适配器至10000Mb/s速度的步骤。该过程适用于RHEL7.1及更高版本和Ubuntu14.04。首先,通过ethtool检查端口速度,然后使用ethtool设置速度并关闭自动协商。最后验证速度设置是否成功。
部署运行你感兴趣的模型镜像

应用介绍

使用最新的MLNX_OFED或最新发行的驱动程序(RHEL 7.1及更高版本,Ubuntu 14.04)

环境搭建实例

这是在两个背对背连接的服务器上安装的ConnectX-3 Pro适配器的示例。 该过程也可以应用于ConnectX-4(将100Gb / s更改为25Gb / s)。 适配器端口以以太网模式配置。

注意:如果端口连接到交换机而不是背靠背,则此过程将不起作用,因为交换机速度是固定的,并且不支持自动协商。

在两台服务器上运行以下命令:

1.获取端口速度配置。

# ethtool ens817

Settings for ens817:

Supported ports: [ FIBRE ]

Supported link modes: 1000baseKX/Full

10000baseKX4/Full

10000baseKR/Full

40000baseCR4/Full

40000baseSR4/Full

Supported pause frame use: Symmetric Receive-only

Supports auto-negotiation: Yes

Advertised link modes: 1000baseKX/Full

10000baseKX4/Full

10000baseKR/Full

40000baseCR4/Full

40000baseSR4/Full

Advertised pause frame use: Symmetric

Advertised auto-negotiation: Yes

Link partner advertised link modes: 40000baseCR4/Full

Link partner advertised pause frame use: No

Link partner advertised auto-negotiation: Yes

Speed: 40000Mb/s

Duplex: Full

Port: Direct Attach Copper

PHYAD: 0

Transceiver: internal

Auto-negotiation: on

Supports Wake-on: d

Wake-on: d

Current message level: 0x00000014 (20)

link ifdown

Link detected: yes

2.将速度设置为10000Mb / s。

# ethtool -s ens817 speed 10000 autoneg off

注意:您必须禁用自动协商,否则命令将失败。

3.获得速度。

# ethtool ens817

Settings for ens817:

Supported ports: [ FIBRE ]

Supported link modes: 1000baseKX/Full

10000baseKX4/Full

10000baseKR/Full

40000baseCR4/Full

40000baseSR4/Full

Supported pause frame use: Symmetric Receive-only

Supports auto-negotiation: Yes

Advertised link modes: 10000baseKX4/Full

10000baseKR/Full

Advertised pause frame use: Symmetric

Advertised auto-negotiation: Yes

Speed: 10000Mb/s

Duplex: Full

Port: Direct Attach Copper

PHYAD: 0

Transceiver: internal

Auto-negotiation: off

Supports Wake-on: d

Wake-on: d

Current message level: 0x00000014 (20)

link ifdown

Link detected: yes

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值