/[gentoo]/xml/htdocs/doc/en/handbook/hb-net-modules.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-net-modules.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.31 Revision 1.32
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.31 2014/04/12 06:24:48 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.32 2014/09/25 08:21:34 jkt Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12Gentoo provides you flexible networking - here you are told about choosing 12Gentoo provides you flexible networking - here you are told about choosing
13different DHCP clients, setting up bonding, bridging, VLANs and more. 13different DHCP clients, setting up bonding, bridging, VLANs and more.
14</abstract> 14</abstract>
15 15
16<version>14</version> 16<version>15</version>
17<date>2014-04-12</date> 17<date>2014-09-25</date>
18 18
19<section> 19<section>
20<title>Network Modules</title> 20<title>Network Modules</title>
21<body> 21<body>
22 22
304<p> 304<p>
305For link bonding/trunking emerge <c>net-misc/ifenslave</c>. 305For link bonding/trunking emerge <c>net-misc/ifenslave</c>.
306</p> 306</p>
307 307
308<p> 308<p>
309Bonding is used to increase network bandwidth. If you have two network cards 309Bonding is used to increase network bandwidth or to improve resiliency in face
310going to the same network, you can bond them together so your applications see 310of hardware failures. If you have two network cards going to the same network,
311just one interface but they really use both network cards. 311you can bond them together so your applications see just one interface but they
312really use both network cards.
313</p>
314
315<p>
316There are many ways to configure bonding. Some of them, such as the 802.3ad LACP
317mode, require support and additional configuration of the network switch. For a
318reference of the individual options, please refer to your copy of
319<path>/usr/src/linux/Documentation/networking/bonding.txt</path>.
312</p> 320</p>
313 321
314<p> 322<p>
315First, clear the configuration of the participating interfaces: 323First, clear the configuration of the participating interfaces:
316</p> 324</p>
326</p> 334</p>
327 335
328<pre caption="Define the bonding"> 336<pre caption="Define the bonding">
329slaves_bond0="eth0 eth1 eth2" 337slaves_bond0="eth0 eth1 eth2"
330config_bond0="192.168.100.4/24" 338config_bond0="192.168.100.4/24"
339<comment># Pick a correct mode and additional configuration options which suit your needs</comment>
340mode_bond0="balance-alb"
331</pre> 341</pre>
332 342
333<p> 343<p>
334Remove the <path>net.eth*</path> services from the runlevels, create a 344Remove the <path>net.eth*</path> services from the runlevels, create a
335<path>net.bond0</path> one and add that one to the correct runlevel. 345<path>net.bond0</path> one and add that one to the correct runlevel.

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20