| … | |
… | |
| 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.12 2006/01/03 07:47:17 fox2mike Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.13 2006/01/07 16:15:45 jkt Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>1.7</version> |
11 | <version>1.7</version> |
| 12 | <date>2006-01-03</date> |
12 | <date>2006-01-03</date> |
| … | |
… | |
| 161 | to use - otherwise we default to <c>dhcpcd</c> if available. |
161 | to use - otherwise we default to <c>dhcpcd</c> if available. |
| 162 | </p> |
162 | </p> |
| 163 | |
163 | |
| 164 | <p> |
164 | <p> |
| 165 | To send specific options to the DHCP module, use <c>module_eth0="..."</c> |
165 | To send specific options to the DHCP module, use <c>module_eth0="..."</c> |
| 166 | <e>(change module to the DHCP module you're using - ie <c>dhcpcd_eth0</c>)</e> |
166 | <e>(change module to the DHCP module you're using - ie <c>dhcpcd_eth0</c>)</e>. |
| 167 | </p> |
167 | </p> |
| 168 | |
168 | |
| 169 | <p> |
169 | <p> |
| 170 | We try and make DHCP relatively agnostic - as such we support the following |
170 | We try and make DHCP relatively agnostic - as such we support the following |
| 171 | commands using the <c>dhcp_eth0</c> variable. The default is not to set any of |
171 | commands using the <c>dhcp_eth0</c> variable. The default is not to set any of |
| … | |
… | |
| 277 | going to the same network, you can bond them together so your applications see |
277 | going to the same network, you can bond them together so your applications see |
| 278 | just one interface but they really use both network cards. |
278 | just one interface but they really use both network cards. |
| 279 | </p> |
279 | </p> |
| 280 | |
280 | |
| 281 | <pre caption="bonding configuration in /etc/conf.d/net"> |
281 | <pre caption="bonding configuration in /etc/conf.d/net"> |
| 282 | <comment>To bond interfaces together</comment> |
282 | <comment># To bond interfaces together</comment> |
| 283 | slaves_bond0="eth0 eth1 eth2" |
283 | slaves_bond0="eth0 eth1 eth2" |
| 284 | |
284 | |
| 285 | <comment># You may not want to assign an IP to the bonded interface</comment> |
285 | <comment># You may not want to assign an IP to the bonded interface</comment> |
| 286 | config_bond0=( "null" ) |
286 | config_bond0=( "null" ) |
| 287 | |
287 | |