<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wally's blog &#187; bonding</title>
	<atom:link href="http://matt.matzi.org.uk/tag/bonding/feed/" rel="self" type="application/rss+xml" />
	<link>http://matt.matzi.org.uk</link>
	<description>Delving deep into the mind of me</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:20:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>NIC teaming on Debian Etch and Lenny</title>
		<link>http://matt.matzi.org.uk/2009/01/23/nic-teaming-on-debian-etch-and-lenny/</link>
		<comments>http://matt.matzi.org.uk/2009/01/23/nic-teaming-on-debian-etch-and-lenny/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 11:33:11 +0000</pubDate>
		<dc:creator>wally</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ifenbond]]></category>

		<guid isPermaLink="false">http://matt.matzi.org.uk/?p=57</guid>
		<description><![CDATA[There are plenty of HOWTOs on so called NIC teaming or NIC bonding for Debian, but of the ones I&#8217;ve seen, they&#8217;ve all missed some rather important bits. Below is the method I personally found to work reliably: apt-get install ifenslave echo &#34;bonding&#34; &#38;gt;&#38;gt; /etc/modules modprobe bonding ifdown eth0 edit /etc/network/interfaces, changing &#8220;eth0&#8243; (or your [...]]]></description>
			<content:encoded><![CDATA[<p>There are plenty of HOWTOs on so called NIC teaming or NIC bonding for Debian, but of the ones I&#8217;ve seen, they&#8217;ve all missed some rather important bits.</p>
<p>Below is the method I personally found to work reliably:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ifenslave
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;bonding&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modules
modprobe bonding
<span style="color: #c20cb9; font-weight: bold;">ifdown</span> eth0</pre></div></div>

<p>edit /etc/network/interfaces, changing &#8220;eth0&#8243; (or your configured NIC) to &#8220;bond0&#8243;, and replacing &#8220;allow-hotplug&#8221; with &#8220;auto&#8221;.  The following <code>sed</code> line give you this automagically:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/eth0/bond0/;s/allow-hotplug bond0/auto bond0/'</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div>

<p>Tell <code>ifup</code> and <code>ifdown</code> to add/remove devices to <code>bond0</code> lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; up /sbin/ifenslave      bond0 eth0 eth1&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; down /sbin/ifenslave -d bond0 eth0 eth1&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces
<span style="color: #c20cb9; font-weight: bold;">ifup</span> bond0;</pre></div></div>

<p>And you&#8217;re done!</p>
<p>You can add all the options for the bonding module to the line in <code>/etc/modules</code>, like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;bonding mode=1 miimon=250 primary=eth0&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modules;</pre></div></div>

<p>Details of all options available at <a href="http://linuxfoundation.org/en/Net:Bonding#Bonding_Driver_Options">linuxfoundation.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.matzi.org.uk/2009/01/23/nic-teaming-on-debian-etch-and-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

