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 Commands

Using Commands

This section uses CentOS 7.4 as an example to describe how to configure bonding using commands.

This method takes effect temporarily. After the network service is reset in the OS or the OS is restarted, the configuration is lost.

  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 commands in sequence to create bond0 (ports enp6s0 and enp7s0 are examples):

    modprobe -first-time bonding

    echo X > /sys/class/net/bond0/bonding/mode #The X value can be 1, 2, or 4.

    • In the preceding command, X specifies the bonding mode.
    • 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 mode is set to 4, you need to configure lacp_rate.

      echo 1 > /sys/class/net/bond0/bonding/lacp_rate

    ifconfig bond0 up

    ifenslave bond0 enp6s0 enp7s0

    echo 100 > /sys/class/net/bond0/bonding/miimon #miimon: interval for checking the network, in milliseconds

  1. Run the following command to create an IP address of bond0:

    ifconfig bond0 IP #IP specifies the IP address of bond0.

Translation
Download
Updated: 2019-11-19

Document ID: EDOC1100063073

Views: 11801

Downloads: 61

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next