aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml')
-rw-r--r--zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml270
1 files changed, 196 insertions, 74 deletions
diff --git a/zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml b/zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml
index dbcb7bb8da..e3830ceaa6 100644
--- a/zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml
+++ b/zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml
@@ -2,7 +2,7 @@
The FreeBSD Documentation Project
The FreeBSD Simplified Chinese Project
- Original Revision: 1.177
+ Original Revision: 1.179
$FreeBSD$
-->
@@ -233,7 +233,11 @@
<sect3>
<title><application>PPP</application>自动化配置</title>
- <indexterm><primary>PPP</primary><secondary>configuration</secondary></indexterm>
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>configuration</secondary>
+ </indexterm>
+
<para> <command>ppp</command>和<command>pppd</command>(PPP的内核级实现)
都使用<filename>/etc/ppp</filename>目录中的配置文件。 用户级 PPP
的例子可以在 <filename>/usr/share/examples/ppp/</filename> 中找到。</para>
@@ -245,7 +249,11 @@
<sect4 id="userppp-staticIP">
<title>PPP和静态IP地址</title>
- <indexterm><primary>PPP</primary><secondary>with static IP addresses</secondary></indexterm>
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>with static IP addresses</secondary>
+ </indexterm>
+
<para>您需要编辑配置文件<filename>/etc/ppp/ppp.conf</filename>, 如下所示。</para>
<note>
@@ -256,7 +264,7 @@
<programlisting>1 default:
2 set log Phase Chat LCP IPCP CCP tun command
3 ident user-ppp VERSION (built COMPILATIONDATE)
-4 set device /dev/cuaa0
+4 set device /dev/cuad0
5 set speed 115200
6 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
7 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
@@ -305,8 +313,11 @@
<listitem>
<para>标明modem要连接的端口号。 <devicename>COM1</devicename> 对应的设备是
- <filename>/dev/cuaa0</filename>, 而 <devicename>COM2</devicename>
- 对应的则是 <filename>/dev/cuaa1</filename>。</para>
+ <filename>/dev/cuad0</filename>(或者 &os;&nbsp;5.X 下
+ <filename>/dev/cuaa0</filename>)
+ 而 <devicename>COM2</devicename>
+ 对应的则是 <filename>/dev/cuad1</filename>(或者
+ <filename>/dev/cuaa1</filename>)。</para>
</listitem>
</varlistentry>
@@ -322,7 +333,11 @@
<varlistentry>
<term>行 6 &amp; 7:</term>
- <indexterm><primary>PPP</primary><secondary>user PPP</secondary></indexterm>
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>user PPP</secondary>
+ </indexterm>
+
<listitem>
<para>拨号字符串。 用户级 PPP 使用一种与 &man.chat.8;程序相似的语法。
请参考联机手册了解这种语言的相关信息。</para>
@@ -472,8 +487,16 @@ protocol: ppp</screen>
<sect4 id="userppp-dynamicIP">
<title>PPP和动态IP地址</title>
- <indexterm><primary>PPP</primary><secondary>with dynamic IP addresses</secondary></indexterm>
- <indexterm><primary>IPCP</primary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>with dynamic IP addresses</secondary>
+ </indexterm>
+
+ <indexterm>
+ <primary>IPCP</primary>
+ </indexterm>
+
<para>如果ISP没给您指定静态的IP地址, <command>ppp</command>要被配置成能够与对方协商确定本地和远程地址。
要完成这项工作, 先要<quote>猜</quote>一个IP地址, 然后允许
<command>ppp</command>在连接后使用IP配置协议(IPCP)进行正确配置。
@@ -542,8 +565,12 @@ protocol: ppp</screen>
<sect4>
<title>接收拨入</title>
- <indexterm><primary>PPP</primary><secondary>receiving
- incoming calls</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>receiving incoming calls</secondary>
+ </indexterm>
+
<para>当要配置 <application>ppp</application>接受来自LAN上的
拨入时, 您需要决定是否将包转给LAN。 如果是的话, 您就必须从 LAN
子网中给对方分配一个IP, 需要在文件 <filename>/etc/ppp/ppp.conf</filename>
@@ -582,7 +609,7 @@ protocol: ppp</screen>
<para><command>ppp</command> 命令通常必须以 <username>root</username>
用户的身份运行。 如果希望以普通用户的身份启动 <command>ppp</command>
服务 (就像下面描述的那样), 就必须把此用户加入
- <username>network</username> 组, 使其获得运行 <command>ppp</command>
+ <groupname>network</groupname> 组, 使其获得运行 <command>ppp</command>
的权限。</para>
<para>您还需要使用<command>allow</command>命令使用户能访问配置文
@@ -595,7 +622,10 @@ protocol: ppp</screen>
<sect4>
<title>动态IP用户的PPP Shell</title>
- <indexterm><primary>PPP shells</primary></indexterm>
+
+ <indexterm>
+ <primary>PPP shells</primary>
+ </indexterm>
<para>创建一个名为<filename>/etc/ppp/ppp-shell</filename>文件, 加入以下内容:</para>
<programlisting>#!/bin/sh
@@ -637,7 +667,10 @@ exec /usr/sbin/ppp -direct $IDENT</programlisting>
<sect4>
<title>静态IP用户的Shell </title>
- <indexterm><primary>PPP shells</primary></indexterm>
+
+ <indexterm>
+ <primary>PPP shells</primary>
+ </indexterm>
<para>像上面那样创建<filename>ppp-shell</filename>文件,
为每个静态分配IP用户创建一个到 <filename>ppp-shell</filename>的
@@ -717,11 +750,18 @@ mary:
<sect4 id="userppp-mgetty">
<title><command>mgetty</command>和AutoPPP</title>
+
<indexterm>
- <primary><command>mgetty</command></primary>
- </indexterm>
- <indexterm><primary>AutoPPP</primary></indexterm>
- <indexterm><primary>LCP</primary></indexterm>
+ <primary><command>mgetty</command></primary>
+ </indexterm>
+
+ <indexterm>
+ <primary>AutoPPP</primary>
+ </indexterm>
+
+ <indexterm>
+ <primary>LCP</primary>
+ </indexterm>
<para>在配置和编译<command>mgetty</command>
时启用 <literal>AUTO_PPP</literal>选项
@@ -768,9 +808,19 @@ exec /usr/sbin/ppp -direct pap$IDENT</programlisting>
<sect4>
<title>MS Extensions</title>
- <indexterm><primary>DNS</primary></indexterm>
- <indexterm><primary>NetBIOS</primary></indexterm>
- <indexterm><primary>PPP</primary><secondary>Microsoft extensions</secondary></indexterm>
+
+ <indexterm>
+ <primary>DNS</primary>
+ </indexterm>
+
+ <indexterm>
+ <primary>NetBIOS</primary>
+ </indexterm>
+
+ <indexterm>
+ <primary>PPP</primary><secondary>Microsoft extensions</secondary>
+ </indexterm>
+
<para>可以配置PPP以提供DNS和NetBIOS域名服务器地址。</para>
<para>要在 PPP 1.x 版本中启用这些扩展, 需要在
@@ -873,12 +923,16 @@ set nbns 203.14.100.5</programlisting>
<sect3 id="userppp-nat">
<title>使用PPP网络地址翻译</title>
- <indexterm><primary>PPP</primary><secondary>NAT</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>NAT</secondary>
+ </indexterm>
<para>PPP 可以使用内建的 NAT, 而无需内核支持。
您可以在 <filename>/etc/ppp/ppp.conf</filename> 中加入如下配置来启用它:</para>
- <programlisting>nat enable yes</programlisting>
+ <programlisting>nat enable yes</programlisting>
<para> PPP NAT也可以使用命令行选项
<literal>-nat</literal>启动。 在
@@ -886,20 +940,23 @@ set nbns 203.14.100.5</programlisting>
<literal>ppp_nat</literal> 项, 并默认启用。</para>
<para>如果您使用了这个特性, 您还会发现在
-<filename>/etc/ppp/ppp.conf</filename>中以下
- 选项对于启用incoming connections forwarding是有用的:</para>
+ <filename>/etc/ppp/ppp.conf</filename>中以下
+ 选项对于启用incoming connections forwarding是有用的:</para>
- <programlisting>nat port tcp 10.0.0.2:ftp ftp
+ <programlisting>nat port tcp 10.0.0.2:ftp ftp
nat port tcp 10.0.0.2:http http</programlisting>
<para>或者完全不信任外来的请求</para>
- <programlisting>nat deny_incoming yes</programlisting>
+ <programlisting>nat deny_incoming yes</programlisting>
</sect3>
<sect3 id="userppp-final">
<title>最后的系统配置</title>
- <indexterm><primary>PPP</primary><secondary>configuration</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary><secondary>configuration</secondary>
+ </indexterm>
<para>现在您已配置了<command>ppp</command>, 但在真正工作之前还有一些事情要做。
即修改 <filename>/etc/rc.conf</filename>。</para>
@@ -931,13 +988,15 @@ ifconfig_tun0=</programlisting>
</note>
<para>务必在
- <filename>/etc/rc.conf</filename> 中, 把路由程序设置为 <literal>NO</literal>:</para>
+ <filename>/etc/rc.conf</filename> 中,
+ 把路由程序设置为 <literal>NO</literal>:</para>
<programlisting>router_enable="NO"</programlisting>
<indexterm>
- <primary><application>routed</application></primary>
- </indexterm>
+ <primary><application>routed</application></primary>
+ </indexterm>
+
<para>不启动 <command>routed</command> 服务程序非常重要, 因为
<command>routed</command> 总会删掉由 <command>ppp</command>
所建立的默认路由。</para>
@@ -965,7 +1024,10 @@ ifconfig_tun0=</programlisting>
3 add 0 0 HISADDR
4 !bg sendmail -bd -q30m</programlisting>
- <indexterm><primary>SMTP</primary></indexterm>
+ <indexterm>
+ <primary>SMTP</primary>
+ </indexterm>
+
<para>如果您不喜欢这样做, 可以设立一个
<quote>dfilter</quote> 以阻止 SMTP 传输。
参考相关文件了解更多细节。</para>
@@ -1080,7 +1142,11 @@ ifconfig_tun0=</programlisting>
<sect2>
<title>设立内核级PPP</title>
- <indexterm><primary>PPP</primary><secondary>kernel PPP</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>kernel PPP</secondary>
+ </indexterm>
<para>在开始设置内核级PPP时, 需要确信<command>pppd</command>已经被定位在<filename>/usr/sbin</filename> 中
且存在<filename>/etc/ppp</filename>目录。</para>
@@ -1093,7 +1159,11 @@ ifconfig_tun0=</programlisting>
您要通过PPP串行线或modem线把您的机器连接到互联网上。</para>
</listitem>
- <indexterm><primary>PPP</primary><secondary>server</secondary></indexterm>
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>server</secondary>
+ </indexterm>
+
<listitem>
<para>作为<quote>服务器</quote> &mdash;计算机已经位于网络上, 且被用于通过PPP与其它计算机连接。</para>
</listitem>
@@ -1120,8 +1190,16 @@ ifconfig_tun0=</programlisting>
</sect2info>
<title>使用<command>pppd</command>作为客户端</title>
- <indexterm><primary>PPP</primary><secondary>client</secondary></indexterm>
- <indexterm><primary>Cisco</primary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>client</secondary>
+ </indexterm>
+
+ <indexterm>
+ <primary>Cisco</primary>
+ </indexterm>
+
<para>下面这个 <filename>/etc/ppp/options</filename>选项文件能够被用来与CISCO终端服务器的
PPP线连接。</para>
@@ -1133,10 +1211,10 @@ noipdefault # remote PPP server must supply your IP address
passive # wait for LCP packets
domain ppp.foo.com # put your domain name here
-:&lt;remote_ip&gt; # put the IP of remote PPP host here
+:<replaceable>remote_ip</replaceable> # put the IP of remote PPP host here
# it will be used to route packets via PPP link
# if you didn't specified the noipdefault option
- # change this line to &lt;local_ip&gt;:&lt;remote_ip&gt;
+ # change this line to <replaceable>local_ip</replaceable>:<replaceable>remote_ip</replaceable>
defaultroute # put this if you want that PPP server will be your
# default router</programlisting>
@@ -1191,7 +1269,10 @@ ifconfig ppp0 delete
kermit -y /etc/ppp/kermit.dial
pppd /dev/tty01 19200</programlisting>
- <indexterm><primary>Kermit</primary></indexterm>
+ <indexterm>
+ <primary>Kermit</primary>
+ </indexterm>
+
<para><filename>/etc/ppp/kermit.dial</filename> 是一个 <application>Kermit</application>
脚本, 它会完成拨号, 并在远程主机上完成所有需要的身份验证过程
(这份文档的最后有一个脚本实例)。</para>
@@ -1217,7 +1298,8 @@ fi
kermit -y /etc/ppp/kermit.hup
/etc/ppp/ppptest</programlisting>
- <para>通过执行<filename>/usr/etc/ppp/ppptest</filename>, 看看<command>pppd</command> 是否仍在运行:</para>
+ <para>通过执行<filename>/usr/etc/ppp/ppptest</filename>,
+ 看看<command>pppd</command> 是否仍在运行:</para>
<programlisting>#!/bin/sh
pid=`pgrep pppd`
@@ -1259,7 +1341,7 @@ exit</programlisting>
<para><filename>/etc/ppp/options</filename>:</para>
- <programlisting>/dev/cuaa1 115200
+ <programlisting>/dev/cuad1 115200
crtscts # enable hardware flow control
modem # modem control line
@@ -1268,12 +1350,12 @@ noipdefault # remote PPP serve must supply your IP address
# if the remote host doesn't send your IP during
# IPCP negotiation, remove this option
passive # wait for LCP packets
-domain &lt;your.domain&gt; # put your domain name here
+domain <replaceable>your.domain</replaceable> # put your domain name here
: # put the IP of remote PPP host here
# it will be used to route packets via PPP link
# if you didn't specified the noipdefault option
- # change this line to &lt;local_ip&gt;:&lt;remote_ip&gt;
+ # change this line to <replaceable>local_ip</replaceable>:<replaceable>remote_ip</replaceable>
defaultroute # put this if you want that PPP server will be
# your default router</programlisting>
@@ -1284,9 +1366,9 @@ defaultroute # put this if you want that PPP server will be
<para>以下的内容应该放在一行内。</para>
</note>
- <programlisting>ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDT&lt;phone.number&gt;
- CONNECT "" TIMEOUT 10 ogin:-\\r-ogin: &lt;login-id&gt;
- TIMEOUT 5 sword: &lt;password&gt;</programlisting>
+ <programlisting>ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDT<replaceable>phone.number</replaceable>
+ CONNECT "" TIMEOUT 10 ogin:-\\r-ogin: <replaceable>login-id</replaceable>
+ TIMEOUT 5 sword: <replaceable>password</replaceable></programlisting>
<para>一旦这些被安装且修改正确, 您所要做的就是运行<command>pppd</command>, 就像这样:</para>
@@ -1519,7 +1601,10 @@ exit 1
</sect1info>
<title><acronym>PPP</acronym> 连接故障排除</title>
- <indexterm><primary>PPP</primary><secondary>troubleshooting</secondary></indexterm>
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>troubleshooting</secondary>
+ </indexterm>
<para>本节将讲述通过modem连接使用PPP时可能出现的问题。
例如, 您可能需要确切地知道您拨入的系统会出现一个怎样的命令行提示符。
@@ -1543,7 +1628,9 @@ exit 1
您就会在 <devicename>sio1</devicename> 或 <devicename>COM2</devicename>
上找到它。 如果 modem 设备连接在 <devicename>sio1</devicename>
接口 (在 DOS 中称为<devicename>COM2</devicename>),
- 那么您的 modem 将会是 <filename>/dev/cuaa1</filename>。</para>
+ 那么您的 modem 将会是 <filename>/dev/cuad1</filename>
+ (或者 &os;nbsp;5.X 下的
+ <filename>/dev/cuaa1</filename>)。</para>
</sect2>
<sect2>
@@ -1560,10 +1647,11 @@ exit 1
<para>现在我们已经打开了<command>ppp</command>。</para>
- <screen>ppp ON example&gt; <userinput>set device <filename>/dev/cuaa1</filename></userinput></screen>
+ <screen>ppp ON example&gt; <userinput>set device <filename>/dev/cuad1</filename></userinput></screen>
<para>设置modem设备, 在本例子中是
- <devicename>cuaa1</devicename>。</para>
+ <devicename>cuad1</devicename> (或者 &os;&nbsp;5.X 下的
+ <filename>/dev/cuaa1</filename>)。</para>
<screen>ppp ON example&gt; <userinput>set speed 115200</userinput></screen>
@@ -1579,7 +1667,7 @@ exit 1
<para>切换到 <quote>终端</quote>样我们就能手动地控制这台 modem 的模式。</para>
- <programlisting>deflink: Entering terminal mode on <filename>/dev/cuaa1</filename>
+ <programlisting>deflink: Entering terminal mode on <filename>/dev/cuad1</filename>
type '~h' for help</programlisting>
<screen><userinput>at</userinput>
@@ -1733,7 +1821,12 @@ nameserver <replaceable>y.y.y.y</replaceable></programlisting>
</sect1info>
<title>使用基于以太网的PPP(PPPoE)</title>
- <indexterm><primary>PPP</primary><secondary>over Ethernet</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>over Ethernet</secondary>
+ </indexterm>
+
<indexterm>
<primary>PPPoE</primary>
<see>PPP, over Ethernet (以太网上的 PPP)</see>
@@ -1840,10 +1933,12 @@ ppp_profile="name_of_service_provider"</programlisting>
<sect2 id="ppp-3com">
- <title>带有一个&tm.3com; <trademark class="registered">HomeConnect</trademark>ADSL Modem的PPPOE双重连接</title>
+ <title>带有一个&tm.3com;
+ <trademark class="registered">HomeConnect</trademark>
+ ADSL Modem的PPPOE双重连接</title>
<para>这个 modem 不遵循 <ulink
- url="http://www.faqs.org/rfcs/rfc2516.html">RFC 2516</ulink>
+ url="http://www.faqs.org/rfcs/rfc2516.html">RFC 2516</ulink>
(<emphasis>A Method for transmitting PPP over Ethernet
(PPPoE)</emphasis>, 其作者为 L. Mamakos、 K. Lidl、 J. Evarts、
D. Carrel、 D. Simone 以及 R. Wheeler)。
@@ -1870,7 +1965,12 @@ ppp_profile="name_of_service_provider"</programlisting>
<sect1 id="pppoa">
<title>使用 ATM 上的 <application>PPP</application> (PPPoA)</title>
- <indexterm><primary>PPP</primary><secondary>over ATM</secondary></indexterm>
+
+ <indexterm>
+ <primary>PPP</primary>
+ <secondary>over ATM</secondary>
+ </indexterm>
+
<indexterm>
<primary>PPPoA</primary>
<see>基于ATM的PPP</see>
@@ -2123,17 +2223,17 @@ tun0: flags=8051&lt;UP,POINTOPOINT,RUNNING,MULTICAST&gt; mtu 1500
<para>首先, 您需要确认调制解调器所连接的串口。
许多人会设置一个符号连接, 例如
<filename>/dev/modem</filename>, 用以指向实际的设备名,
- <filename>/dev/cuaaN</filename> (或在 &os;&nbsp;6.X 下是
- <filename>/dev/cuadN</filename>)。 这样您就可以对实际的设备名进行抽象,
+ <filename>/dev/cuadN</filename> (或在 &os;&nbsp;5.X 下是
+ <filename>/dev/cuaaN</filename>)。 这样您就可以对实际的设备名进行抽象,
以备调制解调器换到其他串口时方便调整之用。
不然, 在系统中修改一大堆 <filename>/etc</filename> 下的文件以及
<filename>.kermrc</filename> 将是非常麻烦的事情!</para>
<note>
- <para><filename>/dev/cuaa0</filename> (或 &os;&nbsp;6.X
- 中的 <filename>/dev/cuad0</filename>) 对应
- <devicename>COM1</devicename>, 而 <filename>cuaa1</filename>
- (或 <filename>/dev/cuad1</filename>) 则对应
+ <para><filename>/dev/cuad0</filename> (或 &os;&nbsp;5.X
+ 下的 <filename>/dev/cuaa0</filename>) 对应
+ <devicename>COM1</devicename>, 而 <filename>cuad1</filename>
+ (或 <filename>/dev/cuaa1</filename>) 则对应
<devicename>COM2</devicename>, 等等。</para>
</note>
@@ -2223,7 +2323,12 @@ nameserver 128.32.136.12</programlisting>
<sect3>
<title>创建一个SLIP连接</title>
- <indexterm><primary>SLIP</primary><secondary>connecting with</secondary></indexterm>
+
+ <indexterm>
+ <primary>SLIP</primary>
+ <secondary>connecting with</secondary>
+ </indexterm>
+
<procedure>
<step>
<para>在命令提示符之后输入 <command>slip</command> 进行拨号,
@@ -2247,8 +2352,8 @@ output silvia\x0d, input 10 Password:, if failure stop, -
output ***\x0d, echo \x0aCONNECTED\x0a</programlisting>
<para>当然, 您还需要修改用户名和口令来满足实际需要。
- 完成这些操作之后, 只需在 <application>Kermit</application> 提示符之后输入
- <command>slip</command> 就可以连接了。</para>
+ 完成这些操作之后, 只需在 <application>Kermit</application>
+ 提示符之后输入 <command>slip</command> 就可以连接了。</para>
<note>
<para>将密码以纯文本的形式存放在文件系统无论如何都是个 <emphasis>坏</emphasis> 主意。
@@ -2352,7 +2457,11 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
<sect2 id="slips">
<title>设置SLIP服务器</title>
- <indexterm><primary>SLIP</primary><secondary>server</secondary></indexterm>
+
+ <indexterm>
+ <primary>SLIP</primary>
+ <secondary>server</secondary>
+ </indexterm>
<para>本文提供了在 FreeBSD 上设置 SLIP 服务,
也就是如何配置您的系统, 使其能在远程 SLIP
@@ -2423,8 +2532,8 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
<programlisting>/etc/sliphome/slip.login 0 19200 Shelmerg dc-slip sl-helmer 0xfffffc00 autocomp</programlisting>
<para>如果一切顺利
- <filename>/etc/sliphome/slip.login</filename> 将在 <command>sliplogin</command>
- 绑定的 SLIP 接口上发出
+ <filename>/etc/sliphome/slip.login</filename> 将在
+ <command>sliplogin</command> 绑定的 SLIP 接口上发出
<command>ifconfig</command> (前述的例子中是 SLIP 接口
0, 这是 <filename>slip.login</filename> 的第一个参数),
以设置本地 IP 地址 (<hostid>dc-slip</hostid>)、 远程 IP 地址
@@ -2433,7 +2542,8 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
以及任何其他标志 (<literal>autocomp</literal>)。
如果发生错误, <command>sliplogin</command> 通常会通过
<application>syslogd</application> 的 daemon facility
- 记下有用的信息, 前者会把这些信息保存到 <filename>/var/log/messages</filename>
+ 记下有用的信息, 前者会把这些信息保存到
+ <filename>/var/log/messages</filename>
(参见 &man.syslogd.8; 和 &man.syslog.conf.5; 以及
<filename>/etc/syslog.conf</filename> 的联机手册, 以了解
<application>syslogd</application> 在记录什么,
@@ -2443,8 +2553,15 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
<sect3>
<title>内核配置</title>
- <indexterm><primary>kernel</primary><secondary>configuration</secondary></indexterm>
- <indexterm><primary>SLIP</primary></indexterm>
+
+ <indexterm>
+ <primary>kernel</primary>
+ <secondary>configuration</secondary>
+ </indexterm>
+
+ <indexterm>
+ <primary>SLIP</primary>
+ </indexterm>
<para>&os; 的默认内核 (<filename>GENERIC</filename>)
提供了 SLIP (&man.sl.4;) 支持; 使用定制的内核时,
@@ -2597,11 +2714,16 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp</programlisting
IP 节点对 SLIP 客户端 IP 地址进行 ARP 请求时,
SLIP 服务器会以自已的以太网MAC地址作为回应。</para>
- <indexterm><primary>Ethernet (以太网)</primary><secondary>MAC address (MAC 地址)</secondary></indexterm>
+ <indexterm>
+ <primary>Ethernet (以太网)</primary>
+ <secondary>MAC address (MAC 地址)</secondary>
+ </indexterm>
+
<para>当使用以上的例子时, 一定要将
- 以太网MAC地址(<hostid role="mac">00:11:22:33:44:55</hostid>)替换成您系统网卡的MAC地址, 否则<quote>ARP代理</quote>将
- 完全无法工作!您可以查看<command>netstat -i</command>输出结果以取得以太网MAC地址;
- 输出的第二行应该是这样:</para>
+ 以太网MAC地址 (<hostid role="mac">00:11:22:33:44:55</hostid>)
+ 替换成您系统网卡的MAC地址, 否则<quote>ARP代理</quote>
+ 将完全无法工作! 您可以查看 <command>netstat -i</command>
+ 输出结果以取得以太网 MAC 地址; 输出的第二行应该是这样:</para>
<screen>ed0 1500 &lt;Link&gt;0.2.c1.28.5f.4a 191923 0 129457 0 116</screen>