[root@rac1 ~]# ip addr show ----------->>>>显示ip地址
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
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 0c:c4:7a:ac:3c:c8 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.101/24 brd 192.168.100.255 scope global enp3s0f0
valid_lft forever preferred_lft forever
inet 192.168.100.107/24 brd 192.168.100.255 scope global secondary enp3s0f0:1
valid_lft forever preferred_lft forever
inet6 fe80::ec4:7aff:feac:3cc8/64 scope link
valid_lft forever preferred_lft forever
3: enp3s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 0c:c4:7a:ac:3c:c9 brd ff:ff:ff:ff:ff:ff
4: ib0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2044 qdisc pfifo_fast state UP qlen 256
link/infiniband 80:00:00:48:fe:80:00:00:00:00:00:00:7c:fe:90:03:00:91:7e:d1 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
inet 10.10.10.101/24 brd 10.10.10.255 scope global ib0
valid_lft forever preferred_lft forever
inet6 fe80::7efe:9003:91:7ed1/64 scope link
valid_lft forever preferred_lft forever
5: ib1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2044 qdisc pfifo_fast state UP qlen 256
link/infiniband 80:00:00:49:fe:80:00:00:00:00:00:00:7c:fe:90:03:00:91:7e:d2 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
inet 1.1.1.101/24 brd 1.1.1.255 scope global ib1
valid_lft forever preferred_lft forever
inet 169.254.85.174/16 brd 169.254.255.255 scope global ib1:1
valid_lft forever preferred_lft forever
inet6 fe80::7efe:9003:91:7ed2/64 scope link
valid_lft forever preferred_lft forever
[root@rac1 ~]# ethtool ib0 ---------------->>用ethtool显示HCA卡的结果
Settings for ib0:
No data available
[root@rac1 ~]# ethtool ib1 ---------------->>用ethtool显示HCA卡的结果
Settings for ib1:
No data available
[root@rac1 ~]# ethtool enp3s0f1---------------->>千兆以太网卡
Settings for enp3s0f1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: off (auto)
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
[root@rac1 ~]# ethtool enp3s0f0 ---------------->>千兆以太网卡
Settings for enp3s0f0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
[root@rac1 ~]#
应该用ibstatus命令来显示HCA的速度,如下所示:
[root@rac1 ~]# ibstatus
Infiniband device 'mlx4_0' port 1 status:
default gid: fe80:0000:0000:0000:7cfe:9003:0091:7ed1
base lid: 0x1
sm lid: 0x7
state: 4: ACTIVE
phys state: 5: LinkUp
rate: 56 Gb/sec (4X FDR) ---------->>>>注意此处
link_layer: InfiniBand
Infiniband device 'mlx4_0' port 2 status:
default gid: fe80:0000:0000:0000:7cfe:9003:0091:7ed2
base lid: 0x8
sm lid: 0x7
state: 4: ACTIVE
phys state: 5: LinkUp
rate: 56 Gb/sec (4X FDR) ---------->>>>注意此处
link_layer: InfiniBand
貌似ibstat命令也行:
[root@rac1 ~]# ibstat
CA 'mlx4_0'
CA type: MT4099
Number of ports: 2
Firmware version: 2.34.5000
Hardware version: 0
Node GUID: 0x7cfe900300917ed0
System image GUID: 0x7cfe900300917ed3
Port 1:
State: Active
Physical state: LinkUp
Rate: 56 ---------->>>>注意此处
Base lid: 1
LMC: 0
SM lid: 7
Capability mask: 0x0259486a
Port GUID: 0x7cfe900300917ed1
Link layer: InfiniBand
Port 2:
State: Active
Physical state: LinkUp
Rate: 56 ---------->>>>注意此处
Base lid: 8
LMC: 0
SM lid: 7
Capability mask: 0x02594868
Port GUID: 0x7cfe900300917ed2
Link layer: InfiniBand
[root@rac1 ~]#
参考文章:
Bonding over Infiniband : Link Speed of 100 Mbps is reported by bonding driver (文档 ID 1506070.1)