Bonding multiple network interfaces is optional but provides the following benefits:
- High network availability. If one of the interfaces fails, the traffic will be automatically routed through the working interface(s).
- Higher network performance. For example, two bonded Gigabit interfaces will deliver the throughput of about 1.7 Gbit/s or up to 200 MB/s. For a storage node, the required number of network interfaces to bond may depend on the number of disks. For example, an HDD can deliver data at speeds of up to 1 Gbps.
- You cannot bond Ethernet and Infiniband interfaces.
- You cannot bond network bridges and Infiniband interfaces.
If you are bonding an Open vSwitch-based bridge used in the compute cluster with another network interface, choose between these two bonding modes:
- balance-tcp, where load balancing is done based on L2-L4 data like the destination MAC address, IP address, and TCP port. This mode requires that Link Aggregation Control Protocol (LACP) be enabled on the physical switch the node is connected to.
- active-backup, where one network interface is active and all other interfaces are passive. If the active interface fails, a passive one becomes active instead.
To create a bond
- On the Infrastructure > Nodes screen, click the name of the node, go to the Network interfaces tab, and then click Create.
- In the Create network interface window, select the Bond type and network interfaces to bond, and then click Next.
Select the bonding mode. For both fault tolerance and good performance, it is recommended to set the balance-xor mode.
Select a network to assign the bond to, and then specify the network parameters:
- Select Automatically (DHCP) to obtain the IP address, DNS, and routing settings from the DHCP server.
- Select Automatically (DHCP address only) to obtain only the IP address from the DHCP server.
- Select Manually, and then specify the IP address in CIDR notation by clicking Add.
Dynamic IP address allocation will cause network issues as soon as the IP addresses of cluster nodes change. Configure static IP addresses from the start or as soon as possible.
Specify a gateway. The provided gateway will become the node’s default.
Enter the desired MTU value in the MTU field. If you leave Auto, the subordinate interface MTU will be used.
- Select the MAC address in the MAC field. Select Auto to automatically choose between the MAC addresses of the subordinate interfaces or select one of them manually.
- Click Create.
Use the following command:
vinfra node iface create-bond [--ipv4 <ipv4>] [--ipv6 <ipv6>] [--gw4 <gw4>] [--gw6 <gw6>] [--mtu <mtu>] [--dhcp4 | --no-dhcp4] [--dhcp6 | --no-dhcp6] [--auto-routes-v4 | --ignore-auto-routes-v4] [--auto-routes-v6 | --ignore-auto-routes-v6] [--bonding-opts <bonding_opts>] [--network <network>] [--node <node>] --bond-type <bond-type> --ifaces <ifaces>
- A comma-separated list of IPv4 addresses
- A comma-separated list of IPv6 addresses
- Gateway IPv4 address
- Gateway IPv6 address
- MTU interface value
- Enable DHCPv4
- Disable DHCPv4
- Enable DHCPv6
- Disable DHCPv6
- Enable automatic IPv4 routes
- Ignore automatic IPv4 routes
- Enable automatic IPv6 routes
- Ignore automatic IPv6 routes
- Network ID or name
- Additional bonding options
- Bond type (
- Node ID or hostname (default:
- A comma-separated list of network interface names, for example,
For example, to bond network interfaces
bond0 of the type
balance-xor on the node
# vinfra node iface create-bond --ifaces eth2,eth3 --bond-type balance-xor --dhcp4 --node node002