1
0

iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-iproute2" role="wrap">
  8. <?dbhtml filename="iproute2.html"?>
  9. <sect1info condition="script">
  10. <productname>iproute2</productname>
  11. <productnumber>&iproute2-version;</productnumber>
  12. <address>&iproute2-url;</address>
  13. </sect1info>
  14. <title>IPRoute2-&iproute2-version;</title>
  15. <indexterm zone="ch-system-iproute2">
  16. <primary sortas="a-IPRoute2">IPRoute2</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>IPRoute2 软件包包含基于 IPv4 的基本和高级网络程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&iproute2-ch6-sbu;</seg>
  26. <seg>&iproute2-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 IPRoute2</title>
  32. <!--para>The <command>arpd</command> program included in this package will not
  33. be built since it is dependent on Berkeley DB, which is not installed in
  34. LFS. However, a directory for <command>arpd</command> and a man page will still
  35. be installed. Prevent this by running the commands below.
  36. If the <command>arpd</command> binary is needed,
  37. instructions for compiling Berkeley DB can be found in the BLFS Book at
  38. <ulink url="&blfs-book;server/databases.html#db"/>.
  39. </para-->
  40. <para>该软件包中的 <command>arpd</command> 程序依赖于 LFS 不安装的
  41. Berkeley DB,因此不会被构建。然而,用于 <command>arpd</command>
  42. 的一个目录和它的 man 页面仍会被安装,运行以下命令以防止它们的安装。
  43. 如果需要使用 <command>arpd</command> 二进制程序,
  44. 参考 BLFS 手册中的 Berkeley DB 编译说明,它位于
  45. <ulink url="&blfs-book;server/databases.html#db"/>。
  46. </para>
  47. <screen><userinput remap="pre">sed -i /ARPD/d Makefile
  48. rm -fv man/man8/arpd.8</userinput></screen>
  49. <para>还需要禁用两个需要
  50. <ulink url="&blfs-book;postlfs/iptables.html"/> 的模块:</para>
  51. <screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>
  52. <para>编译该软件包:</para>
  53. <screen><userinput remap="make">make</userinput></screen>
  54. <para>该软件包没有能够工作的测试套件。</para>
  55. <!-- currently not useful, no tests actually run
  56. <para>This package comes with a test suite, but due to assumptions it makes,
  57. it is not possible to reliably run these tests from within the chroot
  58. environment. If you wish to run these tests after booting into your new LFS
  59. system, ensure you enable <filename>/proc/config.gz</filename> support
  60. in your kernel (&quot;General setup&quot; -> &quot;Enable access to
  61. .config through /proc/config.gz&quot; [CONFIG_IKCONFIG_PROC]), then run
  62. 'make alltests' from the <filename class="directory">testsuite/</filename>
  63. subdirectory.</para>-->
  64. <para>安装该软件包:</para>
  65. <screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
  66. </sect2>
  67. <sect2 id="contents-iproute2" role="content">
  68. <title>IPRoute2 的内容</title>
  69. <segmentedlist>
  70. <segtitle>安装的程序</segtitle>
  71. <segtitle>安装的目录</segtitle>
  72. <seglistitem>
  73. <seg>bridge, ctstat (到 lnstat 的链接), genl, ifcfg, ifstat, ip, lnstat,
  74. nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (到 lnstat 的链接), ss,
  75. 以及 tc</seg>
  76. <seg>/etc/iproute2, /usr/lib/tc, 以及 /usr/share/doc/iproute2-&iproute2-version;,
  77. </seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">简要描述</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="bridge">
  85. <term><command>bridge</command></term>
  86. <listitem>
  87. <para>配置网桥</para>
  88. <indexterm zone="ch-system-iproute2 bridge">
  89. <primary sortas="b-bridge">bridge</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="ctstat">
  94. <term><command>ctstat</command></term>
  95. <listitem>
  96. <para>连接状态工具</para>
  97. <indexterm zone="ch-system-iproute2 ctstat">
  98. <primary sortas="b-ctstat">ctstat</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="genl">
  103. <term><command>genl</command></term>
  104. <listitem>
  105. <para>通用网络连接工具前端</para>
  106. <indexterm zone="ch-system-iproute2 genl">
  107. <primary sortas="b-genl">genl</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="ifcfg">
  112. <term><command>ifcfg</command></term>
  113. <listitem>
  114. <para>一个封装 <command>ip</command> 命令的脚本
  115. [注意它需要 <command>arping</command> 和
  116. <command>rdisk</command> 程序,它们来自于
  117. iputils 软件包,可以在
  118. <ulink url="http://www.skbuff.net/iputils/"/>找到。]</para>
  119. <indexterm zone="ch-system-iproute2 ifcfg">
  120. <primary sortas="b-ifcfg">ifcfg</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="ifstat">
  125. <term><command>ifstat</command></term>
  126. <listitem>
  127. <para>显示网络接口统计,包括接口上发送和接收的数据包数量</para>
  128. <indexterm zone="ch-system-iproute2 ifstat">
  129. <primary sortas="b-ifstat">ifstat</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="ip">
  134. <term><command>ip</command></term>
  135. <listitem>
  136. <para>该软件包的主程序,包含以下不同的功能:</para>
  137. <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
  138. 允许用户查看和修改设备状态</para>
  139. <para><command>ip addr</command> 允许用户查看网络地址及其属性,
  140. 添加新地址或删除旧地址</para>
  141. <para><command>ip neigh</command> 允许用户查看 ARP
  142. 近邻绑定及其属性,增加新近邻项,或删除旧项</para>
  143. <para><command>ip rule</command> 允许用户查看或修改路由策略</para>
  144. <para><command>ip route</command>
  145. 允许用户查看路由表或修改路由表规则</para>
  146. <para><command>ip tunnel</command> 允许用户查看 IP 隧道及其属性,
  147. 或修改它们</para>
  148. <para><command>ip maddr</command> 允许用户查看多播地址及其属性,
  149. 或修改它们</para>
  150. <para><command>ip mroute</command> 允许用户设定、
  151. 修改或删除多播路由</para>
  152. <para><command>ip monitor</command> 允许用户连续地监视设备、
  153. 地址和路由的状态</para>
  154. <indexterm zone="ch-system-iproute2 ip">
  155. <primary sortas="b-ip">ip</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="lnstat">
  160. <term><command>lnstat</command></term>
  161. <listitem>
  162. <para>提供 Linux 网络统计;它是旧的<command>rtstat</command>
  163. 的更通用、功能更完备的替代品</para>
  164. <indexterm zone="ch-system-iproute2 lnstat">
  165. <primary sortas="b-lnstat">lnstat</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="nstat">
  170. <term><command>nstat</command></term>
  171. <listitem>
  172. <para>显示网络统计</para>
  173. <indexterm zone="ch-system-iproute2 nstat">
  174. <primary sortas="b-nstat">nstat</primary>
  175. </indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="routef">
  179. <term><command>routef</command></term>
  180. <listitem>
  181. <para><command>ip route</command> 的一个组件。用于刷新路由表
  182. </para>
  183. <indexterm zone="ch-system-iproute2 routef">
  184. <primary sortas="b-routef">routef</primary>
  185. </indexterm>
  186. </listitem>
  187. </varlistentry>
  188. <varlistentry id="routel">
  189. <term><command>routel</command></term>
  190. <listitem>
  191. <para><command>ip route</command> 的一个组件。用于显示路由表
  192. </para>
  193. <indexterm zone="ch-system-iproute2 routel">
  194. <primary sortas="b-routel">routel</primary>
  195. </indexterm>
  196. </listitem>
  197. </varlistentry>
  198. <varlistentry id="rtacct">
  199. <term><command>rtacct</command></term>
  200. <listitem>
  201. <para>显示
  202. <filename>/proc/net/rt_acct</filename> 的内容</para>
  203. <indexterm zone="ch-system-iproute2 rtacct">
  204. <primary sortas="b-rtacct">rtacct</primary>
  205. </indexterm>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry id="rtmon">
  209. <term><command>rtmon</command></term>
  210. <listitem>
  211. <para>路由监视工具</para>
  212. <indexterm zone="ch-system-iproute2 rtmon">
  213. <primary sortas="b-rtmon">rtmon</primary>
  214. </indexterm>
  215. </listitem>
  216. </varlistentry>
  217. <varlistentry id="rtpr">
  218. <term><command>rtpr</command></term>
  219. <listitem>
  220. <para>将 <command>ip -o</command> 的输出转换为可读形式</para>
  221. <indexterm zone="ch-system-iproute2 rtpr">
  222. <primary sortas="b-rtpr">rtpr</primary>
  223. </indexterm>
  224. </listitem>
  225. </varlistentry>
  226. <varlistentry id="rtstat">
  227. <term><command>rtstat</command></term>
  228. <listitem>
  229. <para>路由状态工具</para>
  230. <indexterm zone="ch-system-iproute2 rtstat">
  231. <primary sortas="b-rtstat">rtstat</primary>
  232. </indexterm>
  233. </listitem>
  234. </varlistentry>
  235. <varlistentry id="ss">
  236. <term><command>ss</command></term>
  237. <listitem>
  238. <para>与 <command>netstat</command> 命令相似;显示活动连接</para>
  239. <indexterm zone="ch-system-iproute2 ss">
  240. <primary sortas="b-ss">ss</primary>
  241. </indexterm>
  242. </listitem>
  243. </varlistentry>
  244. <varlistentry id="tc">
  245. <term><command>tc</command></term>
  246. <listitem>
  247. <para>流量管制可执行程序;用于实现服务质量(QOS)和服务类型(COS)
  248. 协议</para>
  249. <para><command>tc qdisc</command> 允许用户设定排队规则</para>
  250. <para><command>tc class</command>
  251. 允许用户设定基于排队规则调度的调度类</para>
  252. <para><command>tc estimator</command> 允许用户预计进入网络的流量
  253. </para>
  254. <para><command>tc filter</command> 允许用户设定 QOS/COS 数据包过滤
  255. </para>
  256. <para><command>tc policy</command> 允许用户设定 QOS/COS
  257. 策略</para>
  258. <indexterm zone="ch-system-iproute2 ss">
  259. <primary sortas="b-tc">tc</primary>
  260. </indexterm>
  261. </listitem>
  262. </varlistentry>
  263. </variablelist>
  264. </sect2>
  265. </sect1>