iproute2.xml 7.8 KB

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