iproute2.xml 11 KB

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