检测硬件RDMA卡是否存在

1、检查网卡是否安装成功:
# lspci | grep Mellanox
83:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
83:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]

2、查看系统网卡:
# ifconfig 
eth0      Link encap:Ethernet  HWaddr 18:66:DA:98:A3:02  
          inet addr:10.20.15.23  Bcast:10.20.15.127  Mask:255.255.255.128
......
eth3      Link encap:Ethernet  HWaddr 18:66:DA:98:A3:08  
......
lo        Link encap:Local Loopback  
......
tunl0     Link encap:IPIP Tunnel  HWaddr   
......

3、查看系统里所有的网卡和工作状态:
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 18:66:da:98:a3:02 brd ff:ff:ff:ff:ff:ff
    inet 10.20.15.23/25 brd 10.20.15.127 scope global eth0
    inet6 fe80::1a66:daff:fe98:a302/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 18:66:da:98:a3:04 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 18:66:da:98:a3:06 brd ff:ff:ff:ff:ff:ff
5: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 18:66:da:98:a3:08 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ec:0d:9a:d2:fd:68 brd ff:ff:ff:ff:ff:ff
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ec:0d:9a:d2:fd:69 brd ff:ff:ff:ff:ff:ff
8: tunl0: <NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN 
    link/ipip 0.0.0.0 brd 0.0.0.0
当驱动没有安装成功的时候,检测RDMA网卡是否存在
lspci |grep mon

 

posted @ 2019-01-18 10:28  开始认识  阅读(3315)  评论(0编辑  收藏  举报