/[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.9 Revision 1.10
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.9 2010/04/15 06:17:23 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-start.xml,v 1.10 2011/08/14 16:12:13 swift 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>8.1</version> 16<version>9</version>
17<date>2010-04-14</date> 17<date>2011-08-13</date>
18 18
19<section> 19<section>
20<title>Getting started</title> 20<title>Getting started</title>
21<body> 21<body>
22 22
23<note> 23<note>
24This document assumes that you have correctly configured your kernel, its 24This document assumes that you have correctly configured your kernel, its
25modules for your hardware and you know the interface name of your hardware. 25modules for your hardware and you know the interface name of your hardware.
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>
29
30<note>
31This document requires you to run <c>baselayout-1.11.11</c> or better.
32</note> 28</note>
33 29
34<p> 30<p>
35To get started configuring your network card, you need to tell the Gentoo RC 31To 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 32system about it. This is done by creating a symbolic link from
49static addresses. 45static addresses.
50</p> 46</p>
51 47
52<pre caption="Examples for /etc/conf.d/net"> 48<pre caption="Examples for /etc/conf.d/net">
53<comment># For DHCP</comment> 49<comment># For DHCP</comment>
54config_eth0=( "dhcp" ) 50config_eth0="dhcp"
55 51
56<comment># For static IP using CIDR notation</comment> 52<comment># For static IP using CIDR notation</comment>
57config_eth0=( "192.168.0.7/24" ) 53config_eth0="192.168.0.7/24"
58routes_eth0=( "default via 192.168.0.1" ) 54routes_eth0="default via 192.168.0.1"
59 55
60<comment># For static IP using netmask notation</comment> 56<comment># For static IP using netmask notation</comment>
61config_eth0=( "192.168.0.7 netmask 255.255.255.0" ) 57config_eth0="192.168.0.7 netmask 255.255.255.0"
62routes_eth0=( "default via 192.168.0.1" ) 58routes_eth0="default via 192.168.0.1"
63</pre> 59</pre>
64 60
65<note> 61<note>
66If you do not specify a configuration for your interface then DHCP is assumed. 62If you do not specify a configuration for your interface then DHCP is assumed.
67</note> 63</note>
86# <i>/etc/init.d/net.eth0 start</i> 82# <i>/etc/init.d/net.eth0 start</i>
87# <i>/etc/init.d/net.eth0 stop</i> 83# <i>/etc/init.d/net.eth0 stop</i>
88</pre> 84</pre>
89 85
90<impo> 86<impo>
91When troubleshooting networking, it is recommended to set 87When troubleshooting networking, take a look at <path>/var/log/rc.log</path>.
92<c>RC_VERBOSE="yes"</c> in <path>/etc/conf.d/rc</path> so that you get more 88Unless you have <c>rc_logger="NO"</c> set in <path>/etc/rc.conf</path>, you
93information about what's happening. 89will find information on the boot activity stored in that log file.
94</impo> 90</impo>
95 91
96<p> 92<p>
97Now that you have successfully started and stopped your network interface, you 93Now that you have successfully started and stopped your network interface, you
98may wish to get it to start when Gentoo boots. Here's how to do this. The last 94may wish to get it to start when Gentoo boots. Here's how to do this. The last

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20