iproute2.xml 11 KB

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