iproute2.xml 11 KB

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