/[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.62 Revision 1.63
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.62 2005/06/09 07:16:39 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.63 2005/06/11 17:52:26 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.4</version> 11<version>2.5</version>
12<date>2005-06-09</date> 12<date>2005-06-11</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
23(where they are seen in the file system structure), how they should be mounted 23(where they are seen in the file system structure), how they should be mounted
24and with what special options (automatically or not, whether users can mount 24and with what special options (automatically or not, whether users can mount
25them or not, etc.) 25them or not, etc.)
26</p> 26</p>
27 27
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 239
240<p> 240<p>
241The first variable you'll find is called <c>config_eth0</c>. As you can probably 241The first variable you'll find is called <c>config_eth0</c>. As you can probably
242imagine, this variable configured the eth0 network interface. If the interface 242imagine, this variable configured the eth0 network interface. If the interface
243needs to automatically obtain an IP through DHCP, you should set it like so: 243needs to automatically obtain an IP address through DHCP, you should set it
244like so:
244</p> 245</p>
245 246
246<pre caption="Automatically obtaining an IP for eth0"> 247<pre caption="Automatically obtaining an IP for eth0">
247config_eth0=( "dhcp" ) 248config_eth0=( "dhcp" )
248</pre> 249</pre>
249 250
250<p> 251<p>
251However, if you have to enter your own IP address, netmask and gateway, you need 252However, if you have to enter your own IP address, netmask and gateway, you need
252to set both <c>config_eth0</c> and <c>routes_eth0</c>: 253to set both <c>config_eth0</c> and <c>routes_eth0</c>:
253</p> 254</p>
254 255
255<pre caption="Manually setting IP information for eth0"> 256<pre caption="Manually setting IP information for eth0">
256config_eth0=( "192.168.0.2 netmask 255.255.255.0" ) 257config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
257routes_eth0=( "default gw 192.168.0.1" ) 258routes_eth0=( "default gw 192.168.0.1" )
258</pre> 259</pre>

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

  ViewVC Help
Powered by ViewVC 1.1.20