/[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.7 Revision 1.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.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-start.xml,v 1.7 2006/10/28 09:17:55 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-start.xml,v 1.8 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12A guide to quickly get your network interface up and running in most common 12A guide to quickly get your network interface up and running in most common
13environments. 13environments.
14</abstract> 14</abstract>
15 15
16<version>7.0</version> 16<version>8.0</version>
17<date>2006-08-30</date> 17<date>2007-05-07</date>
18 18
19<section> 19<section>
20<title>Getting started</title> 20<title>Getting started</title>
21<body> 21<body>
22 22
26We also assume that you are configuring <c>eth0</c>, but it could also be 26We also assume that you are configuring <c>eth0</c>, but it could also be
27<c>eth1</c>, <c>wlan0</c>, etc. 27<c>eth1</c>, <c>wlan0</c>, etc.
28</note> 28</note>
29 29
30<note> 30<note>
31This document requires you are running <c>baselayout-1.11.11</c> or better. 31This document requires you to run <c>baselayout-1.11.11</c> or better.
32</note> 32</note>
33 33
34<p> 34<p>
35To get started configuring your network card, you need to tell the Gentoo RC 35To get started configuring your network card, you need to tell the Gentoo RC
36system about it. This is done by creating a symbolic link from 36system about it. This is done by creating a symbolic link from
57config_eth0=( "192.168.0.7/24" ) 57config_eth0=( "192.168.0.7/24" )
58routes_eth0=( "default via 192.168.0.1" ) 58routes_eth0=( "default via 192.168.0.1" )
59 59
60<comment># For static IP using netmask notation</comment> 60<comment># For static IP using netmask notation</comment>
61config_eth0=( "192.168.0.7 netmask 255.255.255.0" ) 61config_eth0=( "192.168.0.7 netmask 255.255.255.0" )
62routes_eth0=( "default gw 192.168.0.1" ) 62routes_eth0=( "default via 192.168.0.1" )
63</pre> 63</pre>
64 64
65<note> 65<note>
66If you do not specify a configuration for your interface then DHCP is assumed. 66If you do not specify a configuration for your interface then DHCP is assumed.
67</note> 67</note>
68 68
69<note> 69<note>
70CIDR stands for Classless InterDomain Routing. 70CIDR stands for Classless InterDomain Routing. Originally, IPv4 addresses were
71Originally, IPv4 addresses were classified as A, B, or C. 71classified as A, B, or C. The early classification system did not envision the
72The early classification system did not envision the massive popularity of the 72massive popularity of the Internet, and is in danger of running out of new
73Internet, and is in danger of running out of new unique addresses. CIDR is an 73unique addresses. CIDR is an addressing scheme that allows one IP address to
74addressing scheme that allows one IP address to designate many IP addresses. 74designate many IP addresses. A CIDR IP address looks like a normal IP address
75A CIDR IP address looks like a normal IP address except that it ends with a 75except that it ends with a slash followed by a number; for example,
76slash followed by a number; for example, 192.168.0.0/16.
77CIDR is described in <uri link="http://rfc.net/rfc1519.html">RFC 1519</uri>. 76192.168.0.0/16. CIDR is described in <uri link="http://rfc.net/rfc1519.html">RFC
771519</uri>.
78</note> 78</note>
79 79
80<p> 80<p>
81Now that we have configured our interface, we can start and stop it using the 81Now that we have configured our interface, we can start and stop it using the
82below commands 82following commands:
83</p> 83</p>
84 84
85<pre caption="Starting and stopping network scripts"> 85<pre caption="Starting and stopping network scripts">
86# <i>/etc/init.d/net.eth0 start</i> 86# <i>/etc/init.d/net.eth0 start</i>
87# <i>/etc/init.d/net.eth0 stop</i> 87# <i>/etc/init.d/net.eth0 stop</i>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20