iproute2.xml 10 KB

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