iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. <!--
  48. <para>Do not build the unneeded tipc program. Transparent Inter-process
  49. Communication (TIPC) is a network communications protocol for Inter-process
  50. communication (IPC) that was designed for intra-cluster
  51. communication.</para>
  52. <screen><userinput remap="pre">sed -i 's/tipc //' Makefile</userinput></screen>
  53. -->
  54. <para>Compile the package:</para>
  55. <screen><userinput remap="make">make</userinput></screen>
  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>Install the package:</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>Contents of IPRoute2</title>
  69. <segmentedlist>
  70. <segtitle>Installed programs</segtitle>
  71. <segtitle>Installed directories</segtitle>
  72. <seglistitem>
  73. <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
  74. nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
  75. and tc</seg>
  76. <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
  77. </seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</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>Configures network bridges</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>Connection status utility</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>A shell script wrapper for the <command>ip</command> command
  115. [Note that it requires the <command>arping</command> and
  116. <command>rdisk</command> programs from the
  117. iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
  118. <indexterm zone="ch-system-iproute2 ifcfg">
  119. <primary sortas="b-ifcfg">ifcfg</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="ifstat">
  124. <term><command>ifstat</command></term>
  125. <listitem>
  126. <para>Shows the interface statistics, including the amount of
  127. transmitted and received packets by interface</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>The main executable. It has several different functions:</para>
  137. <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
  138. allows users to look at the state of devices and to make changes</para>
  139. <para><command>ip addr</command> allows users to look at addresses and
  140. their properties, add new addresses, and delete old ones</para>
  141. <para><command>ip neighbor</command> allows users to look at neighbor
  142. bindings and their properties, add new neighbor entries, and delete
  143. old ones</para>
  144. <para><command>ip rule</command> allows users to look at the routing
  145. policies and change them</para>
  146. <para><command>ip route</command> allows users to look at the routing
  147. table and change routing table rules</para>
  148. <para><command>ip tunnel</command> allows users to look at the IP
  149. tunnels and their properties, and change them</para>
  150. <para><command>ip maddr</command> allows users to look at the multicast
  151. addresses and their properties, and change them</para>
  152. <para><command>ip mroute</command> allows users to set, change, or
  153. delete the multicast routing</para>
  154. <para><command>ip monitor</command> allows users to continuously monitor
  155. the state of devices, addresses and routes</para>
  156. <indexterm zone="ch-system-iproute2 ip">
  157. <primary sortas="b-ip">ip</primary>
  158. </indexterm>
  159. </listitem>
  160. </varlistentry>
  161. <varlistentry id="lnstat">
  162. <term><command>lnstat</command></term>
  163. <listitem>
  164. <para>Provides Linux network statistics; it is a generalized and more
  165. feature-complete replacement for the old <command>rtstat</command>
  166. program</para>
  167. <indexterm zone="ch-system-iproute2 lnstat">
  168. <primary sortas="b-lnstat">lnstat</primary>
  169. </indexterm>
  170. </listitem>
  171. </varlistentry>
  172. <varlistentry id="nstat">
  173. <term><command>nstat</command></term>
  174. <listitem>
  175. <para>Shows network statistics</para>
  176. <indexterm zone="ch-system-iproute2 nstat">
  177. <primary sortas="b-nstat">nstat</primary>
  178. </indexterm>
  179. </listitem>
  180. </varlistentry>
  181. <varlistentry id="routef">
  182. <term><command>routef</command></term>
  183. <listitem>
  184. <para>A component of <command>ip route</command>. This is for flushing
  185. the routing tables</para>
  186. <indexterm zone="ch-system-iproute2 routef">
  187. <primary sortas="b-routef">routef</primary>
  188. </indexterm>
  189. </listitem>
  190. </varlistentry>
  191. <varlistentry id="routel">
  192. <term><command>routel</command></term>
  193. <listitem>
  194. <para>A component of <command>ip route</command>. This is for listing
  195. the routing tables</para>
  196. <indexterm zone="ch-system-iproute2 routel">
  197. <primary sortas="b-routel">routel</primary>
  198. </indexterm>
  199. </listitem>
  200. </varlistentry>
  201. <varlistentry id="rtacct">
  202. <term><command>rtacct</command></term>
  203. <listitem>
  204. <para>Displays the contents of
  205. <filename>/proc/net/rt_acct</filename></para>
  206. <indexterm zone="ch-system-iproute2 rtacct">
  207. <primary sortas="b-rtacct">rtacct</primary>
  208. </indexterm>
  209. </listitem>
  210. </varlistentry>
  211. <varlistentry id="rtmon">
  212. <term><command>rtmon</command></term>
  213. <listitem>
  214. <para>Route monitoring utility</para>
  215. <indexterm zone="ch-system-iproute2 rtmon">
  216. <primary sortas="b-rtmon">rtmon</primary>
  217. </indexterm>
  218. </listitem>
  219. </varlistentry>
  220. <varlistentry id="rtpr">
  221. <term><command>rtpr</command></term>
  222. <listitem>
  223. <para>Converts the output of <command>ip -o</command> back into a
  224. readable form</para>
  225. <indexterm zone="ch-system-iproute2 rtpr">
  226. <primary sortas="b-rtpr">rtpr</primary>
  227. </indexterm>
  228. </listitem>
  229. </varlistentry>
  230. <varlistentry id="rtstat">
  231. <term><command>rtstat</command></term>
  232. <listitem>
  233. <para>Route status utility</para>
  234. <indexterm zone="ch-system-iproute2 rtstat">
  235. <primary sortas="b-rtstat">rtstat</primary>
  236. </indexterm>
  237. </listitem>
  238. </varlistentry>
  239. <varlistentry id="ss">
  240. <term><command>ss</command></term>
  241. <listitem>
  242. <para>Similar to the <command>netstat</command> command; shows active
  243. connections</para>
  244. <indexterm zone="ch-system-iproute2 ss">
  245. <primary sortas="b-ss">ss</primary>
  246. </indexterm>
  247. </listitem>
  248. </varlistentry>
  249. <varlistentry id="tc">
  250. <term><command>tc</command></term>
  251. <listitem>
  252. <para>Traffic Controlling Executable; this is for Quality Of Service
  253. (QOS) and Class Of Service (COS) implementations</para>
  254. <para><command>tc qdisc</command> allows users to setup the queueing
  255. discipline</para>
  256. <para><command>tc class</command> allows users to setup classes based
  257. on the queuing discipline scheduling</para>
  258. <para><command>tc estimator</command> allows users to estimate the
  259. network flow into a network</para>
  260. <para><command>tc filter</command> allows users to setup the QOS/COS
  261. packet filtering</para>
  262. <para><command>tc policy</command> allows users to setup the QOS/COS
  263. policies</para>
  264. <indexterm zone="ch-system-iproute2 ss">
  265. <primary sortas="b-tc">tc</primary>
  266. </indexterm>
  267. </listitem>
  268. </varlistentry>
  269. </variablelist>
  270. </sect2>
  271. </sect1>