No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

MZ620 NIC V100R001 User Guide 04

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring IPoIB Port Bonding for the MZ620

Configuring IPoIB Port Bonding for the MZ620

The IPoIB ports on the MZ620 support bonding. The following describes how to configure port bonding in RHEL.

In Linux, configure port bonding in the OS configuration file for the MZ620. The MZ620 supports only one port bonding mode, that is, active-backup. To configure port bonding for the MZ620 in Linux, perform the following steps:

  1. Run the ifconfig -a command to locate the MZ620 IPoIB ports ibX.
  2. Go to /etc/sysconfig/network-scripts, create a file named ifcfg-ibX, and add the following content to the file:

    DEVICE=ibX

    ONBOOT=yes

    BOOTPROTO=none

    USERCTL=no

    IPV6INIT=no

    NM_CONTROLLED=no

    MASTER=bond0

    SLAVE=yes

    TYPE=InfiniBand

    PRIMARY=yes

    In the file content, MASTER specifies the bonding port name.

  3. Go to /etc/sysconfig/network-scripts, create a file named ifcfg-bond0 (bond0 in the file name is the value of MASTER), and add the following content to the file:

    DEVICE=bond0

    IPADDR=192.168.72.54

    NETMASK=255.255.255.0

    NETWORK=192.168.72.0

    BROADCAST=192.168.72.255

    ONBOOT=yes

    BOOTPROTO=none

    USERCTL=no

    NM_CONTROLLED=no

    TYPE=Bonding

    MTU=65520

    BONDING_OPTS="miimon=100 mode=1 primary=ib0 updelay=0 downdelay=0"

    BONDING_SLAVE0=ib0

    BONDING_SLAVE1=ib1

    In the file content, BONDING_OPTS specifies bonding parameter settings, mode=1 indicates the active-backup mode, and primary specifies the primary port.

    NOTE:

    If the IB card that uses IPoIB works in connected mode, the value of MTU in the configuration file cannot be greater than 65520. If the IB card that uses IPoIB works in datagram mode, the value of MTU in the configuration file cannot be greater than 2044.

    To query the IB card working mode, run the following command:

    cat /sys/class/net/ibn/mode

    (n is 0 for ib0, 1 for ib1, and so on.)

  4. Go to /etc, open the ib_ipoib.conf file (or create the file if it does not exist) in /etc/modprobe.d/, and add the following content to the end of the file:

    alias bond0 bonding

    options bond0 miimon=100 mode=1 max_bonds=2

    In the file content, mode specifies the bonding mode. The MZ620 supports only the following bonding mode:

    1: active-backup

  5. Run the following command to restart the network application:

    #/etc/init.d/network restart

    Or:

    #service network restart

Translation
Download
Updated: 2019-01-26

Document ID: EDOC1000172487

Views: 3208

Downloads: 77

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next