iproute2.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-iproute2" xreflabel="IProute2" role="wrap">
  7. <title>Iproute2-&iproute2-version;</title>
  8. <?dbhtml filename="iproute2.html"?>
  9. <indexterm zone="ch-system-iproute2">
  10. <primary sortas="a-iproute2">iproute2</primary>
  11. </indexterm>
  12. <sect2 role="package">
  13. <title/>
  14. <para>The iproute2 package contains programs for basic and advanced
  15. IPV4-based networking.
  16. </para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>0.1 SBU</seg>
  22. <seg>.6 MB</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. <segmentedlist>
  26. <segtitle>iproute2 installation depends on</segtitle>
  27. <seglistitem>
  28. <seg>sed, GCC, Glibc, Make, Linux-Headers</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of iproute2</title>
  34. <para>The <command>arpd</command> binary included in this package is
  35. dependent on Berkeley DB. As <command>arpd</command> is not a very
  36. common requirement on a base Linux system we remove the dependency on
  37. Berkeley DB by applying the patch using the command below. If you
  38. need the <command>arpd</command> binary, then instructions for
  39. compiling Berkeley DB can be found in the <ulink
  40. url="http://www.linuxfromscratch.org/blfs/view/cvs/content/databases.html#db">BLFS book</ulink>.
  41. </para>
  42. <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-version;-remove_db-1.patch</userinput></screen>
  43. <para>Prepare iproute2 for compilation:</para>
  44. <screen> <userinput>./configure </userinput></screen>
  45. <para>Compile the package:</para>
  46. <screen><userinput>make</userinput></screen>
  47. <para>Now install it:</para>
  48. <screen><userinput>make install</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-iproute2" role="content">
  51. <title>Contents of iproute2</title>
  52. <segmentedlist>
  53. <segtitle>Installed programs</segtitle>
  54. <seglistitem>
  55. <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
  56. </seglistitem>
  57. </segmentedlist>
  58. <variablelist>
  59. <title>Short descriptions</title>
  60. <varlistentry id="ifstat">
  61. <term>
  62. <command>ifstat</command>
  63. </term>
  64. <listitem>
  65. <indexterm zone="ch-system-iproute2 ifstat">
  66. <primary sortas="b-ifstat">ifstat</primary>
  67. </indexterm>
  68. <para>shows the interfaces statistics. Shows the amount of transmitted
  69. and received packages by interface</para>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="ip">
  73. <term>
  74. <command>ip</command>
  75. </term>
  76. <listitem>
  77. <indexterm zone="ch-system-iproute2 ip">
  78. <primary sortas="b-ip">ip</primary>
  79. </indexterm>
  80. <para>is the main executable. Has several different functions.</para>
  81. <para><command>ip link <replaceable>[device]</replaceable></command>
  82. allows you to look at the state of devices and to change it.
  83. </para>
  84. <para><command>ip addr</command> allows you to look at addresses and
  85. their properties, add new addresses and to delete old ones.
  86. </para>
  87. <para><command>ip neighbor</command> allows you to look at neighbour
  88. bindings and their properties, add new neighbour entries and to
  89. delete old ones.
  90. </para>
  91. <para><command>ip rule</command> allows you to look at the routing
  92. policies and change them.
  93. </para>
  94. <para><command>ip route</command> allows you to look at the routing
  95. table and change routing table rules.
  96. </para>
  97. <para><command>ip tunnel</command> allows you to look at the ip
  98. tunnels and their properties, and change them.
  99. </para>
  100. <para><command>ip maddr</command> allows you to look at the multicast
  101. addresses and their properties, and change them.
  102. </para>
  103. <para><command>ip mroute</command> allows you to set, change, or
  104. delete the mutlicast routing.
  105. </para>
  106. <para><command>ip monitor</command> allows you to monitor the state of
  107. devices, addresses and routes continuously.
  108. </para>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="nstat">
  112. <term>
  113. <command>nstat</command>
  114. </term>
  115. <listitem>
  116. <indexterm zone="ch-system-iproute2 nstat">
  117. <primary sortas="b-nstat">nstat</primary>
  118. </indexterm>
  119. <para>Shows network statistics</para>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="routef">
  123. <term>
  124. <command>routef</command>
  125. </term>
  126. <listitem>
  127. <indexterm zone="ch-system-iproute2 routef">
  128. <primary sortas="b-routef">routef</primary>
  129. </indexterm>
  130. <para>A component of ip route. This is for flushing the routing
  131. tables.
  132. </para>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry id="routel">
  136. <term>
  137. <command>routel</command>
  138. </term>
  139. <listitem>
  140. <indexterm zone="ch-system-iproute2 routel">
  141. <primary sortas="b-routel">routel</primary>
  142. </indexterm>
  143. <para>A component of ip route. This is for listing the routing
  144. tables.
  145. </para>
  146. </listitem>
  147. </varlistentry>
  148. <varlistentry id="rtmon">
  149. <term>
  150. <command>rtmon</command>
  151. </term>
  152. <listitem>
  153. <indexterm zone="ch-system-iproute2 rtmon">
  154. <primary sortas="b-rtmon">rtmon</primary>
  155. </indexterm>
  156. <para>Route Monitoring Utility.</para>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="rtstat">
  160. <term>
  161. <command>rtstat</command>
  162. </term>
  163. <listitem>
  164. <indexterm zone="ch-system-iproute2 rtstat">
  165. <primary sortas="b-rtstat">rtstat</primary>
  166. </indexterm>
  167. <para>Route Status Utility</para>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="ss">
  171. <term>
  172. <command>ss</command>
  173. </term>
  174. <listitem>
  175. <indexterm zone="ch-system-iproute2 ss">
  176. <primary sortas="b-ss">ss</primary>
  177. </indexterm>
  178. <para>Similar to the netstat command. Shows active connections.</para>
  179. </listitem>
  180. </varlistentry>
  181. <varlistentry id="tc">
  182. <term>
  183. <command>tc</command>
  184. </term>
  185. <listitem>
  186. <indexterm zone="ch-system-iproute2 ss">
  187. <primary sortas="b-tc">tc</primary>
  188. </indexterm>
  189. <para>Traffic Controlling Executable. This is for QOS/COS
  190. implementations.
  191. </para>
  192. <para><command>tc qdisc</command> allows you to setup the queueing
  193. discipline.
  194. </para>
  195. <para><command>tc class</command> allows you to setup classes based on
  196. the queuing discipline scheduling.
  197. </para>
  198. <para><command>tc estimator</command> allows you to estimate the
  199. network flow into a network.
  200. </para>
  201. <para><command>tc filter</command> allows you to setup the QOS/COS
  202. packet filtering.
  203. </para>
  204. <para><command>tc policy</command> allows you to setup the QOS/COS
  205. policies.
  206. </para>
  207. </listitem>
  208. </varlistentry>
  209. </variablelist>
  210. </sect2>
  211. </sect1>