iproute2.xml 11 KB

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