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

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

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

Revision 1.21 Revision 1.22
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-modules.xml,v 1.21 2007/01/04 06:03:26 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.22 2007/04/08 01:28:11 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12Gentoo provides you flexible networking - here you are told about choosing 12Gentoo provides you flexible networking - here you are told about choosing
13different DHCP clients, setting up bonding, bridging, VLANs and more. 13different DHCP clients, setting up bonding, bridging, VLANs and more.
14</abstract> 14</abstract>
15 15
16<version>7.1</version> 16<version>8.0</version>
17<date>2007-01-04</date> 17<date>2007-04-07</date>
18 18
19<section> 19<section>
20<title>Network Modules</title> 20<title>Network Modules</title>
21<body> 21<body>
22 22
209 209
210<p> 210<p>
211First we need to install the ADSL software. 211First we need to install the ADSL software.
212</p> 212</p>
213 213
214<pre caption="Install the rp-pppoe package"> 214<pre caption="Install the ppp package">
215# <i>emerge net-dialup/rp-pppoe</i> 215# <i>emerge net-dialup/ppp</i>
216</pre> 216</pre>
217 217
218<warn> 218<note>
219<c>baselayout-1.11.x</c> supports PPPoE only. Hopefully future versions will 219If you need PPPoA, then you need to use >=<c>baselayout-1.12.x</c>.
220support PPPoA. 220</note>
221</warn>
222 221
223<p>
224Now we need to configure <c>eth0</c> to be an ADSL interface and enter our
225username by updating <path>/etc/conf.d/net</path>.
226</p> 222<p>
227 223Second, create the PPP net script:
228<pre caption="Configure eth0 for ADSL in /etc/conf.d/net">
229config_eth0=( "adsl" )
230adsl_user_eth0="username"
231</pre>
232
233<p> 224</p>
234Finally you need to define your username and password in 225
235<path>/etc/ppp/pap-secrets</path>. 226<pre caption="Creating the PPP net script">
227# <i>ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0</i>
228</pre>
229
236</p> 230<p>
231Now we need to configure <path>/etc/conf.d/net</path>.
232</p>
237 233
234<pre caption="A basic PPPoE setup">
235config_ppp0=( "ppp" )
236link_ppp0="eth0" <comment>(For PPPoE users; replace eth0 with your actual PPP interface)</comment>
237plugins_ppp0=( "pppoe" )
238username_ppp0='user'
239password_ppp0='password'
240</pre>
241
242<p>
243You can also set your password in <path>/etc/ppp/pap-secrets</path>.
244</p>
245
238<pre caption="sample /etc/ppp/pap-secrets"> 246<pre caption="Sample /etc/ppp/pap-secrets">
239<comment># The * is important</comment> 247<comment># The * is important</comment>
240"username" * "password" 248"username" * "password"
241</pre> 249</pre>
250
251<impo>
252Please carefully read the section on ADSL and PPP in
253<path>/etc/conf.d/net.example</path>. It contains many more detailed
254explanations of all the settings your particular PPP setup will likely need.
255</impo>
242 256
243</body> 257</body>
244</section> 258</section>
245<section id="apipa"> 259<section id="apipa">
246<title>APIPA (Automatic Private IP Addressing)</title> 260<title>APIPA (Automatic Private IP Addressing)</title>

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20