iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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>The IPRoute2 package contains programs for basic and advanced IPV4-based
  21. networking.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&iproute2-ch6-sbu;</seg>
  27. <seg>&iproute2-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of IPRoute2</title>
  33. <para>The <command>arpd</command> binary included in this package is
  34. dependent on Berkeley DB. Because <command>arpd</command> is not a very
  35. common requirement on a base Linux system, remove the dependency on Berkeley
  36. DB by applying the commands below. If the <command>arpd</command> binary is
  37. needed, instructions for compiling Berkeley DB can be found in the BLFS Book
  38. at <ulink url="&blfs-book;server/databases.html#db"/>.
  39. </para>
  40. <screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
  41. sed -i /ARPD/d Makefile
  42. sed -i 's/arpd.8//' man/man8/Makefile</userinput></screen>
  43. <!-- Save as comments for now
  44. <para>Remove a compiler flag that causes the compilation to fail:</para>
  45. <screen><userinput remap="pre">sed -i 's/-Werror//' Makefile</userinput></screen>
  46. -->
  47. <para>Do not build the unneeded tipc program. Transparent Inter-process
  48. Communication (TIPC) is a network communications protocol for Inter-process
  49. communication (IPC) that was designed for intra-cluster
  50. communication.</para>
  51. <screen><userinput remap="pre">sed -i 's/tipc //' Makefile</userinput></screen>
  52. <para>Compile the package:</para>
  53. <screen><userinput remap="make">make</userinput></screen>
  54. <para>This package comes with a test suite, but due to assumptions it makes,
  55. it is not possible to reliably run these tests from within the chroot
  56. environment. If you wish to run these tests after booting into your new LFS
  57. system, ensure you enable <filename>/proc/config.gz</filename> support
  58. in your kernel (&quot;General setup&quot; -> &quot;Enable access to
  59. .config through /proc/config.gz&quot; [CONFIG_IKCONFIG_PROC]), then run
  60. 'make alltests' from the <filename class="directory">testsuite/</filename>
  61. subdirectory.</para>
  62. <para>Install the package:</para>
  63. <screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
  64. </sect2>
  65. <sect2 id="contents-iproute2" role="content">
  66. <title>Contents of IPRoute2</title>
  67. <segmentedlist>
  68. <segtitle>Installed programs</segtitle>
  69. <segtitle>Installed directories</segtitle>
  70. <seglistitem>
  71. <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
  72. nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
  73. and tc</seg>
  74. <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
  75. </seg>
  76. </seglistitem>
  77. </segmentedlist>
  78. <variablelist>
  79. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  80. <?dbfo list-presentation="list"?>
  81. <?dbhtml list-presentation="table"?>
  82. <varlistentry id="bridge">
  83. <term><command>bridge</command></term>
  84. <listitem>
  85. <para>Configures network bridges</para>
  86. <indexterm zone="ch-system-iproute2 bridge">
  87. <primary sortas="b-bridge">bridge</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="ctstat">
  92. <term><command>ctstat</command></term>
  93. <listitem>
  94. <para>Connection status utility</para>
  95. <indexterm zone="ch-system-iproute2 ctstat">
  96. <primary sortas="b-ctstat">ctstat</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="genl">
  101. <term><command>genl</command></term>
  102. <listitem>
  103. <para></para>
  104. <indexterm zone="ch-system-iproute2 genl">
  105. <primary sortas="b-genl">genl</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="ifcfg">
  110. <term><command>ifcfg</command></term>
  111. <listitem>
  112. <para>A shell script wrapper for the <command>ip</command> command
  113. [Note that it requires the <command>arping</command> and
  114. <command>rdisk</command> programs from the
  115. iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
  116. <indexterm zone="ch-system-iproute2 ifcfg">
  117. <primary sortas="b-ifcfg">ifcfg</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="ifstat">
  122. <term><command>ifstat</command></term>
  123. <listitem>
  124. <para>Shows the interface statistics, including the amount of
  125. transmitted and received packets by interface</para>
  126. <indexterm zone="ch-system-iproute2 ifstat">
  127. <primary sortas="b-ifstat">ifstat</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="ip">
  132. <term><command>ip</command></term>
  133. <listitem>
  134. <para>The main executable. It has several different functions:</para>
  135. <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
  136. allows users to look at the state of devices and to make changes</para>
  137. <para><command>ip addr</command> allows users to look at addresses and
  138. their properties, add new addresses, and delete old ones</para>
  139. <para><command>ip neighbor</command> allows users to look at neighbor
  140. bindings and their properties, add new neighbor entries, and delete
  141. old ones</para>
  142. <para><command>ip rule</command> allows users to look at the routing
  143. policies and change them</para>
  144. <para><command>ip route</command> allows users to look at the routing
  145. table and change routing table rules</para>
  146. <para><command>ip tunnel</command> allows users to look at the IP
  147. tunnels and their properties, and change them</para>
  148. <para><command>ip maddr</command> allows users to look at the multicast
  149. addresses and their properties, and change them</para>
  150. <para><command>ip mroute</command> allows users to set, change, or
  151. delete the multicast routing</para>
  152. <para><command>ip monitor</command> allows users to continuously monitor
  153. the state of devices, addresses and routes</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>Provides Linux network statistics; it is a generalized and more
  163. feature-complete replacement for the old <command>rtstat</command>
  164. program</para>
  165. <indexterm zone="ch-system-iproute2 lnstat">
  166. <primary sortas="b-lnstat">lnstat</primary>
  167. </indexterm>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="nstat">
  171. <term><command>nstat</command></term>
  172. <listitem>
  173. <para>Shows network statistics</para>
  174. <indexterm zone="ch-system-iproute2 nstat">
  175. <primary sortas="b-nstat">nstat</primary>
  176. </indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="routef">
  180. <term><command>routef</command></term>
  181. <listitem>
  182. <para>A component of <command>ip route</command>. This is for flushing
  183. the routing tables</para>
  184. <indexterm zone="ch-system-iproute2 routef">
  185. <primary sortas="b-routef">routef</primary>
  186. </indexterm>
  187. </listitem>
  188. </varlistentry>
  189. <varlistentry id="routel">
  190. <term><command>routel</command></term>
  191. <listitem>
  192. <para>A component of <command>ip route</command>. This is for listing
  193. the routing tables</para>
  194. <indexterm zone="ch-system-iproute2 routel">
  195. <primary sortas="b-routel">routel</primary>
  196. </indexterm>
  197. </listitem>
  198. </varlistentry>
  199. <varlistentry id="rtacct">
  200. <term><command>rtacct</command></term>
  201. <listitem>
  202. <para>Displays the contents of
  203. <filename>/proc/net/rt_acct</filename></para>
  204. <indexterm zone="ch-system-iproute2 rtacct">
  205. <primary sortas="b-rtacct">rtacct</primary>
  206. </indexterm>
  207. </listitem>
  208. </varlistentry>
  209. <varlistentry id="rtmon">
  210. <term><command>rtmon</command></term>
  211. <listitem>
  212. <para>Route monitoring utility</para>
  213. <indexterm zone="ch-system-iproute2 rtmon">
  214. <primary sortas="b-rtmon">rtmon</primary>
  215. </indexterm>
  216. </listitem>
  217. </varlistentry>
  218. <varlistentry id="rtpr">
  219. <term><command>rtpr</command></term>
  220. <listitem>
  221. <para>Converts the output of <command>ip -o</command> back into a
  222. readable form</para>
  223. <indexterm zone="ch-system-iproute2 rtpr">
  224. <primary sortas="b-rtpr">rtpr</primary>
  225. </indexterm>
  226. </listitem>
  227. </varlistentry>
  228. <varlistentry id="rtstat">
  229. <term><command>rtstat</command></term>
  230. <listitem>
  231. <para>Route status utility</para>
  232. <indexterm zone="ch-system-iproute2 rtstat">
  233. <primary sortas="b-rtstat">rtstat</primary>
  234. </indexterm>
  235. </listitem>
  236. </varlistentry>
  237. <varlistentry id="ss">
  238. <term><command>ss</command></term>
  239. <listitem>
  240. <para>Similar to the <command>netstat</command> command; shows active
  241. connections</para>
  242. <indexterm zone="ch-system-iproute2 ss">
  243. <primary sortas="b-ss">ss</primary>
  244. </indexterm>
  245. </listitem>
  246. </varlistentry>
  247. <varlistentry id="tc">
  248. <term><command>tc</command></term>
  249. <listitem>
  250. <para>Traffic Controlling Executable; this is for Quality Of Service
  251. (QOS) and Class Of Service (COS) implementations</para>
  252. <para><command>tc qdisc</command> allows users to setup the queueing
  253. discipline</para>
  254. <para><command>tc class</command> allows users to setup classes based
  255. on the queuing discipline scheduling</para>
  256. <para><command>tc estimator</command> allows users to estimate the
  257. network flow into a network</para>
  258. <para><command>tc filter</command> allows users to setup the QOS/COS
  259. packet filtering</para>
  260. <para><command>tc policy</command> allows users to setup the QOS/COS
  261. policies</para>
  262. <indexterm zone="ch-system-iproute2 ss">
  263. <primary sortas="b-tc">tc</primary>
  264. </indexterm>
  265. </listitem>
  266. </varlistentry>
  267. </variablelist>
  268. </sect2>
  269. </sect1>