| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 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/1.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.35 2004/07/03 10:05:28 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.36 2004/07/09 11:24:20 neysx Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | <section> |
10 | <section> |
| 11 | <title>Filesystem Information</title> |
11 | <title>Filesystem Information</title> |
| 12 | <subsection> |
12 | <subsection> |
| 13 | <title>What is fstab?</title> |
13 | <title>What is fstab?</title> |
| 14 | <body> |
14 | <body> |
| 15 | |
15 | |
| 16 | <p> |
16 | <p> |
| 17 | Under Linux, all partitions used by the system must be listed in |
17 | Under Linux, all partitions used by the system must be listed in |
| 18 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
18 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
| 19 | (where they are seen in the file system structure), how they should be mounted |
19 | (where they are seen in the file system structure), how they should be mounted |
| 20 | (special options) and when (automatically or not, can users mount those or not, |
20 | (special options) and when (automatically or not, can users mount those or not, |
| 21 | etc.). |
21 | etc.). |
| 22 | </p> |
22 | </p> |
| … | |
… | |
| 256 | not familiar with all the above terms, please read the section on <uri |
256 | not familiar with all the above terms, please read the section on <uri |
| 257 | link="?part=1&chap=3#doc_chap4_sect3">Understanding Network |
257 | link="?part=1&chap=3#doc_chap4_sect3">Understanding Network |
| 258 | Terminology</uri> if you haven't done so already. |
258 | Terminology</uri> if you haven't done so already. |
| 259 | </p> |
259 | </p> |
| 260 | |
260 | |
| 261 | <p> |
261 | <p> |
| 262 | So let us give three examples; the first one uses DHCP, the second one a static |
262 | So let us give three examples; the first one uses DHCP, the second one a static |
| 263 | IP (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and |
263 | IP (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and |
| 264 | gateway 192.168.0.1 while the third one just activates the interface for |
264 | gateway 192.168.0.1 while the third one just activates the interface for |
| 265 | rp-pppoe usage: |
265 | rp-pppoe usage: |
| 266 | </p> |
266 | </p> |
| 267 | |
267 | |
| 268 | <pre caption="Examples for /etc/conf.d/net"> |
268 | <pre caption="Examples for /etc/conf.d/net"> |
| 269 | <comment>(For DHCP)</comment> |
269 | <comment>(For DHCP)</comment> |
| 270 | iface_eth0="dhcp" |
270 | iface_eth0="dhcp" |
|
|
271 | <comment>Some network admins require that you use the</comment> |
|
|
272 | <comment>hostname and domainname provided by the DHCP server.</comment> |
|
|
273 | <comment>In that case, add the following to let dhcpcd use them.</comment> |
|
|
274 | <comment>That will override your own hostname and domainname definitions.</comment> |
|
|
275 | dhcpcd_eth0="-HD" |
|
|
276 | <comment>If you intend on using NTP to keep your machine clock synchronized, use</comment> |
|
|
277 | <comment>the -N option to prevent dhcpcd from overwriting your /etc/ntp.conf file</comment> |
|
|
278 | dhcpcd_eth0="-N" |
| 271 | |
279 | |
| 272 | <comment>(For static IP)</comment> |
280 | <comment>(For static IP)</comment> |
| 273 | iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" |
281 | iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" |
| 274 | gateway="eth0/192.168.0.1" |
282 | gateway="eth0/192.168.0.1" |
| 275 | |
283 | |
| 276 | <comment>(For rp-pppoe)</comment> |
284 | <comment>(For rp-pppoe)</comment> |
| 277 | iface_eth0="up" |
285 | iface_eth0="up" |
| 278 | </pre> |
286 | </pre> |
| 279 | |
287 | |
| 280 | <p> |
288 | <p> |
| 281 | If you have several network interfaces, create extra <c>iface_eth</c> variables, |
289 | If you have several network interfaces, create extra <c>iface_eth</c> variables, |
| 282 | like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable |
290 | like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable |
| 283 | shouldn't be reproduced as you can only set one gateway per computer. |
291 | shouldn't be reproduced as you can only set one gateway per computer. |
| 284 | </p> |
292 | </p> |
| 285 | |
293 | |