1
0
Эх сурвалжийг харах

chapter06: Translate iproute2 instruction

Xi Ruoyao 7 жил өмнө
parent
commit
294b5e5858

+ 69 - 69
chapter06/iproute2.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
   <sect2 role="package">
     <title/>
     <title/>
 
 
-    <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
-    networking.</para>
+    <para>IPRoute2 软件包包含基于 IPv4 的基本和高级网络程序。</para>
 
 
     <segmentedlist>
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
       <segtitle>&buildtime;</segtitle>
@@ -39,22 +38,29 @@
   </sect2>
   </sect2>
 
 
   <sect2 role="installation">
   <sect2 role="installation">
-    <title>安装IPRoute2</title>
+    <title>安装 IPRoute2</title>
 
 
-    <para>The <command>arpd</command> program included in this package will not
+    <!--para>The <command>arpd</command> program included in this package will not
     be built since it is dependent on Berkeley DB, which is not installed in
     be built since it is dependent on Berkeley DB, which is not installed in
     LFS. However, a directory for <command>arpd</command> and a man page will still 
     LFS. However, a directory for <command>arpd</command> and a man page will still 
     be installed. Prevent this by running the commands below. 
     be installed. Prevent this by running the commands below. 
     If the <command>arpd</command> binary is needed,
     If the <command>arpd</command> binary is needed,
     instructions for compiling Berkeley DB can be found in the BLFS Book at
     instructions for compiling Berkeley DB can be found in the BLFS Book at
     <ulink url="&blfs-book;server/databases.html#db"/>.
     <ulink url="&blfs-book;server/databases.html#db"/>.
-    </para>
+    </para-->
+    <para>该软件包中的 <command>arpd</command> 程序依赖于 LFS 不安装的
+		Berkeley DB,因此不会被构建。然而,用于 <command>arpd</command>
+		的一个目录和它的 man 页面仍会被安装,运行下列命令以防止它们的安装。
+		如果需要使用 <command>arpd</command> 二进制程序,
+		参考 BLFS 手册中的 Berkeley DB 编译说明,它位于
+		<ulink url="&blfs-book;server/databases.html#db"/>。
+	</para>
 
 
 <screen><userinput remap="pre">sed -i /ARPD/d Makefile
 <screen><userinput remap="pre">sed -i /ARPD/d Makefile
 rm -fv man/man8/arpd.8</userinput></screen>
 rm -fv man/man8/arpd.8</userinput></screen>
 
 
-    <para>It is also necessary to disable building one module that 
-    requires <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
+	<para>还需要禁用一个需要
+		<ulink url="&blfs-book;postlfs/iptables.html"/> 的模块:</para>
 
 
 <screen><userinput remap="pre">sed -i 's/m_ipt.o//' tc/Makefile</userinput></screen>
 <screen><userinput remap="pre">sed -i 's/m_ipt.o//' tc/Makefile</userinput></screen>
 
 
@@ -62,7 +68,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
 
 
 <screen><userinput remap="make">make</userinput></screen>
 <screen><userinput remap="make">make</userinput></screen>
 
 
-    <para>This package does not have a working test suite.</para>
+    <para>该软件包没有能够工作的测试套件。</para>
 <!-- currently not useful, no tests actually run
 <!-- currently not useful, no tests actually run
     <para>This package comes with a test suite, but due to assumptions it makes,
     <para>This package comes with a test suite, but due to assumptions it makes,
     it is not possible to reliably run these tests from within the chroot
     it is not possible to reliably run these tests from within the chroot
@@ -87,10 +93,10 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <segtitle>安装的目录</segtitle>
       <segtitle>安装的目录</segtitle>
 
 
       <seglistitem>
       <seglistitem>
-        <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
-        nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
-        and tc</seg>
-        <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
+        <seg>bridge, ctstat (到 lnstat 的链接), genl, ifcfg, ifstat, ip, lnstat,
+        nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (到 lnstat 的链接), ss,
+        以及 tc</seg>
+        <seg>/etc/iproute2, /usr/lib/tc, 以及 /usr/share/doc/iproute2-&iproute2-version;,
         </seg>
         </seg>
       </seglistitem>
       </seglistitem>
     </segmentedlist>
     </segmentedlist>
@@ -103,7 +109,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="bridge">
       <varlistentry id="bridge">
         <term><command>bridge</command></term>
         <term><command>bridge</command></term>
         <listitem>
         <listitem>
-          <para>Configures network bridges</para>
+          <para>配置网桥</para>
           <indexterm zone="ch-system-iproute2 bridge">
           <indexterm zone="ch-system-iproute2 bridge">
             <primary sortas="b-bridge">bridge</primary>
             <primary sortas="b-bridge">bridge</primary>
           </indexterm>
           </indexterm>
@@ -113,7 +119,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="ctstat">
       <varlistentry id="ctstat">
         <term><command>ctstat</command></term>
         <term><command>ctstat</command></term>
         <listitem>
         <listitem>
-          <para>Connection status utility</para>
+          <para>连接状态工具</para>
           <indexterm zone="ch-system-iproute2 ctstat">
           <indexterm zone="ch-system-iproute2 ctstat">
             <primary sortas="b-ctstat">ctstat</primary>
             <primary sortas="b-ctstat">ctstat</primary>
           </indexterm>
           </indexterm>
@@ -123,7 +129,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="genl">
       <varlistentry id="genl">
         <term><command>genl</command></term>
         <term><command>genl</command></term>
         <listitem>
         <listitem>
-          <para>Generic netlink utility frontend</para>
+          <para>通用网络连接工具前端</para>
           <indexterm zone="ch-system-iproute2 genl">
           <indexterm zone="ch-system-iproute2 genl">
             <primary sortas="b-genl">genl</primary>
             <primary sortas="b-genl">genl</primary>
           </indexterm>
           </indexterm>
@@ -133,10 +139,11 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="ifcfg">
       <varlistentry id="ifcfg">
         <term><command>ifcfg</command></term>
         <term><command>ifcfg</command></term>
         <listitem>
         <listitem>
-          <para>A shell script wrapper for the <command>ip</command> command
-          [Note that it requires the <command>arping</command> and
-          <command>rdisk</command> programs from the
-          iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
+          <para>一个封装 <command>ip</command> 命令的脚本
+          [注意它需要 <command>arping</command> 和
+          <command>rdisk</command> 程序,它们来自于
+		  iputils 软件包,可以在
+		  <ulink url="http://www.skbuff.net/iputils/"/>找到。]</para>
           <indexterm zone="ch-system-iproute2 ifcfg">
           <indexterm zone="ch-system-iproute2 ifcfg">
             <primary sortas="b-ifcfg">ifcfg</primary>
             <primary sortas="b-ifcfg">ifcfg</primary>
           </indexterm>
           </indexterm>
@@ -146,8 +153,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="ifstat">
       <varlistentry id="ifstat">
         <term><command>ifstat</command></term>
         <term><command>ifstat</command></term>
         <listitem>
         <listitem>
-          <para>Shows the interface statistics, including the amount of
-          transmitted and received packets by interface</para>
+          <para>显示网络接口统计,包括接口上发送和接收的数据包数量</para>
           <indexterm zone="ch-system-iproute2 ifstat">
           <indexterm zone="ch-system-iproute2 ifstat">
             <primary sortas="b-ifstat">ifstat</primary>
             <primary sortas="b-ifstat">ifstat</primary>
           </indexterm>
           </indexterm>
@@ -157,35 +163,33 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="ip">
       <varlistentry id="ip">
         <term><command>ip</command></term>
         <term><command>ip</command></term>
         <listitem>
         <listitem>
-          <para>The main executable. It has several different functions:</para>
+          <para>该软件包的主程序,包含以下不同的功能:</para>
 
 
           <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
           <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
-          allows users to look at the state of devices and to make changes</para>
+          允许用户查看和修改设备状态</para>
 
 
-          <para><command>ip addr</command> allows users to look at addresses and
-          their properties, add new addresses, and delete old ones</para>
+          <para><command>ip addr</command> 允许用户查看网络地址及其属性,
+          添加新地址或删除旧地址</para>
+	  
+          <para><command>ip neigh</command> 允许用户查看 ARP
+			  近邻绑定及其属性,增加新近邻项,或删除旧项</para>
 
 
-          <para><command>ip neighbor</command> allows users to look at neighbor
-          bindings and their properties, add new neighbor entries, and delete
-          old ones</para>
+          <para><command>ip rule</command> 允许用户查看或修改路由策略</para>
 
 
-          <para><command>ip rule</command> allows users to look at the routing
-          policies and change them</para>
+          <para><command>ip route</command>
+          	  允许用户查看路由表或修改路由表规则</para>
 
 
-          <para><command>ip route</command> allows users to look at the routing
-          table and change routing table rules</para>
+          <para><command>ip tunnel</command> 允许用户查看 IP 隧道及其属性,
+          或修改它们</para>
 
 
-          <para><command>ip tunnel</command> allows users to look at the IP
-          tunnels and their properties, and change them</para>
+          <para><command>ip maddr</command> 允许用户查看多播地址及其属性,
+          或修改它们</para>
 
 
-          <para><command>ip maddr</command> allows users to look at the multicast
-          addresses and their properties, and change them</para>
+          <para><command>ip mroute</command> 允许用户设定、
+          	  修改或删除多播路由</para>
 
 
-          <para><command>ip mroute</command> allows users to set, change, or
-          delete the multicast routing</para>
-
-          <para><command>ip monitor</command> allows users to continuously monitor
-          the state of devices, addresses and routes</para>
+		  <para><command>ip monitor</command> 允许用户连续地监视设备、
+		  	  地址和路由的状态</para>
           <indexterm zone="ch-system-iproute2 ip">
           <indexterm zone="ch-system-iproute2 ip">
             <primary sortas="b-ip">ip</primary>
             <primary sortas="b-ip">ip</primary>
           </indexterm>
           </indexterm>
@@ -195,9 +199,8 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="lnstat">
       <varlistentry id="lnstat">
         <term><command>lnstat</command></term>
         <term><command>lnstat</command></term>
         <listitem>
         <listitem>
-          <para>Provides Linux network statistics; it is a generalized and more
-          feature-complete replacement for the old <command>rtstat</command>
-          program</para>
+          <para>提供 Linux 网络统计;它是旧的<command>rtstat</command>
+          的更通用、功能更完备的替代品</para>
           <indexterm zone="ch-system-iproute2 lnstat">
           <indexterm zone="ch-system-iproute2 lnstat">
             <primary sortas="b-lnstat">lnstat</primary>
             <primary sortas="b-lnstat">lnstat</primary>
           </indexterm>
           </indexterm>
@@ -207,7 +210,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="nstat">
       <varlistentry id="nstat">
         <term><command>nstat</command></term>
         <term><command>nstat</command></term>
         <listitem>
         <listitem>
-          <para>Shows network statistics</para>
+          <para>显示网络统计</para>
           <indexterm zone="ch-system-iproute2 nstat">
           <indexterm zone="ch-system-iproute2 nstat">
             <primary sortas="b-nstat">nstat</primary>
             <primary sortas="b-nstat">nstat</primary>
           </indexterm>
           </indexterm>
@@ -217,8 +220,8 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="routef">
       <varlistentry id="routef">
         <term><command>routef</command></term>
         <term><command>routef</command></term>
         <listitem>
         <listitem>
-          <para>A component of <command>ip route</command>. This is for flushing
-          the routing tables</para>
+          <para><command>ip route</command> 的一个组件。用于刷新路由表
+          </para>
           <indexterm zone="ch-system-iproute2 routef">
           <indexterm zone="ch-system-iproute2 routef">
             <primary sortas="b-routef">routef</primary>
             <primary sortas="b-routef">routef</primary>
           </indexterm>
           </indexterm>
@@ -228,8 +231,8 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="routel">
       <varlistentry id="routel">
         <term><command>routel</command></term>
         <term><command>routel</command></term>
         <listitem>
         <listitem>
-          <para>A component of <command>ip route</command>. This is for listing
-          the routing tables</para>
+          <para><command>ip route</command> 的一个组件。用于显示路由表
+          </para>
           <indexterm zone="ch-system-iproute2 routel">
           <indexterm zone="ch-system-iproute2 routel">
             <primary sortas="b-routel">routel</primary>
             <primary sortas="b-routel">routel</primary>
           </indexterm>
           </indexterm>
@@ -239,8 +242,8 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="rtacct">
       <varlistentry id="rtacct">
         <term><command>rtacct</command></term>
         <term><command>rtacct</command></term>
         <listitem>
         <listitem>
-          <para>Displays the contents of
-          <filename>/proc/net/rt_acct</filename></para>
+          <para>显示
+          <filename>/proc/net/rt_acct</filename> 的内容</para>
           <indexterm zone="ch-system-iproute2 rtacct">
           <indexterm zone="ch-system-iproute2 rtacct">
             <primary sortas="b-rtacct">rtacct</primary>
             <primary sortas="b-rtacct">rtacct</primary>
           </indexterm>
           </indexterm>
@@ -250,7 +253,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="rtmon">
       <varlistentry id="rtmon">
         <term><command>rtmon</command></term>
         <term><command>rtmon</command></term>
         <listitem>
         <listitem>
-          <para>Route monitoring utility</para>
+          <para>路由监视工具</para>
           <indexterm zone="ch-system-iproute2 rtmon">
           <indexterm zone="ch-system-iproute2 rtmon">
             <primary sortas="b-rtmon">rtmon</primary>
             <primary sortas="b-rtmon">rtmon</primary>
           </indexterm>
           </indexterm>
@@ -260,8 +263,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="rtpr">
       <varlistentry id="rtpr">
         <term><command>rtpr</command></term>
         <term><command>rtpr</command></term>
         <listitem>
         <listitem>
-          <para>Converts the output of <command>ip -o</command> back into a
-          readable form</para>
+          <para>将 <command>ip -o</command> 的输出转换为可读形式</para>
           <indexterm zone="ch-system-iproute2 rtpr">
           <indexterm zone="ch-system-iproute2 rtpr">
             <primary sortas="b-rtpr">rtpr</primary>
             <primary sortas="b-rtpr">rtpr</primary>
           </indexterm>
           </indexterm>
@@ -271,7 +273,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="rtstat">
       <varlistentry id="rtstat">
         <term><command>rtstat</command></term>
         <term><command>rtstat</command></term>
         <listitem>
         <listitem>
-          <para>Route status utility</para>
+          <para>路由状态工具</para>
           <indexterm zone="ch-system-iproute2 rtstat">
           <indexterm zone="ch-system-iproute2 rtstat">
             <primary sortas="b-rtstat">rtstat</primary>
             <primary sortas="b-rtstat">rtstat</primary>
           </indexterm>
           </indexterm>
@@ -281,8 +283,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="ss">
       <varlistentry id="ss">
         <term><command>ss</command></term>
         <term><command>ss</command></term>
         <listitem>
         <listitem>
-          <para>Similar to the <command>netstat</command> command; shows active
-          connections</para>
+          <para>与 <command>netstat</command> 命令相似;显示活动连接</para>
           <indexterm zone="ch-system-iproute2 ss">
           <indexterm zone="ch-system-iproute2 ss">
             <primary sortas="b-ss">ss</primary>
             <primary sortas="b-ss">ss</primary>
           </indexterm>
           </indexterm>
@@ -292,23 +293,22 @@ rm -fv man/man8/arpd.8</userinput></screen>
       <varlistentry id="tc">
       <varlistentry id="tc">
         <term><command>tc</command></term>
         <term><command>tc</command></term>
         <listitem>
         <listitem>
-          <para>Traffic Controlling Executable; this is for Quality Of Service
-          (QOS) and Class Of Service (COS) implementations</para>
+          <para>流量管制可执行程序;用于实现服务质量(QOS)和服务类型(COS)
+          协议</para>
 
 
-          <para><command>tc qdisc</command> allows users to setup the queueing
-          discipline</para>
+          <para><command>tc qdisc</command> 允许用户设定排队规则</para>
 
 
-          <para><command>tc class</command> allows users to setup classes based
-          on the queuing discipline scheduling</para>
+          <para><command>tc class</command>
+          	  允许用户设定基于排队规则调度的调度类</para>
 
 
-          <para><command>tc estimator</command> allows users to estimate the
-          network flow into a network</para>
+          <para><command>tc estimator</command> 允许用户预计进入网络的流量
+          </para>
 
 
-          <para><command>tc filter</command> allows users to setup the QOS/COS
-          packet filtering</para>
+          <para><command>tc filter</command> 允许用户设定 QOS/COS 数据包过滤
+          </para>
 
 
-          <para><command>tc policy</command> allows users to setup the QOS/COS
-          policies</para>
+		  <para><command>tc policy</command> 允许用户设定 QOS/COS
+		  	  策略</para>
           <indexterm zone="ch-system-iproute2 ss">
           <indexterm zone="ch-system-iproute2 ss">
             <primary sortas="b-tc">tc</primary>
             <primary sortas="b-tc">tc</primary>
           </indexterm>
           </indexterm>