官方网址
Ethernet drivers and acceleration software | NVIDIARelease notes for NVIDIA Mellanox Ethernet drivers, acceleration software and tools.https://developer.nvidia.com/networking/ethernet-software
选择对应的驱动下载
第二个包含了RDMA,第一个,第二个都行
网卡是x-3的,选对应的驱动
#查看网卡类型lspci | grep Mellanox
tar zxf mlnx-en-4.9-4.1.7.0-ubuntu20.04-x86_64.tgzcd mlnx-en-4.9-4.1.7.0-ubuntu20.04-x86_64./mlnxofedinstall --without-dkms --add-kernel-support --kernel 5.4.0-91-generic --without-fw-update --force
安装后启动
/etc/init.d/openibd restart
查询安装结果
ifconfig -a
其他命令
#烧录固件mstflint -d 26:00.0 -i /root/driver/fw-ConnectX3-rel-2_42_5000-649283-B21_Cx-Dx-CLP-8025-FlexBoot-3.4.752.bin burnmst startmst status#查看网卡信息mlxconfig -d /dev/mst/mt4099_pciconf0 q#查看网卡信息flint -d /dev/mst/mt4099_pciconf0 query full#设置为ether模式mlxconfig -d /dev/mst/mt4099_pciconf0 set link_TYPE_P1=2 link_TYPE_P2=2
参考
https://www.reddit.com/r/homelab/comments/9wb4hs/mellanox_connectx3_trying_to_change_from/https://www.reddit.com/r/homelab/comments/9wb4hs/mellanox_connectx3_trying_to_change_from/
Mellanox Interconnect Communityhttps://community.mellanox.com/s/question/0D51T00006RVuXj/mlx4core-missing-uar-abortingCentOS配置双网卡(Mellanox和传统以太网卡) | 一期一会