iproute2.xml 11 KB

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