aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml')
-rw-r--r--zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml68
1 files changed, 62 insertions, 6 deletions
diff --git a/zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml b/zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml
index 944c348091..359a2be96a 100644
--- a/zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml
+++ b/zh_CN.GB2312/books/handbook/advanced-networking/chapter.sgml
@@ -2,7 +2,7 @@
The FreeBSD Documentation Project
The FreeBSD Chinese Documentation Project
- Original revision: 1.404
+ Original revision: 1.406
$FreeBSD$
-->
@@ -4661,7 +4661,12 @@ round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms</screen>
<itemizedlist>
<listitem>
- <para>从您的上一级提供商那里获得 IPv6 网络。与您的互联网提供商讨论以求指导。</para>
+ <para>咨询你的互联网服务提供商是否提供 IPv6。</para>
+ </listitem>
+
+ <listitem>
+ <para><ulink url="http://www.sixxs.net">SixXS</ulink>
+ 向全球范围提供通道。</para>
</listitem>
<listitem>
@@ -4997,7 +5002,58 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
<para>这样就可以使用 <acronym>CARP</acronym> 功能了,
一些具体的参数, 可以通过一系列 <command>sysctl</command>
- <acronym>OID</acronym> 来调整。 设备可以通过 <command>ifconfig</command> 命令来加载:</para>
+ <acronym>OID</acronym> 来调整。</para>
+
+ <informaltable frame="none" pgwide="1">
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>OID</entry>
+ <entry>描述</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry><varname>net.inet.carp.allow</varname></entry>
+ <entry>接受进来的 <acronym>CARP</acronym> 包。
+ 默认启用。</entry>
+ </row>
+
+ <row>
+ <entry><varname>net.inet.carp.preempt</varname></entry>
+ <entry>当主机中有一个 <acronym>CARP</acronym> 网络接口失去响应时,
+ 这个选项将停止这台主机上所有的 <acronym>CARP</acronym>
+ 接口。 默认禁用。</entry>
+ </row>
+
+ <row>
+ <entry><varname>net.inet.carp.log</varname></entry>
+ <entry>当值为 <literal>0</literal> 表示禁止记录所有日志。
+ 值为 <literal>1</literal> 表示记录损坏的 <acronym>CARP</acronym>
+ 包。任何大于 <literal>1</literal> 表示记录 <acronym>CARP</acronym>
+ 网络接口的状态变化。默认值为 <literal>1</literal>。</entry>
+ </row>
+
+ <row>
+ <entry><varname>net.inet.carp.arpbalance</varname></entry>
+ <entry>使用 <acronym>ARP</acronym> 均衡本地网络流量。
+ 默认禁用。</entry>
+ </row>
+
+ <row>
+ <entry><varname>net.inet.carp.suppress_preempt</varname></entry>
+ <entry>此只读 <acronym>OID</acronym> 显示抑制抢占的状态。
+ 如果一个接口上的连接失去响应, 则抢占会被抑制。
+ 当这个变量的值为 <literal>0</literal> 时,表示抢占未被抑制。
+ 任何问题都会使 <acronym>OID</acronym> 递增。</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+
+ <para><acronym>CARP</acronym> 设备可以通过 <command>ifconfig</command>
+ 命令来创建。</para>
<screen>&prompt.root; <userinput>ifconfig carp0 create</userinput></screen>
@@ -5030,7 +5086,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
<programlisting>hostname="hosta.example.org"
ifconfig_fxp0="inet 192.168.1.3 netmask 255.255.255.0"
cloned_interfaces="carp0"
-ifconfig_carp0="vhid 1 pass testpast 192.168.1.50/24"</programlisting>
+ifconfig_carp0="vhid 1 pass testpass 192.168.1.50/24"</programlisting>
<para>在 <hostid>hostb.example.org</hostid> 上,
对应的 <filename>rc.conf</filename> 配置则是:</para>
@@ -5067,8 +5123,8 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"</programlistin
<para>默认的 &os; 内核 <emphasis>可能</emphasis> 启用了主机间抢占。
如果是这样的话,
<hostid>provider.example.org</hostid> 可能在正式的内容服务器恢复时不释放
- <acronym>IP</acronym> 地址。 此时, 管理员可以
- <quote>提醒</quote> 一下接口。 具体做法是在
+ <acronym>IP</acronym> 地址。 此时, 管理员必须手工强制 IP
+ 回到原来内容服务器。 具体做法是在
<hostid>provider.example.org</hostid> 上使用下面的命令:</para>
<screen>&prompt.root; <userinput>ifconfig carp0 down && ifconfig carp0 up</userinput></screen>