/[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.118 Revision 1.119
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.118 2013/02/23 18:38:22 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.119 2013/05/06 14:24:20 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12You need to edit some important configuration files. In this chapter 12You need to edit some important configuration files. In this chapter
13you receive an overview of these files and an explanation on how to 13you receive an overview of these files and an explanation on how to
14proceed. 14proceed.
15</abstract> 15</abstract>
16 16
17<version>24</version> 17<version>25</version>
18<date>2013-02-23</date> 18<date>2013-05-06</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>
296<p> 296<p>
297To enter your own IP address, netmask and gateway, you need 297To enter your own IP address, netmask and gateway, you need
298to set both <c>config_eth0</c> and <c>routes_eth0</c>: 298to set both <c>config_eth0</c> and <c>routes_eth0</c>:
299</p> 299</p>
300 300
301<note>
302This assumes that your network interface will be called eth0. This is, however,
303very system dependent. It is recommended to assume that the interface is named
304the same as the interface name when booted from the installation media <e>if</e>
305the installation media is sufficiently recent.
306</note>
307
301<pre caption="Manually setting IP information for eth0"> 308<pre caption="Manually setting IP information for eth0">
302config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" 309config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
303routes_eth0="default via 192.168.0.1" 310routes_eth0="default via 192.168.0.1"
304</pre> 311</pre>
305 312
343# <i>rc-update add net.eth0 default</i> 350# <i>rc-update add net.eth0 default</i>
344</pre> 351</pre>
345 352
346<p> 353<p>
347If you have several network interfaces, you need to create the appropriate 354If you have several network interfaces, you need to create the appropriate
348<path>net.eth1</path>, <path>net.eth2</path> etc. just like you did with 355<path>net.*</path> files just like you did with <path>net.eth0</path>.
349<path>net.eth0</path>. 356</p>
357
350</p> 358<p>
359If you later find out the assumption about the network interface name (which we
360currently document as eth0) was wrong, then
361</p>
362
363<ol>
364<li>
365update the <path>/etc/conf.d/net</path> file with the correct interface name (like enp3s0
366instead of eth0),
367</li>
368<li>
369create new symbolic link (like <path>/etc/init.d/net.enp3s0</path>),
370</li>
371<li>
372remove the old symbolic link (<c>rm /etc/init.d/net.eth0</c>),
373</li>
374<li>
375add the new one to the default runlevel, and
376</li>
377<li>
378remove the old one using <c>rc-update del net.eth0 default</c>.
379</li>
380</ol>
351 381
352</body> 382</body>
353</subsection> 383</subsection>
354<subsection> 384<subsection>
355<title>Writing Down Network Information</title> 385<title>Writing Down Network Information</title>

Legend:
Removed from v.1.118  
changed lines
  Added in v.1.119

  ViewVC Help
Powered by ViewVC 1.1.20