| … | |
… | |
| 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-install-config.xml,v 1.99 2008/05/02 08:04:23 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.100 2009/02/11 08:40:54 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | You need to edit some important configuration files. In this chapter |
12 | You need to edit some important configuration files. In this chapter |
| 13 | you receive an overview of these files and an explanation on how to |
13 | you receive an overview of these files and an explanation on how to |
| 14 | proceed. |
14 | proceed. |
| 15 | </abstract> |
15 | </abstract> |
| 16 | |
16 | |
| 17 | <version>9.2</version> |
17 | <version>9.3</version> |
| 18 | <date>2008-05-02</date> |
18 | <date>2009-02-11</date> |
| 19 | |
19 | |
| 20 | <section> |
20 | <section> |
| 21 | <title>Filesystem Information</title> |
21 | <title>Filesystem Information</title> |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <title>What is fstab?</title> |
23 | <title>What is fstab?</title> |
| … | |
… | |
| 301 | config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) |
301 | config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) |
| 302 | routes_eth0=( "default via 192.168.0.1" ) |
302 | routes_eth0=( "default via 192.168.0.1" ) |
| 303 | </pre> |
303 | </pre> |
| 304 | |
304 | |
| 305 | <p> |
305 | <p> |
| 306 | To use DHCP and add specific DHCP options, define <c>config_eth0</c> and |
306 | To use DHCP, define <c>config_eth0</c>: |
| 307 | <c>dhcp_eth0</c>: |
|
|
| 308 | </p> |
307 | </p> |
| 309 | |
308 | |
| 310 | <pre caption="Automatically obtaining an IP address for eth0"> |
309 | <pre caption="Automatically obtaining an IP address for eth0"> |
| 311 | config_eth0=( "dhcp" ) |
310 | config_eth0=( "dhcp" ) |
| 312 | dhcp_eth0="nodns nontp nonis" |
|
|
| 313 | </pre> |
311 | </pre> |
| 314 | |
312 | |
| 315 | <p> |
313 | <p> |
| 316 | Please read <path>/etc/conf.d/net.example</path> for a list of all available |
314 | Please read <path>/etc/conf.d/net.example</path> for a list of all available |
| 317 | options. |
315 | options. Be sure to also read your DHCP client manpage if you need to set |
|
|
316 | specific DHCP options. |
| 318 | </p> |
317 | </p> |
| 319 | |
318 | |
| 320 | <p> |
319 | <p> |
| 321 | If you have several network interfaces repeat the above steps for |
320 | If you have several network interfaces repeat the above steps for |
| 322 | <c>config_eth1</c>, <c>config_eth2</c>, etc. |
321 | <c>config_eth1</c>, <c>config_eth2</c>, etc. |