Mellanox网卡OFED驱动安装

本文档介绍如何在安装了Mellanox

ConnectX®-5网卡的Linux物理/虚拟机上安装和测试Mellanox OFED 驱动。


下载Mellanox OFED

1.验证系统是否安装了Mellanox网卡。以下示例显示了安装了Mellanox HCA的系统:

# lspci -v | grep Mellanox

[if !vml]

[endif]

2.根据您的操作系统下载ISO映像到服务器共享文件夹。可以从以下网址下载:http://www.mellanox.com >

Products > Software > InfiniBand/VPI Drivers > Mellanox OFED Linux

(MLNX_OFED) > Download.

[if !vml]

[endif]

安装Mellanox OFED

1.以root用户身份登录安装计算机。

2.将下载的ISO复制到/root

3.在机器上安装ISO映像。

# mkdir /mnt/iso # mount -o loop/share/MLNX_OFED_LINUX-4.2-1.0.0.0-ubuntu16.04-x86_64.iso /mnt/iso # cd/mnt/iso

4.运行安装程序,安装完成后重启服务器。

# ./mlnxofedinstall

# /etc/init.d/openibd restart# reboot

4. 默认情况下,两个ConnectX®-5 VPI端口都初始化为InfiniBand端口。ConnectX®-5端口可以单独配置为InfiniBand或以太网端口。检查端口的类型:

[if !supportLists]1.   [endif] 

# ibv_devinfo

[if !vml]

[endif]

[if !supportLists]2.   [endif]如果您看到以下情况,请将接口端口类型更改为以太网[if !vml]

[endif]

[if !supportLineBreakNewLine]

[endif]

# mst start

# mst status

# mlxconfig -d /dev/mst/mt4121_pciconf0 s LINK_TYPE_P1=2

# reboot

# ibv_devinfo

5.运行ibdev2netdev,查看以太网设备和IB设备/端口之间的关联。

# ibdev2netdev

# ifconfig enp1f0 31.31.31.41 netmask 255.255.255.0


# vim /etc/network/interfaces

auto eno0

iface eno0 inet dhcp

auto enp1f0

iface eenp1f0 inet static

address 31.31.31.41

netmask 255.255.255.0

6.检查网络配置是否设置正确。

# ifconfig -a

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。