/[gentoo]/xml/htdocs/doc/en/handbook/hb-net-start.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-net-start.xml

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

Revision 1.1 Revision 1.3
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/2.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-start.xml,v 1.3 2005/06/14 18:34:32 neysx Exp $ -->
6 8
7<sections> 9<sections>
8 10
9<version>1.0</version> 11<version>1.1</version>
10<date>2005-06-06</date> 12<date>2005-06-14</date>
11 13
12<section> 14<section>
13<title>Getting started</title> 15<title>Getting started</title>
14<body> 16<body>
15 17
28To get started configuring your network card, you need to tell the Gentoo RC 30To get started configuring your network card, you need to tell the Gentoo RC
29system about it. This is done by creating a symbolic link from <c>net.lo</c> 31system about it. This is done by creating a symbolic link from <c>net.lo</c>
30to <c>net.eth0</c> in <path>/etc/init.d</path> 32to <c>net.eth0</c> in <path>/etc/init.d</path>
31</p> 33</p>
32 34
33<pre> 35<pre caption="Symlinking net.eth0 to net.lo">
34# <i>cd /etc/init.d</i> 36# <i>cd /etc/init.d</i>
35# <i>ln -s net.lo net.eth0</i> 37# <i>ln -s net.lo net.eth0</i>
36</pre> 38</pre>
37 39
38<p> 40<p>
39Gentoo's RC system now knows about that interface. It also needs to know how 41Gentoo's RC system now knows about that interface. It also needs to know how
40to configure the new interface. All the network interfaces are configured in 42to configure the new interface. All the network interfaces are configured in
41<path>/etc/conf.d/net</path>.<br/> 43<path>/etc/conf.d/net</path>. Below is a sample configuration for DHCP and
42Below is a sample configuration for DHCP and static addresses. 44static addresses.
43</p> 45</p>
44 46
45<pre caption="Examples for /etc/conf.d/net"> 47<pre caption="Examples for /etc/conf.d/net">
46<comment># For DHCP</comment> 48<comment># For DHCP</comment>
47config_eth0=( "dhcp" ) 49config_eth0=( "dhcp" )
58<note> 60<note>
59If you do not specify a configuration for your interface then DHCP is assumed. 61If you do not specify a configuration for your interface then DHCP is assumed.
60</note> 62</note>
61 63
62<note> 64<note>
63CIDR stands for Classless InterDomain Routing.<br/> 65CIDR stands for Classless InterDomain Routing.
64Originally, IPv4 addresses were classified as A, B, or C. 66Originally, IPv4 addresses were classified as A, B, or C.
65The early classification system did not envision the massive popularity of the 67The early classification system did not envision the massive popularity of the
66Internet, and is in danger of running out of new unique addresses. CIDR is an 68Internet, and is in danger of running out of new unique addresses. CIDR is an
67addressing scheme that allows one IP address to designate many IP addresses. 69addressing scheme that allows one IP address to designate many IP addresses.
68A CIDR IP address looks like a normal IP address except that it ends with a 70A CIDR IP address looks like a normal IP address except that it ends with a
81</pre> 83</pre>
82 84
83<impo> 85<impo>
84When troubleshooting networking, it is recommended to set RC_VERBOSE="yes" 86When troubleshooting networking, it is recommended to set RC_VERBOSE="yes"
85in <path>/etc/conf.d/rc</path> so that you get more information about what's 87in <path>/etc/conf.d/rc</path> so that you get more information about what's
86happening 88happening.
87</impo> 89</impo>
88 90
89<p> 91<p>
90Now that you have successfully started and stopped your network interface, you 92Now that you have successfully started and stopped your network interface, you
91may wish to get it to start when Gentoo boots. Here's how to do this. The last 93may wish to get it to start when Gentoo boots. Here's how to do this. The last

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20