diff options
Diffstat (limited to 'zh_CN.GB2312/books')
-rw-r--r-- | zh_CN.GB2312/books/handbook/mirrors/chapter.sgml | 18 | ||||
-rw-r--r-- | zh_CN.GB2312/books/handbook/ppp-and-slip/chapter.sgml | 101 |
2 files changed, 22 insertions, 97 deletions
diff --git a/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml b/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml index f592b62a17..7b26b6f2e2 100644 --- a/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Chinese Documentation Project - Original Revision: 1.448 + Original Revision: 1.449 $FreeBSD$ --> @@ -2697,6 +2697,14 @@ doc/zh_*</screen> <variablelist> <varlistentry> + <term>RELENG_7_1_0_RELEASE</term> + + <listitem> + <para>FreeBSD 7.1</para> + </listitem> + </varlistentry> + + <varlistentry> <term>RELENG_7_0_0_RELEASE</term> <listitem> @@ -2705,6 +2713,14 @@ doc/zh_*</screen> </varlistentry> <varlistentry> + <term>RELENG_6_4_0_RELEASE</term> + + <listitem> + <para>FreeBSD 6.4</para> + </listitem> + </varlistentry> + + <varlistentry> <term>RELENG_6_3_0_RELEASE</term> <listitem> 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 80cfe83aa8..a5d827f31e 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.183 + Original Revision: 1.185 $FreeBSD$ --> @@ -2256,15 +2256,10 @@ tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 </step> <step> - <para>在 FreeBSD 5.0 之前的版本中, 请务必确保 - <filename>/etc/host.conf</filename> 中的 <literal>hosts</literal> 在 - <literal>bind</literal> 之前出现。 - 从 FreeBSD 5.0 开始, 系统转而使用 - <filename>/etc/nsswitch.conf</filename> 文件, - 请确认在这个文件中 <option>hosts</option> 一行里, - <literal>files</literal> 出现在 - <literal>dns</literal> 之前。 如果没有这些参数, - 可能会发生很奇怪的事情。</para> + <para>请确保在您的 <filename>/etc/nsswitch.conf</filename> + 中的 <literal>hosts:</literal> 小节里面, <literal>files</literal> 先于 + <literal>dns</literal> 出现。 如果不是这样的话, + 可能会产生一些不希望的现象。</para> </step> <step> @@ -2806,92 +2801,6 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp</programlisting 子网的路由, 而且还需要配置将哪些静态路由传给其它的路由器。 所以一些专家意见和问题解答对于使基于静态路由表的路由正常工作很有必要。</para> </sect4> - - <sect4> - <title>运行<application>&gated;</application></title> - <indexterm> - <primary><application>&gated;</application></primary> - </indexterm> - - <note> - <para><application>&gated;</application>现在是一个私有软件, - 因而您无法得到其源代码 (在 - <ulink url="http://www.gated.org/">&gated;</ulink> 上提供了进一步的详情)。 - 这一节内容主要是为了确保与仍在使用旧版软件的用户兼容而保留。</para> - </note> - - <para>另一种避免静态路由所造成的头疼的方法, 是在您的 FreeBSD - SLIP 服务器上安装 <application>&gated;</application>, - 并配置它使用合适的路由协议 - (RIP/OSPF/BGP/EGP) 来告诉其他路由器您的 SLIP - 子网的存在。 您需要编写一个 <filename>/etc/gated.conf</filename> - 文件来配置 <application>&gated;</application>; - 这里是 FreeBSD SLIP 服务器作者编写的一个例子:</para> - - <programlisting># -# gated configuration file for dc.dsu.edu; for gated version 3.5alpha5 -# Only broadcast RIP information for xxx.xxx.yy out the ed Ethernet interface -# -# -# tracing options -# -traceoptions "/var/tmp/gated.output" replace size 100k files 2 general ; - -rip yes { - interface sl noripout noripin ; - interface ed ripin ripout version 1 ; - traceoptions route ; -} ; - -# -# Turn on a bunch of tracing info for the interface to the kernel: -kernel { - traceoptions remnants request routes info interface ; -} ; - -# -# Propagate the route to xxx.xxx.yy out the Ethernet interface via RIP -# - -export proto rip interface ed { - proto direct { - <replaceable>xxx.xxx.yy</replaceable> mask 255.255.252.0 metric 1; # SLIP connections - } ; -} ; - -# -# Accept routes from RIP via ed Ethernet interfaces - -import proto rip interface ed { - all ; -} ;</programlisting> - - <indexterm><primary>RIP</primary></indexterm> - <para>上面这个 <filename>gated.conf</filename> 示例文件, - 将把关于 SLIP 子网 - <replaceable>xxx.xxx.yy</replaceable> 的信息, 通过 RIP 广播到 - Ethernet 上; 如果您使用了的 Ethernet 驱动不是 - <devicename>ed</devicename>, 则需要把 <devicename>ed</devicename> - 改为相应的网络接口。 这个例子也配置了将跟踪信息写到 - <filename>/var/tmp/gated.output</filename> - 以提供调试 <application>&gated;</application> 活动的信息; - 当然, 如果 - <application>&gated;</application> 工作正常, - 就可以关闭这些跟踪信息了。 您需要把 <replaceable>xxx.xxx.yy</replaceable> - 改成您自己的 SLIP 子网 (一定要同时修改 <literal>proto direct</literal> - 小节)。</para> - - <para>一旦在系统中安装并配置了 - <application>&gated;</application>, - 就可以告诉 FreeBSD 启动脚本来运行 - <application>&gated;</application> 而不是 - <application>routed</application> 了。 - 最简单的办法,是配置 <varname>router</varname> 和 - <varname>router_flags</varname> 两个 - <filename>/etc/rc.conf</filename> 变量。 - 请参见 <application>&gated;</application> 的联机手册, - 以了解更多关于命令行参数的信息。</para> - </sect4> </sect3> </sect2> </sect1> |