pages tagged debian
wiebel.org
http://wiebel.org//tag/debian/
wiebel.org
ikiwiki
2019-07-09T10:45:57Z
bonding
http://wiebel.org//linux/network/bonding/
2019-07-09T10:45:57Z
2012-05-16T09:39:07Z
<h1 id="configurebondingforieee802.3adlinkaggregation">Configure bonding for IEEE 802.3ad (Link aggregation)</h1>
<p>For details about bonding in general, see the <a href="http://www.kernel.org/doc/Documentation/networking/bonding.txt">Linux Ethernet Bonding Driver HOWTO</a></p>
<p>This article is the counterpart of <a href="http://wiebel.org//cisco/port-channel/">port-channel</a>.</p>
<h2 id="debian">Debian</h2>
<ul>
<li><p><em>/etc/network/interfaces</em></p>
<pre><code>auto bond0
iface bond0 inet static
address 192.168.0.10
netmask 255.255.255.0
slaves eth0 eth2
bond_miimon 100
bond_mode 802.3ad
bond_lacp_rate fast
allow-bond0 eth0
iface eth0 inet manual
allow-bond0 eth2
iface eth2 inet manual
</code></pre></li>
</ul>
<h2 id="redhatcentosscientificlinuxfedora...">RedHat (CentOS, Scientific Linux, Fedora, ...)</h2>
<p>For users of a ixgbe (Intel) nic: Careful with kernel releases between 2.6.194-8.1.el5 and 2.6.18-229.el5, you might run into <a href="https://bugzilla.redhat.com/show_bug.cgi?id=619070">RHEL bug #619070</a></p>
<ul>
<li><p><em>/etc/sysconfig/network-scripts/ifcfg-bond0</em></p>
<pre><code>DEVICE=bond0
IPADDR=192.168.2.12
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="miimon=100 mode=802.3ad lacp_rate=fast"
</code></pre></li>
<li><p><em>/etc/sysconfig/network-scripts/ifcfg-eth0</em></p>
<pre><code>DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
MASTER=bond0
SLAVE=yes
USERCTL=no
</code></pre></li>
<li><p><em>/etc/sysconfig/network-scripts/ifcfg-eth1</em></p>
<pre><code>DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
MASTER=bond0
SLAVE=yes
USERCTL=no
</code></pre></li>
</ul>
<h2 id="opensuse">OpenSUSE</h2>
<p>Presumably the same issue with the kernel as for RedHat. I haven't got it to work with 2.6.27.7-9-default (openSUSE 11.1).</p>
<ul>
<li><p><em>/etc/sysconfig/network/ifcfg-bond0</em></p>
<pre><code>STARTMODE='auto'
BOOTPROTO='static'
BONDING_MASTER=yes
BONDING_SLAVE_1='eth0'
BONDING_SLAVE_2='eth1'
BONDING_MODULE_OPTS='mode=802.3ad miimon=100 lacp_rate=fast'
IPADDR='192.168.0.10/24'
NETWORK='192.168.0.0'
USERCONTROL='no'
</code></pre></li>
<li><p><em>/etc/sysconfig/network/ifcfg-eth0</em></p>
<pre><code>STARTMODE='off'
BOOTPROTO='none'
USERCONTROL='no'
</code></pre></li>
<li><p><em>/etc/sysconfig/network/ifcfg-eth1</em></p>
<pre><code>STARTMODE='off'
BOOTPROTO='none'
USERCONTROL='no'
</code></pre></li>
</ul>
<div class="social" id="linux/network/bonding" title="http://wiebel.org//linux/network/bonding/"></div>