Bonding: Difference between revisions

From Alpine Linux
Line 38: Line 38:
         bridge-ports bond0
         bridge-ports bond0
         bridge-stp 0
         bridge-stp 0

Revision as of 10:08, 25 November 2021

This article shows how to bond (or aggregate) multiple ethernet interfaces into a bond0 interface.

Note: Alpine Linux v2.4 or later is required


First, install the bonding package. This will give you support for bonding in the /etc/network/interfaces file.

apk add bonding


Edit the /etc/network/interfaces file:

auto bond0
iface bond0 inet static
	# specify the ethernet interfaces that should be bonded
	bond-slaves eth0 eth1 eth2 eth3

The keyword is bond-slaves that will make ifup add the slaves to the bond0 interface.


Bonding with br0

auto bond0
iface bond0 inet manual
        bond-slaves eth0 eth1
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3

auto br0
iface br0 inet dhcp
        bridge-ports bond0
        bridge-stp 0