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.


KunLun Mission Critical Server Oracle Database Oracle 12c R1 (RAC) Best Practice 02

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 Network Port Bonding

Configuring Network Port Bonding


  • If the OS is RHEL 6, perform the following steps to configure network port bonding (the following uses bond_priv as an example):
    Log in to each node.
    1. Run the following commands to generate a bond file:
      [root@dbn01 ~]# cd /etc/sysconfig/network-scripts/
      [root@dbn01 network-scripts]# touch ifcfg-bond_priv
      [root@dbn01 network-scripts]# vim ifcfg-bond_priv
      DEVICE=bond_priv #Sets a name for the bond port.
      IPADDR= #Sets the bond port IP address.
      NETMASK= #Sets the subnet mask.
      ONBOOT=yes #Automatically enables the bond port at system startup.
      BONDING_OPTS= "miimon=100 mode=1" #Sets bonding parameters.
    2. Configure parameters such as MASTER and SLAVE in the configuration files of the ports to be added to the bond port. The following uses eth0 as an example. The settings take effect after the network service is restarted.
      [root@dbn01 ~]# cd /etc/sysconfig/network-scripts/
      [root@dbn01 network-scripts]# vim ifcfg-eth0
      ONBOOT=yes #Automatically enables the port at system startup.
      NM_CONTROLLED=no #Disables NetworkManager.
      BOOTPROTO=none #Disables DHCP.
      MASTER=bond_priv #Specifies the name of the master bond port.
      SLAVE=yes #Sets the port as a slave port.
    3. Restart the network service for the settings to take effect.

      For details, see the description on the official Red Hat website:

  • If the OS is RHEL 7, perform the following steps to configure network port bonding. The following uses bond_priv as an example.
    Log in to each node.
    1. Create the bond_priv port.
      nmcli con add type bond ifname bond_priv mode balance-xor
    2. Set an IP address for bond_priv.
      nmcli connection modify bond-bond_priv ipv4.addresses
      nmcli connection modify bond-bond_priv ipv4.method manual
    3. Add slave ports.
      The following uses ens4f0 and ens6f0 as an example.
      nmcli con add type bond-slave ifname ens4f0 master bond-bond_priv
      nmcli con add type bond-slave ifname ens6f0 master bond-bond_priv
    4. View the configuration information.
      nmcli connection show

      If the following information is displayed, the configuration is successful.

      bond-slave-ens4f0 1c88d785-b280-4999-96d5-237d4e761e43 802-3-ethernet ens4f0
      bond-slave-ens6f0 e6845549-b897-4cb8-9487-9004c71e3741 802-3-ethernet ens6f0
      bond-bond_priv 5a3cb631-be4c-44d5-ae9a-95b01d6a6c03 bond bond_priv
Updated: 2019-02-01

Document ID: EDOC1100053123

Views: 14808

Downloads: 14

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