<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Bonding_Multiple_NICs</id>
		<title>Bonding Multiple NICs - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Bonding_Multiple_NICs"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Bonding_Multiple_NICs&amp;action=history"/>
		<updated>2026-05-12T21:42:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Bonding_Multiple_NICs&amp;diff=3505&amp;oldid=prev</id>
		<title>Admin: /* Ubuntu 10.04 or higher */</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Bonding_Multiple_NICs&amp;diff=3505&amp;oldid=prev"/>
				<updated>2011-07-12T17:32:39Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Ubuntu 10.04 or higher&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
This tutorial will show you how to setup a bond where multiple network cards are combined to look like a single NIC for increased throughput and redundancy.  &lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Ubuntu 10.04 or higher ==&lt;br /&gt;
&lt;br /&gt;
*Install ifenslave&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install ifenslave&lt;br /&gt;
&lt;br /&gt;
We are using a basic bonding mode 2.  For other modes, please see: https://help.ubuntu.com/community/UbuntuBonding&lt;br /&gt;
&lt;br /&gt;
'''We have had issues on Ubuntu 10.04 using mode 0, we have had better luck using mode 2'''&lt;br /&gt;
&lt;br /&gt;
==== mode=0 (balance-rr) (See note above!) ====&lt;br /&gt;
Round-robin policy: Stripes traffic across multiple interfaces. This mode provides load balancing and fault tolerance. the striping generally results in peer systems receiving packets out of order, causing TCP/IP’s congestion control system to kick in, often by retransmitting segments.&lt;br /&gt;
====mode=1 (active-backup)====&lt;br /&gt;
Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond’s MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode.&lt;br /&gt;
====mode=2 (balance-xor)====&lt;br /&gt;
XOR policy: Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.&lt;br /&gt;
====mode=3 (broadcast)====&lt;br /&gt;
Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.&lt;br /&gt;
&lt;br /&gt;
*Edit your interfaces file, /etc/network/interfaces.&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto bond0&lt;br /&gt;
 iface bond0 inet static&lt;br /&gt;
    bond-slaves none&lt;br /&gt;
    bond-mode 2&lt;br /&gt;
    bond-miimon 100&lt;br /&gt;
    address 192.168.1.50&lt;br /&gt;
    netmask 255.255.255.0&lt;br /&gt;
    network 192.168.1.0&lt;br /&gt;
    broadcast 192.168.0.255&lt;br /&gt;
    gateway 192.168.1.1&lt;br /&gt;
    hwaddress ether 00:AA:BB:CC:DD:EE&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
    bond-master bond0&lt;br /&gt;
    bond-primary eth0 eth1&lt;br /&gt;
 auto eth1&lt;br /&gt;
 iface eth1 inet manual&lt;br /&gt;
    bond-master bond0&lt;br /&gt;
    bond-primary eth0 eth1&lt;br /&gt;
&lt;br /&gt;
hwaddress could be the MAC address of one of you network cards, this can be found by running:&lt;br /&gt;
&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
* Reboot your server&lt;br /&gt;
&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
== CentOS / RedHat ==&lt;br /&gt;
Edit /etc/modprobe.conf and add the following (see the note above in the Ubuntu section about this type of bonding):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias bond0 bonding&lt;br /&gt;
options bonding mode=0 miimon=100 downdelay=200 updelay=200&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the file /etc/sysconfig/network-scripts/ifcfg-bond0 and add the following (substitute your server's IP address, netmask and gateway of course):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Bonded interface&lt;br /&gt;
DEVICE=bond0&lt;br /&gt;
BOOTPROTO=static&lt;br /&gt;
ONBOOT=yes&lt;br /&gt;
IPADDR=&amp;lt;Your server IP here&amp;gt;&lt;br /&gt;
NETMASK=&amp;lt;Your netmask&amp;gt;&lt;br /&gt;
GATEWAY=&amp;lt;Your server's default gateway&amp;gt;&lt;br /&gt;
TYPE=Ethernet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 so that it looks similar to this. This file should already exist, you're just editing out the IP address configuration. Preserve your server's MAC address if this file is already there to make things easier.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE=eth0&lt;br /&gt;
BOOTPROTO=none&lt;br /&gt;
ONBOOT=yes&lt;br /&gt;
HWADDR=&amp;lt;MAC address of NIC&amp;gt;&lt;br /&gt;
MASTER=bond0&lt;br /&gt;
SLAVE=yes&lt;br /&gt;
TYPE=Ethernet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit /etc/sysconfig/network-scripts/ifcfg-eth1 and so on for each interface you want to bond together. All that's needed in the ifcfg script is what is shown above. Again, substitute your server's MAC addresses in place of the HWADDR listed above. Don't forget to change the DEVICE= line as well to correspond to the interface you're setting up (eth1, eth2, etc)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>