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


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


Huawei Server Maintenance Manual 09

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).
Bonding NICs on the Red Hat OS

Bonding NICs on the Red Hat OS

Software and Hardware Preparations

  • RHELS 5.3 installation CD-ROM
  • Network interface card (NIC) testing tool Netperf
  • One T6000 blade and two client hosts
  • One S5328C switch
  • One DVD-ROM drive and several network cables


The following uses the RHELS 5.3 operating system (OS) as an example.

  1. Install the driver.

    The bonding driver exists in the OS as a module, but it is not automatically installed. Run modprobe bonding to install the driver.


    If bonding needs to be enabled upon system startup, add one row to the /etc/modprobe.conf:

    alias bondX bonding

    X indicates the serial number of a bonding device. To create ifcfg-bond0, add the following:

    alias bond0 bonding

  2. Create a configuration file for a network port.

    1. On the command-line interface (CLI), run system-config-network to enable Dynamic Host Configuration Protocol (DHCP) startup for network ports eth0 and eth1, and then save the configuration and exit.
    2. Run cd to switch to the /etc/sysconfig/network-scripts directory and query configuration file ifcfg-eth0 or ifcfg-eth1 of port eth0 or eth1, as shown in Figure 4-7.
      Figure 4-7 Network port configuration file

    3. Modify parameters.

      Modify the following parameter:


      Add the following parameters:



      Save the configuration and exit. Figure 4-8 shows the new settings.

      Figure 4-8 New settings

      Modify the configuration file ifcfg-eth1 of network port eth1 in the same way, as shown in Figure 4-9.

      Figure 4-9 New settings

    4. Create the bond0 configuration file.

      Create the ifcfg-bond0 file in the /etc/sysconfig/network-scripts directory, as shown in Figure 4-10.

      Figure 4-10 ifcfg-bond0 file

      Set BROADCAST, IPADDR, NETMASK, and NETWORK according to actual situations.


      Early-version Red Hat OSs, such as REHLS 4.7, do not support BONDING_OPTS. In this case, add the following commands to the tail of the /etc/modprobe.conf file:

      alias bond0 bonding

      options bond0 mode=0 miimon=100

      If the bonding configuration file supports BONDING_OPTS, you do not need to modify the /etc/modprobe.conf file.

      The working mode of bonded network ports is set to load balancing: mode = 2 (balance-xor). To use the redundancy mode, set mode to 1 (active-backup). For details about the working modes, see Reference Information.

    5. Run network restart to make the configuration take effect.
      # /etc/init.d/network restart

Verifying the Bonding

  1. Run ifconfig on the command-line interface (CLI).

    In the command output, the Media Access Control (MAC) address of bond0 is the same as those of network ports eth0 and eth1, and bond0 and network ports eth0 and eth1 share IP address, as shown in Figure 4-11.

    Figure 4-11 Querying the MAC address and IP address

  2. Run cat /proc/net/bonding/bond0 to query the bond0 status, as shown in Figure 4-12.

    Figure 4-12 Querying bond0 status


    To delete network port bonding, uninstall the bonding driver by running the rmmod drivername command, delete the ifcfg-bond0 bonding configuration file and configuration files of network ports eth0 and eth1, and restart the network.

Updated: 2019-02-25

Document ID: EDOC1000041338

Views: 81544

Downloads: 3876

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