admin管理员组文章数量:1130349
ConnectX®-5网卡的Linux物理/虚拟机上安装和测试Mellanox OFED 驱动。
下载Mellanox OFED
1.验证系统是否安装了Mellanox网卡。以下示例显示了安装了Mellanox HCA的系统:
[if !vml]
[endif]
2.根据您的操作系统下载ISO映像到服务器共享文件夹。可以从以下网址下载:http://www.mellanox>
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
ConnectX®-5网卡的Linux物理/虚拟机上安装和测试Mellanox OFED 驱动。
下载Mellanox OFED
1.验证系统是否安装了Mellanox网卡。以下示例显示了安装了Mellanox HCA的系统:
[if !vml]
[endif]
2.根据您的操作系统下载ISO映像到服务器共享文件夹。可以从以下网址下载:http://www.mellanox>
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
版权声明:本文标题:mellanox 网卡驱动,Mellanox网卡OFED驱动安装 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754676782a2715241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论