/[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
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>
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>
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>

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

  ViewVC Help
Powered by ViewVC 1.1.20