iproute2.xml 10 KB

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