IB_Switch交換機SB7890配置及Band網路卡
IB_Switch交換機SB7890配置及Band網路卡
1.建立軟體存放目錄
[root@localhost ~]# mkdir -p /soft
2.上傳OS映象,本案例以RHEL7.7為例
mount -o loop /soft/rhel-server-7.7-x86_64-dvd.iso /mnt/
3.配置yum源
[root@localhost ~]# vi /etc/yum.conf
[rheldvd]
name=rhel7.7
baseurl=file:///mnt
enabled=1
gpgcheck=0
[main]
………………………………
4.IB交接機驅動下載或上傳已有驅動包至soft目錄
驅動包:
MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64.tgz
5.解壓驅動並安裝
cd /soft
tar -xvzf MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64.tgz
6.安裝驅動
yum install pciutils perl gtk2 atk cairo gcc-gfortran tcsh openssl-libs libusbx lsof tcl fuse-libs tk -y
cd /soft/MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64
./mlnxofedinstall
7.Load HCA驅動
/etc/init.d/openibd restart
8.啟動子網管理並設定開機啟動
/etc/init.d/opensmd start ——對於當前SB7890交換不自子網管理,因此只能在OS端開啟子網管理服務,若多個節點建議開1——2個節點即可,不建議全部開啟;
/sbin/chkconfig opensmd on
/sbin/chkconfig opensmd --list
9.重啟OS
reboot
10.檢視IB是否正常識別
ifconfig -a
正常識別如下:
ib0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband 00:00:10:87:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand)
RX packets 2 bytes 232 (232.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ib1: flags=4099<UP,BROADCAST,MULTICAST> mtu 4092
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband 00:00:18:87:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
11.Band IB配置網路
01. Create bond0 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-bond0
Note: the only meaningful bonding policy in IPoIB is High-Availability (bonding mode number 1,
or "active-backup").
To learn more about the Linux bonding options click here .
Here is an example:
DEVICE=bond0
IPADDR=11.11.11.1
NETWORK=11.11.11.0
NETMASK=255.255.255.0
BROADCAST=11.11.11.255
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=yes
BONDING_OPTS="mode=active-backup primary=ib0 miimon=100 updelay=100 downdelay=100"
MTU=2044
02.Update/Create ib0 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-ib0
Here is an example:
DEVICE=ib0
TYPE=InfiniBand
NM_CONTROLLED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PRIMARY=yes
03.Update/Create ib1 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-ib1
Here is an example:
DEVICE=ib1
TYPE=InfiniBand
NM_CONTROLLED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PRIMARY=no
04.Create/Update the bond.conf file.
touch /etc/modprobe.d/bond.conf
Configure this file as follows:
alias bond0 bonding # Adapter bonding driver
options bond0 max_bonds=2 miimon=100 mode=1 # 100ms fail-over timer. Mode 1 = Active/Backup
05. Restart the network services and the driver.
# /etc/init.d/network restart
# /etc/init.d/openibd restart
06.Verify the bond configuration:
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup) (fail_over_mac active)
Primary Slave: ib0 (primary_reselect always)
Currently Active Slave: ib0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 100
Down Delay (ms): 100
Slave Interface: ib1
MII Status: up
Speed: 40000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:04:03:00:fe:80
Slave queue ID: 0
Slave Interface: ib0
MII Status: up
Speed: 40000 Mbps
Duplex: full
Link Failure Count: 254
Permanent HW addr: a0:04:02:20:fe:80
Slave queue ID: 0
07.Fail Over MAC
Since rdma_cm does not support MAC enslavement, fail_over_mac=1 (or active) should be added
to the bond interface configuration in case of Ethernet interface.
The value active(1) for fail_over_mac policy indicates that the MAC address of the bond should
always be the MAC address of the currently active slave. The MAC address of the slaves is not
changed; instead, the MAC address of the bond changes during a failover.
Changing to fail_over_mac=1 solves this problem as if this not active, the bond MAC jumps from
one interface to another according to the active interface.
Add the bonding options (BONDING_OPT)? "fail_over_mac=1" to /etc/sysconfig/network- scripts/ifcfg-bond0. Note: the default of this parameter is disabled (0).
Here is an example:
DEVICE=bond0
IPADDR=11.11.11.1
NETWORK=11.11.11.0
NETMASK=255.255.255.0
BROADCAST=11.11.11.255
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=yes
BONDING_OPTS="mode=active-backup primary=ib0 miimon=100 updelay=100 downdelay=100 fail_over_mac=1"
MTU=2044
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31520497/viewspace-2724810/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 網路卡繫結與交換機埠聚合配置(CentOS6.2)CentOS
- 網路(1)——交換機配置
- 網咖交換機配置教程
- vmware克隆機網路卡配置
- 雲主機新增網路卡配置多網路卡策略路由路由
- 虛擬機器網路卡配置虛擬機
- 網路卡配置及對應名稱
- Oracle Linux 7.1 增加網路卡及IP配置OracleLinux
- VMwareNAT網路卡配置
- 計算機網路之五:基本器件(網路卡,集線器,交換機,路由器)計算機網路路由器
- 華為交換機VLAN配置
- Linux 網路卡配置Linux
- 配置雙網路卡BOND
- 雙網路卡BOND配置
- 網路交換機常見故障及解決方法
- 華為交換機埠映象配置
- 交換機配置命令說明
- 華為交換機配置acl策略
- 分享交換機 VLAN 配置基礎及例項探討(轉)
- 華為交換機DHCP中繼怎麼配置?華為交換機的中繼配置方法中繼
- 交換機及路由基礎路由
- 交換機基礎及stp
- 計算機網路-3-5-乙太網MAC層及交換機計算機網路Mac
- Linux網路卡的配置檔案詳解及應用Linux
- Cisco交換機配置新手篇-埠配置(一)
- kali網路卡配置檔案
- (轉)Ubuntu網路卡基本配置Ubuntu
- 雙網路卡bonding配置
- 多網路卡路由出口配置路由
- 交換機M:N埠映象配置
- 交換機&路由器基本配置路由器
- 華為交換機M-LAG配置
- 思科交換機配置命令歸納
- winform C# 獲取區分物理網路卡、虛擬網路卡及無線網路卡ORMC#
- 電腦網路卡有什麼型別?計算機網路卡主要分類及功能介紹型別計算機網路
- 工業網路交換機電源故障及應對策略
- Linux 7 配置網路卡(nmcli)Linux
- OpenHarmony雙網路卡配置例項