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

Huawei IN200 NIC User Guide 07

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).
Using a Configuration File

Using a Configuration File

This section uses CentOS 7.4 as an example to describe how to configure bonding using a configuration file.

  1. Log in to the server OS as the root user, right-click the OS desktop, and choose Open Terminal from the shortcut menu.
  2. Run the following command to find the port in the up state:

    ibdev2netdev

  3. Run the following command to access the /etc/sysconfig/network-scripts directory:

    cd /etc/sysconfig/network-scripts

  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=
    • Set the bonding mode and network check time in the BONDING_OPTS configuration item.
    • 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.
    • 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.

  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.

  6. Run the following command to restart the network:

    service network restart

Translation
Download
Updated: 2019-11-19

Document ID: EDOC1100063073

Views: 9177

Downloads: 51

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