/[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.2
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 6
7<sections> 7<sections>
8 8
9<version>1.0</version> 9<version>1.1</version>
10<date>2005-06-06</date> 10<date>2005-06-14</date>
11 11
12<section> 12<section>
13<title>Getting started</title> 13<title>Getting started</title>
14<body> 14<body>
15 15
28To get started configuring your network card, you need to tell the Gentoo RC 28To 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> 29system 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> 30to <c>net.eth0</c> in <path>/etc/init.d</path>
31</p> 31</p>
32 32
33<pre> 33<pre caption="Symlinking net.eth0 to net.lo">
34# <i>cd /etc/init.d</i> 34# <i>cd /etc/init.d</i>
35# <i>ln -s net.lo net.eth0</i> 35# <i>ln -s net.lo net.eth0</i>
36</pre> 36</pre>
37 37
38<p> 38<p>
39Gentoo's RC system now knows about that interface. It also needs to know how 39Gentoo'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 40to configure the new interface. All the network interfaces are configured in
41<path>/etc/conf.d/net</path>.<br/> 41<path>/etc/conf.d/net</path>. Below is a sample configuration for DHCP and
42Below is a sample configuration for DHCP and static addresses. 42static addresses.
43</p> 43</p>
44 44
45<pre caption="Examples for /etc/conf.d/net"> 45<pre caption="Examples for /etc/conf.d/net">
46<comment># For DHCP</comment> 46<comment># For DHCP</comment>
47config_eth0=( "dhcp" ) 47config_eth0=( "dhcp" )
58<note> 58<note>
59If you do not specify a configuration for your interface then DHCP is assumed. 59If you do not specify a configuration for your interface then DHCP is assumed.
60</note> 60</note>
61 61
62<note> 62<note>
63CIDR stands for Classless InterDomain Routing.<br/> 63CIDR stands for Classless InterDomain Routing.
64Originally, IPv4 addresses were classified as A, B, or C. 64Originally, IPv4 addresses were classified as A, B, or C.
65The early classification system did not envision the massive popularity of the 65The 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 66Internet, 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. 67addressing 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 68A CIDR IP address looks like a normal IP address except that it ends with a
81</pre> 81</pre>
82 82
83<impo> 83<impo>
84When troubleshooting networking, it is recommended to set RC_VERBOSE="yes" 84When 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 85in <path>/etc/conf.d/rc</path> so that you get more information about what's
86happening 86happening.
87</impo> 87</impo>
88 88
89<p> 89<p>
90Now that you have successfully started and stopped your network interface, you 90Now 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 91may 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.2

  ViewVC Help
Powered by ViewVC 1.1.20