目录
简介
mlxconfig 工具允许用户在不重新烧录固件的情况下更改某些设备配置。
配置在重启后仍然保留。
默认情况下,mlxconfig 显示将在下次启动时加载的配置。对于第五代设备,还可以查询默认配置以及当前运行的固件所使用的配置。
属于mft工具套件的一个工具,固件工具 Firmware Tools (MFT):https://blog.csdn.net/bandaoyu/article/details/142427579
语法
# mlxconfig [Options] <commands> [Parameters]
例子和参数
官网示例:Using mlxconfig - https://docs.nvidia.com/networking/display/mftv4250/using+mlxconfig
例子
查询网卡固件具体名称,固件介绍与各种软件上的详细信息
mlxconfig -d {device bus id} query
示例:mlxconfig -d 0000
:86
:00.0
q
修改网卡的工作模式(IB/ETH 参数)
mlxconfig -d {device bus id} set LINK_TYPE_P1=2 #Ethernet模式
mlxconfig -d {device bus id} set LINK_TYPE_P1=1 #IB模式
实例:mlxconfig -d /dev/mst/mt4119_pciconf0 set LINK_TYPE_P1=1 LINK_TYPE_P2=1
设置 SR-IOV 参数
mlxconfig -d {device bus id} set [SRIOV_EN=<0|1>] [NUM_OF_VFS=<NUM>]
实例:mlxconfig -d /dev/mst/mt4115_pciconf0 set SRIOV_EN=1
NUM_OF_VFS=8
设置预启动设置
有关预启动可配置参数的完整描述,请参考“预启动设置”下的支持的配置及其参数。
示例:在端口2上将VLAN ID配置为3
mlxconfig -d /dev/mst/mt4119_pciconf0 set BOOT_VLAN=3
在远程管理交换机中拆分端口
分路电缆是NVIDIA的一项独特功能,它将一个物理的四通道HDR或NDR端口分成两个双通道端口。这极大地增加了用户的灵活性,可以根据网络的具体需求,将NVIDIA交换机与双通道和四通道接口组合使用。所有系统端口都可以分成两个通道端口。分割一个端口会改变该端口的标记。
详情见官网说明:https://docs.nvidia.com/networking/display/mftv4250/using+mlxconfig
mlxconfig Raw配置文件
mlxconfig allows applying raw configuration file for a pre-set configuration. Raw configuration files are intended for advanced users. This document does not cover the generation of such files.
Set the raw configuration file:
mlxconfig -f ./tlv_file.conf -d /dev/mst/mt4115_pciconf1 set_raw
接口与模块相关
显示当前链路状态,网卡支持速率(IB或ETH),线缆支持速率,以及当前连接opcode与故障提示
mlxlink -d {device bus id}
显示当前PCIE链路信息
mlxlink -d <device_id> --port_type pCIE -e
显示当前模块详细信息
mlxlink -d {device bus id} -m
参考:https://blog.csdn.net/aosudh/article/details/134302085
https://docs.nvidia.com/networking/display/mftv4250/using+mlxconfig