/[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.22 Revision 1.23
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.22 2007/04/08 01:28:11 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v 1.23 2007/04/14 02:39:25 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>8.0</version> 16<version>8.2</version>
17<date>2007-04-07</date> 17<date>2007-04-13</date>
18 18
19<section> 19<section>
20<title>Network Modules</title> 20<title>Network Modules</title>
21<body> 21<body>
22 22
202</note> 202</note>
203 203
204</body> 204</body>
205</section> 205</section>
206<section> 206<section>
207<title>ADSL Modem</title> 207<title>ADSL with PPPoE/PPPoA</title>
208<body> 208<body>
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>
214<pre caption="Install the ppp package"> 214<pre caption="Install the ppp package">
215# <i>emerge net-dialup/ppp</i> 215# <i>emerge net-dialup/ppp</i>
216</pre> 216</pre>
217 217
218<note> 218<note>
219If you need PPPoA, then you need to use >=<c>baselayout-1.12.x</c>. 219If you need PPPoA, then make sure to use >=<c>baselayout-1.12.x</c>.
220</note> 220</note>
221 221
222<p> 222<p>
223Second, create the PPP net script: 223Second, create the PPP net script and the net script for the ethernet interface
224to be used by PPP:
224</p> 225</p>
225 226
226<pre caption="Creating the PPP net script"> 227<pre caption="Creating the PPP and ethernet scripts">
227# <i>ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0</i> 228# <i>ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0</i>
229# <i>ln -s /etc/init.d/net.lo /etc/init.d/net.eth0</i>
230</pre>
231
232<p>
233Be sure to set RC_NET_STRICT_CHECKING="yes" in <path>/etc/conf.d/rc</path>.
228</pre> 234</p>
229 235
230<p> 236<p>
231Now we need to configure <path>/etc/conf.d/net</path>. 237Now we need to configure <path>/etc/conf.d/net</path>.
232</p> 238</p>
233 239
234<pre caption="A basic PPPoE setup"> 240<pre caption="A basic PPPoE setup">
241config_eth0=( null ) <comment>(Specify your ethernet interface)</comment>
235config_ppp0=( "ppp" ) 242config_ppp0=( "ppp" )
236link_ppp0="eth0" <comment>(For PPPoE users; replace eth0 with your actual PPP interface)</comment> 243link_ppp0="eth0" <comment>(Specify your ethernet interface)</comment>
237plugins_ppp0=( "pppoe" ) 244plugins_ppp0=( "pppoe" )
238username_ppp0='user' 245username_ppp0='user'
239password_ppp0='password' 246password_ppp0='password'
247pppd_ppp0=(
248 "noauth"
249 "defaultroute"
250 "usepeerdns"
251 "holdoff 3"
252 "child-timeout 60"
253 "lcp-echo-interval 15"
254 "lcp-echo-failure 3"
255 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
256)
257
258depend_ppp0() {
259 need net.eth0
260}
240</pre> 261</pre>
241 262
242<p> 263<p>
243You can also set your password in <path>/etc/ppp/pap-secrets</path>. 264You can also set your password in <path>/etc/ppp/pap-secrets</path>.
244</p> 265</p>
245 266
246<pre caption="Sample /etc/ppp/pap-secrets"> 267<pre caption="Sample /etc/ppp/pap-secrets">
247<comment># The * is important</comment> 268<comment># The * is important</comment>
248"username" * "password" 269"username" * "password"
249</pre> 270</pre>
271
272<p>
273If you use PPPoE with a USB modem you'll need to emerge <c>br2684ctl</c>. Please
274read <path>/usr/portage/net-dialup/speedtouch-usb/files/README</path> for
275information on how to properly configure it.
276</p>
250 277
251<impo> 278<impo>
252Please carefully read the section on ADSL and PPP in 279Please carefully read the section on ADSL and PPP in
253<path>/etc/conf.d/net.example</path>. It contains many more detailed 280<path>/etc/conf.d/net.example</path>. It contains many more detailed
254explanations of all the settings your particular PPP setup will likely need. 281explanations of all the settings your particular PPP setup will likely need.

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

  ViewVC Help
Powered by ViewVC 1.1.20