Bonding: Difference between revisions
(Created page with "This article shows how to bond (or aggregate) multiple ethernet interfaces into a bond0 interface. ==Installation== First, install the ''bonding'' package. This will give you su...") |
(added to category networking) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This article shows how to bond (or aggregate) multiple ethernet interfaces into a bond0 interface. | This article shows how to bond (or aggregate) multiple ethernet interfaces into a bond0 interface. | ||
{{Note| Alpine Linux v2.4 or later is required}} | |||
==Installation== | ==Installation== | ||
First, install the ''bonding'' package. This will give you support for bonding in the ''/etc/network/interfaces'' file. | First, install the ''bonding'' package. This will give you support for bonding in the ''/etc/network/interfaces'' file. | ||
Line 7: | Line 7: | ||
==Configuration== | ==Configuration== | ||
Edit the ''/etc/network/interfaces'' file: | Edit the ''/etc/network/interfaces'' file: | ||
<pre> | |||
auto bond0 | auto bond0 | ||
iface bond0 inet static | iface bond0 inet static | ||
Line 15: | Line 15: | ||
# specify the ethernet interfaces that should be bonded | # specify the ethernet interfaces that should be bonded | ||
bond-slaves eth0 eth1 eth2 eth3 | bond-slaves eth0 eth1 eth2 eth3 | ||
</pre> | |||
The keyword is ''bond-slaves'' that will make ifup add the slaves to the bond0 interface. | |||
References: http://www.kernel.org/doc/Documentation/networking/bonding.txt | References: http://www.kernel.org/doc/Documentation/networking/bonding.txt | ||
[[Category:Networking]] |
Revision as of 14:32, 10 May 2012
This article shows how to bond (or aggregate) multiple ethernet interfaces into a bond0 interface.
Note: Alpine Linux v2.4 or later is required
Installation
First, install the bonding package. This will give you support for bonding in the /etc/network/interfaces file.
apk add bonding
Configuration
Edit the /etc/network/interfaces file:
auto bond0 iface bond0 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1 # 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.
References: http://www.kernel.org/doc/Documentation/networking/bonding.txt