⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pppoe.html

📁 FreeBSD操作系统的详细使用手册
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Using PPP over Ethernet (PPPoE)</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD Handbook" href="index.html" /><link rel="UP" title="PPP and SLIP" href="ppp-and-slip.html" /><link rel="PREVIOUS" title="Troubleshooting PPP Connections"href="ppp-troubleshoot.html" /><link rel="NEXT" title="Using PPP over ATM (PPPoA)" href="pppoa.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD Handbook</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="ppp-troubleshoot.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 21 PPP and SLIP</td><td width="10%" align="right" valign="bottom"><a href="pppoa.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="PPPOE" name="PPPOE">21.5 Using PPP over Ethernet(PPPoE)</a></h1><i class="AUTHORGROUP"><span class="CONTRIB">Contributed (fromhttp://node.to/freebsd/how-tos/how-to-freebsd-pppoe.html) by</span> Jim Mock.</i> <p>This section describes how to set up PPP over Ethernet (<acronymclass="ACRONYM">PPPoE</acronym>).</p><div class="SECT2"><h2 class="SECT2"><a id="AEN31044" name="AEN31044">21.5.1 Configuring the Kernel</a></h2><p>No kernel configuration is necessary for PPPoE any longer. If the necessary netgraphsupport is not built into the kernel, it will be dynamically loaded by <bclass="APPLICATION">ppp</b>.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN31048" name="AEN31048">21.5.2 Setting Up <ttclass="FILENAME">ppp.conf</tt></a></h2><p>Here is an example of a working <tt class="FILENAME">ppp.conf</tt>:</p><pre class="PROGRAMLISTING">default:  set log Phase tun command # you can add more detailed logging if you wish  set ifaddr 10.0.0.1/0 10.0.0.2/0name_of_service_provider:  set device PPPoE:<varclass="REPLACEABLE">xl1</var> # replace xl1 with your Ethernet device  set authname YOURLOGINNAME  set authkey YOURPASSWORD  set dial  set login  add default HISADDR</pre></div><div class="SECT2"><h2 class="SECT2"><a id="AEN31055" name="AEN31055">21.5.3 Running <bclass="APPLICATION">ppp</b></a></h2><p>As <tt class="USERNAME">root</tt>, you can run:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">ppp -ddial name_of_service_provider</kbd></pre></div><div class="SECT2"><h2 class="SECT2"><a id="AEN31063" name="AEN31063">21.5.4 Starting <bclass="APPLICATION">ppp</b> at Boot</a></h2><p>Add the following to your <tt class="FILENAME">/etc/rc.conf</tt> file:</p><pre class="PROGRAMLISTING">ppp_enable="YES"ppp_mode="ddial"ppp_nat="YES"   # if you want to enable nat for your local network, otherwise NOppp_profile="name_of_service_provider"</pre></div><div class="SECT2"><h2 class="SECT2"><a id="AEN31069" name="AEN31069">21.5.5 Using a PPPoE ServiceTag</a></h2><p>Sometimes it will be necessary to use a service tag to establish your connection.Service tags are used to distinguish between different PPPoE servers attached to a givennetwork.</p><p>You should have been given any required service tag information in the documentationprovided by your ISP. If you cannot locate it there, ask your ISP's tech supportpersonnel.</p><p>As a last resort, you could try the method suggested by the <ahref="http://www.roaringpenguin.com/pppoe/" target="_top">Roaring Penguin PPPoE</a>program which can be found in the <a href="ports.html">ports collection</a>. Bear in mindhowever, this may de-program your modem and render it useless, so think twice beforedoing it. Simply install the program shipped with the modem by your provider. Then,access the <span class="GUIMENU">System</span> menu from the program. The name of yourprofile should be listed there. It is usually <span class="emphasis"><iclass="EMPHASIS">ISP</i></span>.</p><p>The profile name (service tag) will be used in the PPPoE configuration entry in <ttclass="FILENAME">ppp.conf</tt> as the provider part of the <tt class="COMMAND">setdevice</tt> command (see the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=ppp&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">ppp</span>(8)</span></a> manual page forfull details). It should look like this:</p><pre class="PROGRAMLISTING">set device PPPoE:<var class="REPLACEABLE">xl1</var>:<var class="REPLACEABLE">ISP</var></pre><p>Do not forget to change <var class="REPLACEABLE">xl1</var> to the proper device foryour Ethernet card.</p><p>Do not forget to change <var class="REPLACEABLE">ISP</var> to the profile you havejust found above.</p><p>For additional information, see:</p><ul><li><p><a href="http://renaud.waldura.com/doc/freebsd/pppoe/" target="_top">Cheaper Broadbandwith FreeBSD on DSL</a> by Renaud Waldura.</p></li><li><p><a href="http://www.ruhr.de/home/nathan/FreeBSD/tdsl-freebsd.html"target="_top">Nutzung von T-DSL und T-Online mit FreeBSD</a> by Udo Erdelhoff (inGerman).</p></li></ul></div><div class="SECT2"><h2 class="SECT2"><a id="PPP-3COM" name="PPP-3COM">21.5.6 PPPoE with a <spanclass="TRADEMARK">3Com</span>&reg; <span class="TRADEMARK">HomeConnect</span>&reg; ADSLModem Dual Link</a></h2><p>This modem does not follow <a href="http://www.faqs.org/rfcs/rfc2516.html"target="_top">RFC 2516</a> (<span class="emphasis"><i class="EMPHASIS">A Method fortransmitting PPP over Ethernet (PPPoE)</i></span>, written by L. Mamakos, K. Lidl, J.Evarts, D. Carrel, D. Simone, and R. Wheeler). Instead, different packet type codes havebeen used for the Ethernet frames. Please complain to <a href="http://www.3com.com/"target="_top">3Com</a> if you think it should comply with the PPPoE specification.</p><p>In order to make FreeBSD capable of communicating with this device, a sysctl must beset. This can be done automatically at boot time by updating <ttclass="FILENAME">/etc/sysctl.conf</tt>:</p><pre class="PROGRAMLISTING">net.graph.nonstandard_pppoe=1</pre><p>or can be done for immediate effect with the command <tt class="COMMAND">sysctlnet.graph.nonstandard_pppoe=1</tt>.</p><p>Unfortunately, because this is a system-wide setting, it is not possible to talk to anormal PPPoE client or server and a <span class="TRADEMARK">3Com</span>&reg; <spanclass="TRADEMARK">HomeConnect</span>&reg; ADSL Modem at the same time.</p></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="ppp-troubleshoot.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="pppoa.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Troubleshooting <acronymclass="ACRONYM">PPP</acronym> Connections</td><td width="34%" align="center" valign="top"><a href="ppp-and-slip.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Using <b class="APPLICATION">PPP</b> over ATM(PPPoA)</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting &#60;<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>&#62;.<br />For questions about this documentation, e-mail &#60;<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>&#62;.</small></p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -