Bonding Interfaces

Use the bond command to configure bonding interfaces and modes. Bonding is a Linux networking feature. Only basic functions are available in the CLI, such as defining a bonding interface and adding a slave interface to a bonding interface. These functions are useful for cluster management, to provide redundant cluster control links. With redundancy, when one cluster control link fails, the other can take over so that the stability of the cluster is not compromised.

The following configuration example creates a bonding interface, sets the bonding interface mode to active standby, and adds eth0 and eth1 as slave interfaces of the bonding interface.

Step

Description

Command

1.    

Create a bonding interface and set the mode.

(config) # bond bond0 mode backup

2.  

Add slave interfaces to the bonding interface.

(config) # interface eth0 bond bond0

(config) # interface eth1 bond bond0

3.  

Configure an IP address of the bonding interface (DHCP).

(config) # interface bond0 dhcp

4.  

Configure the cluster management interface.

(config) # cluster interface bond0

5.  

Display configuration information about bonding interface.

(config) # show bonds

With this configuration, if one interface fails, traffic will be sent/received on the other interface. Use the following command to display bonding interface information:

(config) # show bonds

Bonded Interface bond0:

   Enabled:            yes
   Mode:               backup
   Link Monitor Time:  100
   Interfaces:
      eth0
      eth1