| … | |
… | |
| 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.23 2007/04/14 02:39:25 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.24 2007/11/02 20:33:55 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | Gentoo provides you flexible networking - here you are told about choosing |
12 | Gentoo provides you flexible networking - here you are told about choosing |
| 13 | different DHCP clients, setting up bonding, bridging, VLANs and more. |
13 | different DHCP clients, setting up bonding, bridging, VLANs and more. |
| 14 | </abstract> |
14 | </abstract> |
| 15 | |
15 | |
| 16 | <version>8.2</version> |
16 | <version>8.3</version> |
| 17 | <date>2007-04-13</date> |
17 | <date>2007-11-02</date> |
| 18 | |
18 | |
| 19 | <section> |
19 | <section> |
| 20 | <title>Network Modules</title> |
20 | <title>Network Modules</title> |
| 21 | <body> |
21 | <body> |
| 22 | |
22 | |
| … | |
… | |
| 356 | enable other computers to connect to the internet via the ADSL modem. You could |
356 | enable other computers to connect to the internet via the ADSL modem. You could |
| 357 | create a bridge to join the two interfaces together. |
357 | create a bridge to join the two interfaces together. |
| 358 | </p> |
358 | </p> |
| 359 | |
359 | |
| 360 | <pre caption="Bridge configuration in /etc/conf.d/net"> |
360 | <pre caption="Bridge configuration in /etc/conf.d/net"> |
| 361 | <comment># Configure the bridge - "man btctl" for more details</comment> |
361 | <comment># Configure the bridge - "man brctl" for more details</comment> |
| 362 | brctl_br0=( "setfd 0" "sethello 0" "stp off" ) |
362 | brctl_br0=( "setfd 0" "sethello 0" "stp off" ) |
| 363 | |
363 | |
| 364 | <comment># To add ports to bridge br0</comment> |
364 | <comment># To add ports to bridge br0</comment> |
| 365 | bridge_br0="eth0 eth1" |
365 | bridge_br0="eth0 eth1" |
| 366 | |
366 | |