/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-config.xml

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

Revision 1.57 Revision 1.58
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.57 2005/04/07 16:12:35 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.58 2005/04/08 12:03:44 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.1</version> 11<version>2.1</version>
12<date>2005-04-07</date> 12<date>2005-04-07</date>
13 13
14<section> 14<section>
15<title>Filesystem Information</title> 15<title>Filesystem Information</title>
16<subsection> 16<subsection>
17<title>What is fstab?</title> 17<title>What is fstab?</title>
18<body> 18<body>
19 19
20<p> 20<p>
21Under Linux, all partitions used by the system must be listed in 21Under Linux, all partitions used by the system must be listed in
22<path>/etc/fstab</path>. This file contains the mountpoints of those partitions 22<path>/etc/fstab</path>. This file contains the mountpoints of those partitions
224 224
225<p> 225<p>
226All networking information is gathered in <path>/etc/conf.d/net</path>. It uses 226All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
227a straightforward yet not intuitive syntax if you don't know how to set up 227a straightforward yet not intuitive syntax if you don't know how to set up
228networking manually. But don't fear, we'll explain everything :) 228networking manually. But don't fear, we'll explain everything :)
229</p> 229</p>
230 230
231<p> 231<p>
232First open <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> 232First open <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c>
233is used in this example): 233is used in this example):
234</p> 234</p>
235 235
236<pre caption="Opening /etc/conf.d/net for editing"> 236<pre caption="Opening /etc/conf.d/net for editing">
237# <i>nano -w /etc/conf.d/net</i> 237# <i>nano -w /etc/conf.d/net</i>
238</pre> 238</pre>
239
240<!-- Old baselayout - current stable -->
239 241
240<p> 242<p>
241The first variable you'll find is <c>iface_eth0</c>. It uses the following 243The first variable you'll find is <c>iface_eth0</c>. It uses the following
242syntax: 244syntax:
243</p> 245</p>
244 246
245<pre caption="iface_eth0 syntaxis"> 247<pre caption="iface_eth0 syntaxis">
246iface_eth0="<i>&lt;your ip address&gt;</i> broadcast <i>&lt;your broadcast address&gt;</i> netmask <i>&lt;your netmask&gt;</i>" 248iface_eth0="<i>&lt;your ip address&gt;</i> broadcast <i>&lt;your broadcast address&gt;</i> netmask <i>&lt;your netmask&gt;</i>"
247</pre> 249</pre>
248 250
249<p> 251<p>
250If you use DHCP (automatic IP retrieval), you should just set <c>iface_eth0</c> 252If you use DHCP (automatic IP retrieval), you should just set <c>iface_eth0</c>
251to <c>dhcp</c>. If you use rp-pppoe (e.g. for ADSL), set it to <c>up</c>. 253to <c>dhcp</c>. If you use rp-pppoe (e.g. for ADSL), set it to <c>up</c>.
252If you need to set up your network manually and you're 254If you need to set up your network manually and you're
253not familiar with all the above terms, please read the section on <uri 255not familiar with all the above terms, please read the section on <uri
276 278
277<comment>(For static IP)</comment> 279<comment>(For static IP)</comment>
278iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" 280iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
279gateway="eth0/192.168.0.1" 281gateway="eth0/192.168.0.1"
280 282
281<comment>(For rp-pppoe)</comment> 283<comment>(For rp-pppoe)</comment>
282iface_eth0="up" 284iface_eth0="up"
283</pre> 285</pre>
284 286
285<p> 287<p>
286If you have several network interfaces, create extra <c>iface_eth</c> variables, 288If you have several network interfaces, create extra <c>iface_eth</c> variables,
287like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable 289like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable
288shouldn't be reproduced as you can only set one gateway per computer. 290shouldn't be reproduced as you can only set one gateway per computer.
289</p> 291</p>
290 292
293<!-- New baselayout - current testing
294
295<p>
296The first variable you'll find is called <c>config_eth0</c>. As you can probably
297imagine, this variable configured the eth0 network interface. If the interface
298needs to automatically obtain an IP through DHCP, you should set it like so:
299</p>
300
301<pre caption="Automatically obtaining an IP for eth0">
302config_eth0=( "dhcp" )
303</pre>
304
305<p>
306However, if you have to enter your own IP address, netmask and gateway, you need
307to set both <c>config_eth0</c> and <c>routes_eth0</c>:
308</p>
309
310<pre caption="Manually setting IP information for eth0">
311config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
312routes_eth0=( "default gw 192.168.0.1" )
313</pre>
314
315<p>
316If you have several network interfaces repeat the above steps for
317<c>config_eth1</c>, <c>config_eth2</c>, etc.
318</p>
319
320-->
321
291<p> 322<p>
292Now save the configuration and exit to continue. 323Now save the configuration and exit to continue.
293</p> 324</p>
294 325
295</body> 326</body>
296</subsection> 327</subsection>
297<subsection> 328<subsection>
298<title>Automatically Start Networking at Boot</title> 329<title>Automatically Start Networking at Boot</title>
299<body> 330<body>
300 331
301<p> 332<p>
302To have your network interfaces activated at boot, you need to add them to the 333To have your network interfaces activated at boot, you need to add them to the
303default runlevel. If you have PCMCIA interfaces you should skip this action as 334default runlevel. If you have PCMCIA interfaces you should skip this action as
304the PCMCIA interfaces are started by the PCMCIA init script. 335the PCMCIA interfaces are started by the PCMCIA init script.
305</p> 336</p>

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20