Step 3
Run the following command to access the
/etc/sysconfig/network-scripts
directory:
cd /etc/sysconfig/network-scripts
Step 4
Run the following command to create and open the
ifcfg-fsb_bond
configuration file:
vi ifcfg-fsb_bond
Press
i
to add the following information to the file:
DEVICE=fsb_bond
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
TYPE=Bonding
MTU=1500
BONDING_OPTS='mode=1 miimon=100 updelay=0 downdelay=0 num_grat_arp=50'
NM_CONTROLLED=no
IPADDR=
NETMASK=
NETWORK=
NOTE
l
Set the bonding mode and network check time in the
BONDING_OPTS
configuration item.
l
If
mode
is set to
1
, the switch is configured properly. If
mode
is set to
2
, the switch must be
configured with a trunk. If
mode
is set to
4
, the trunk of the switch must be configured to the static
LACP mode. It is recommended that the rate be set to the same value as that of bonding.
l
If the bonding mode is set to
4
in the
BONDING_OPTS
item, you are advised to set lacp_rate.
After the modification is complete, press
Esc
to exit editing mode and enter
:wq!
to save the
modification and exit.
Step 5
This step uses ports
enp8s0
and
enp9s0
as an example to describe how to bind fsb_bond. In
the
/etc/sysconfig/network-scripts
directory, modify
ifcfg-enp8s0
and
ifcfg-enp9s0
and add
the
MASTER=fsb_bond
option.
For example, to edit the
ifcfg-enp8s0
file, run the following command:
vi ifcfg-enp8s0
Press
i
to add the following information to the file:
DEVICE=enp8s0
BOOTPROTO=none
ONBOOT=yes
MASTER=fsb_bond
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no
After the modification is complete, press
Esc
to exit editing mode and enter
:wq!
to save the
modification and exit.
Step 6
Run the following command to restart the network:
service network restart
----End
Huawei IN200 NIC
User Guide
5 Configuring RoCE Bonding
Issue 06 (2019-07-27)
Copyright © Huawei Technologies Co., Ltd.
46