iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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>Compile the package:</para>
  34. <screen><userinput remap="make">make SBINDIR=/sbin</userinput></screen>
  35. <variablelist>
  36. <title>The meaning of the make option:</title>
  37. <varlistentry>
  38. <term><parameter>SBINDIR=/sbin</parameter></term>
  39. <listitem>
  40. <para>This ensures that the IPRoute2 binaries will install into
  41. <filename class="directory">/sbin</filename>. This is the correct
  42. location according to the FHS, because some of the IPRoute2 binaries
  43. are used by the LFS-Bootscripts package.</para>
  44. </listitem>
  45. </varlistentry>
  46. </variablelist>
  47. <para>This package comes with a testsuite, but due to assumptions it makes,
  48. it is not possible to reliably run these tests from within the chroot
  49. environment. If you wish to run these tests after booting into your new LFS
  50. system, ensure you select <filename>/proc/config.gz</filename>
  51. CONFIG_IKCONFIG_PROC (&quot;General setup&quot; -> &quot;Enable access to
  52. .config through /proc/config.gz&quot;) support into your kernel then run
  53. 'make alltests' from the <filename class="directory">testsuite/</filename>
  54. subdirectory.</para>
  55. <para>Install the package:</para>
  56. <screen><userinput remap="install">make SBINDIR=/sbin install</userinput></screen>
  57. <para>The <command>arpd</command> binary links against the Berkeley DB
  58. libraries that reside in <filename class="directory">/usr</filename> and
  59. uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
  60. according to the FHS, it must be in <filename
  61. class="directory">/usr/sbin</filename>. Move it there:</para>
  62. <screen><userinput remap="install">mv -v /sbin/arpd /usr/sbin</userinput></screen>
  63. </sect2>
  64. <sect2 id="contents-iproute2" role="content">
  65. <title>Contents of IPRoute2</title>
  66. <segmentedlist>
  67. <segtitle>Installed programs</segtitle>
  68. <seglistitem>
  69. <seg>arpd, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
  70. nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
  71. and tc.</seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist>
  75. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="arpd">
  79. <term><command>arpd</command></term>
  80. <listitem>
  81. <para>Userspace ARP daemon, useful in really large networks, where the
  82. kernelspace ARP implementation is insufficient, or when setting up a
  83. honeypot</para>
  84. <indexterm zone="ch-system-iproute2 arpd">
  85. <primary sortas="b-arpd">arpd</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  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</para>
  111. <indexterm zone="ch-system-iproute2 ifcfg">
  112. <primary sortas="b-ifcfg">ifcfg</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="ifstat">
  117. <term><command>ifstat</command></term>
  118. <listitem>
  119. <para>Shows the interface statistics, including the amount of
  120. transmitted and received packets by interface</para>
  121. <indexterm zone="ch-system-iproute2 ifstat">
  122. <primary sortas="b-ifstat">ifstat</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="ip">
  127. <term><command>ip</command></term>
  128. <listitem>
  129. <para>The main executable. It has several different functions:</para>
  130. <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
  131. allows users to look at the state of devices and to make changes</para>
  132. <para><command>ip addr</command> allows users to look at addresses and
  133. their properties, add new addresses, and delete old ones</para>
  134. <para><command>ip neighbor</command> allows users to look at neighbor
  135. bindings and their properties, add new neighbor entries, and delete
  136. old ones</para>
  137. <para><command>ip rule</command> allows users to look at the routing
  138. policies and change them</para>
  139. <para><command>ip route</command> allows users to look at the routing
  140. table and change routing table rules</para>
  141. <para><command>ip tunnel</command> allows users to look at the IP
  142. tunnels and their properties, and change them</para>
  143. <para><command>ip maddr</command> allows users to look at the multicast
  144. addresses and their properties, and change them</para>
  145. <para><command>ip mroute</command> allows users to set, change, or
  146. delete the multicast routing</para>
  147. <para><command>ip monitor</command> allows users to continously monitor
  148. the state of devices, addresses and routes</para>
  149. <indexterm zone="ch-system-iproute2 ip">
  150. <primary sortas="b-ip">ip</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="lnstat">
  155. <term><command>lnstat</command></term>
  156. <listitem>
  157. <para>Provides Linux network statistics. It is a generalized and more
  158. feature-complete replacement for the old <command>rtstat</command>
  159. program</para>
  160. <indexterm zone="ch-system-iproute2 lnstat">
  161. <primary sortas="b-lnstat">lnstat</primary>
  162. </indexterm>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="nstat">
  166. <term><command>nstat</command></term>
  167. <listitem>
  168. <para>Shows network statistics</para>
  169. <indexterm zone="ch-system-iproute2 nstat">
  170. <primary sortas="b-nstat">nstat</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="routef">
  175. <term><command>routef</command></term>
  176. <listitem>
  177. <para>A component of <command>ip route</command>. This is for flushing
  178. the routing tables</para>
  179. <indexterm zone="ch-system-iproute2 routef">
  180. <primary sortas="b-routef">routef</primary>
  181. </indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="routel">
  185. <term><command>routel</command></term>
  186. <listitem>
  187. <para>A component of <command>ip route</command>. This is for listing
  188. the routing tables</para>
  189. <indexterm zone="ch-system-iproute2 routel">
  190. <primary sortas="b-routel">routel</primary>
  191. </indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="rtacct">
  195. <term><command>rtacct</command></term>
  196. <listitem>
  197. <para>Displays the contents of
  198. <filename>/proc/net/rt_acct</filename></para>
  199. <indexterm zone="ch-system-iproute2 rtacct">
  200. <primary sortas="b-rtacct">rtacct</primary>
  201. </indexterm>
  202. </listitem>
  203. </varlistentry>
  204. <varlistentry id="rtmon">
  205. <term><command>rtmon</command></term>
  206. <listitem>
  207. <para>Route monitoring utility</para>
  208. <indexterm zone="ch-system-iproute2 rtmon">
  209. <primary sortas="b-rtmon">rtmon</primary>
  210. </indexterm>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="rtpr">
  214. <term><command>rtpr</command></term>
  215. <listitem>
  216. <para>Converts the output of <command>ip -o</command> back into a
  217. readable form</para>
  218. <indexterm zone="ch-system-iproute2 rtpr">
  219. <primary sortas="b-rtpr">rtpr</primary>
  220. </indexterm>
  221. </listitem>
  222. </varlistentry>
  223. <varlistentry id="rtstat">
  224. <term><command>rtstat</command></term>
  225. <listitem>
  226. <para>Route status utility</para>
  227. <indexterm zone="ch-system-iproute2 rtstat">
  228. <primary sortas="b-rtstat">rtstat</primary>
  229. </indexterm>
  230. </listitem>
  231. </varlistentry>
  232. <varlistentry id="ss">
  233. <term><command>ss</command></term>
  234. <listitem>
  235. <para>Similar to the <command>netstat</command> command; shows active
  236. connections</para>
  237. <indexterm zone="ch-system-iproute2 ss">
  238. <primary sortas="b-ss">ss</primary>
  239. </indexterm>
  240. </listitem>
  241. </varlistentry>
  242. <varlistentry id="tc">
  243. <term><command>tc</command></term>
  244. <listitem>
  245. <para>Traffic Controlling Executable; this is for Quality Of Service
  246. (QOS) and Class Of Service (COS) implementations</para>
  247. <para><command>tc qdisc</command> allows users to setup the queueing
  248. discipline</para>
  249. <para><command>tc class</command> allows users to setup classes based
  250. on the queuing discipline scheduling</para>
  251. <para><command>tc estimator</command> allows users to estimate the
  252. network flow into a network</para>
  253. <para><command>tc filter</command> allows users to setup the QOS/COS
  254. packet filtering</para>
  255. <para><command>tc policy</command> allows users to setup the QOS/COS
  256. policies</para>
  257. <indexterm zone="ch-system-iproute2 ss">
  258. <primary sortas="b-tc">tc</primary>
  259. </indexterm>
  260. </listitem>
  261. </varlistentry>
  262. </variablelist>
  263. </sect2>
  264. </sect1>