<?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>stockfish &#187; Linux</title>
	<atom:link href="http://www.stockfish.de/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stockfish.de</link>
	<description>der blog mit dem fish...</description>
	<lastBuildDate>Wed, 08 Dec 2010 06:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Bonding mit Ubuntu 8.04 LTS</title>
		<link>http://www.stockfish.de/bonding-mit-ubuntu-804-lts/</link>
		<comments>http://www.stockfish.de/bonding-mit-ubuntu-804-lts/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 12:28:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.stockfish.de/?p=59</guid>
		<description><![CDATA[Kleine Anleitung um Bonding auf Ubuntu einzurichten: 1. Folgendes in die /etc/modules einfügen bonding bond0 mode=0 miimon=100 mode definiert den Modus unter welchem das Bonding laufen soll Bonding Modes Mode 0 &#8211; Loadbalancing-Roundrobin (Redundanz und Lastverteilung) Übertragt Pakete über alle im Bonding enthaltene Netzwerkinterfaces. Dieser Modus bietet Lastverteilung und Redundanz. Mode 1 &#8211; Fault-Tolerant (Redundanz) [...]]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p>Kleine Anleitung um Bonding auf Ubuntu einzurichten:<br />
1. Folgendes in die <em>/etc/modules</em> einfügen</p>
<blockquote><p>bonding bond0 mode=0 miimon=100</p></blockquote>
<p>mode definiert den Modus unter welchem das Bonding laufen soll</p>
<p><strong>Bonding Modes</strong></p>
<p><strong> Mode 0</strong> &#8211; Loadbalancing-Roundrobin (Redundanz und Lastverteilung)<br />
 Übertragt Pakete über alle im Bonding enthaltene Netzwerkinterfaces. Dieser Modus bietet Lastverteilung und Redundanz.</p>
<p><strong> Mode 1</strong> &#8211; Fault-Tolerant (Redundanz)<br />
 Es ist nur ein Netzwerkinterface aktiv. Restliche Netzwerkinterfaces springen nur im Fehlerfall ein.</p>
<p><strong> Mode 2</strong> &#8211; Loadbalancing-Roundrobin (Redundanz und Lastverteilung XOR)<br />
 Die Mac-Adresse des Netzwerkinterfaces wird per XOR mit der Mac-Adresse des Ziels verknüpft.<br />
 Dadurch wird sichergestellt das für ein Ziel immer das gleiche Interface verwendet wird </p>
<p><strong> Mode 3</strong> &#8211; Broadcasting (Redundanz)<br />
 Alle Pakete werden über alle Netzwerkinterfaces im Bonding verschickt. </p>
<p><strong> Mode 4</strong> &#8211; Dynamic Link Aggregation 802.3ad<br />
 Erstellt ein Bonding mit NICs gleicher Geschwindigkeit und Duplex-Einstellungen. Der Switch muss<br />
 Trunks unterstützen.</p>
<p><strong> Mode 5</strong> &#8211; Adaptive transmit load balancing (Lastverteilung und Redundanz)<br />
 Ausgehender Verkehr wird, abhängig von der Last, über alle Netzwerkinterfaces verteilt.<br />
 Eingehender Verkehr wird von dem jeweiligen Netzwerkinterface empfangen.<br />
 F1ällt ein Netzwerkinterface aus, übernimmt ein anderes Netzwerkinterface die Mac-Adresse der ausgefallenen Karte.</p>
<p><strong> Mode 6</strong> &#8211; Adaptive load balancing (Lastverteilung und Redundanz)<br />
 Wie Mode 5, nur mit einer Lastverteilung für IPv4 Traffic.<br />
 Dazu werden ausgehende ARP Anfragen manipuliert und jedes Mal eine andere Mac-Adresse eines Netzwerkinterfaces verwendet.</p>
<p>miimon definiert in welchen Abständen die Netzwerkinterfaces überprüft werden. (Millisekunden)</p>
<p>2. ifenslave installieren </p>
<p>3. In <em>/etc/network/interfaces</em> das bond0 interface anlegen </p>
<blockquote><p>
auto bond0 inet static<br />
iface bond0 inet static<br />
address 10.2.10.35<br />
netmask 255.255.255.0<br />
network 10.2.10.0<br />
gateway 10.2.10.1<br />
post-up ifenslave bond0 eth0 eth1<br />
pre-down ifenslave -d bond0 eth0 eth1</p></blockquote>
<p>4. <em>/etc/modprobe.d/arch/x86_64</em></p>
<blockquote><p>alias bond0 bonding<br />
options bond0 mode=0 miimon=100 </p></blockquote>
<p>5. Neu booten </p>
<p>6. Überprüfen mit ifconfig </p>
<blockquote><p> bond0     Link encap:Ethernet  HWaddr 00:14:38:c4:a3:d5<br />
           inet addr:10.2.10.35  Bcast:10.2.10.255  Mask:255.255.255.0<br />
           inet6 addr: fe80::214:38ff:fec4:a3d5/64 Scope:Link<br />
           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1<br />
           RX packets:66 errors:0 dropped:0 overruns:0 frame:0<br />
           TX packets:37 errors:0 dropped:0 overruns:0 carrier:0<br />
           collisions:0 txqueuelen:0<br />
           RX bytes:7620 (7.4 KB)  TX bytes:5626 (5.4 KB)</p>
<p> eth0      Link encap:Ethernet  HWaddr 00:14:38:c4:a3:d5<br />
           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
           RX packets:34 errors:0 dropped:0 overruns:0 frame:0<br />
           TX packets:19 errors:0 dropped:0 overruns:0 carrier:0<br />
           collisions:0 txqueuelen:1000<br />
           RX bytes:3313 (3.2 KB)  TX bytes:2320 (2.2 KB)<br />
           Interrupt:25 </p>
<p> eth1      Link encap:Ethernet  HWaddr 00:14:38:c4:a3:d5<br />
           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
           RX packets:32 errors:0 dropped:0 overruns:0 frame:0<br />
           TX packets:18 errors:0 dropped:0 overruns:0 carrier:0<br />
           collisions:0 txqueuelen:1000<br />
           RX bytes:4307 (4.2 KB)  TX bytes:3306 (3.2 KB)<br />
           Interrupt:26
</p></blockquote>
<p>7. cat <em>/proc/net/bonding/bond0</em></p>
<blockquote><p> Ethernet Channel Bonding Driver: v3.2.3 (December 6, 2007)</p>
<p> Bonding Mode: load balancing (round-robin)<br />
 MII Status: up<br />
 MII Polling Interval (ms): 100<br />
 Up Delay (ms): 0<br />
 Down Delay (ms): 0 </p>
<p> Slave Interface: eth0<br />
 MII Status: up<br />
 Link Failure Count: 0<br />
 Permanent HW addr: 00:14:38:c4:a3:d5</p>
<p> Slave Interface: eth1<br />
 MII Status: up<br />
 Link Failure Count: 0<br />
 Permanent HW addr: 00:14:38:c4:a3:d4</p>
</blockquote>
<p>Weitere Infos zum Thema Linux und Bonding <a href="http://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Documentation/networking/bonding.txt">Linux Ethernet Bonding Driver mini-howto</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stockfish.de/bonding-mit-ubuntu-804-lts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

