iproute2.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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-patch-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 SBINDIR=/sbin</userinput></screen>
  47. <variablelist>
  48. <varlistentry>
  49. <term><parameter>SBINDIR=/sbin</parameter></term>
  50. <listitem><para>This makes sure that the iproute2 binaries will install into
  51. <filename class="directory">/sbin</filename>. This is the correct
  52. location according to the FHS, as some of the iproute2 binaries are used
  53. in our bootscripts.</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Now install it:</para>
  58. <screen><userinput>make install SBINDIR=/sbin</userinput></screen>
  59. </sect2>
  60. <sect2 id="contents-iproute2" role="content">
  61. <title>Contents of iproute2</title>
  62. <segmentedlist>
  63. <segtitle>Installed programs</segtitle>
  64. <seglistitem>
  65. <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
  66. </seglistitem>
  67. </segmentedlist>
  68. <variablelist>
  69. <title>Short descriptions</title>
  70. <varlistentry id="ifstat">
  71. <term>
  72. <command>ifstat</command>
  73. </term>
  74. <listitem>
  75. <indexterm zone="ch-system-iproute2 ifstat">
  76. <primary sortas="b-ifstat">ifstat</primary>
  77. </indexterm>
  78. <para>shows the interfaces statistics. Shows the amount of transmitted
  79. and received packages by interface</para>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="ip">
  83. <term>
  84. <command>ip</command>
  85. </term>
  86. <listitem>
  87. <indexterm zone="ch-system-iproute2 ip">
  88. <primary sortas="b-ip">ip</primary>
  89. </indexterm>
  90. <para>is the main executable. Has several different functions.</para>
  91. <para><command>ip link <replaceable>[device]</replaceable></command>
  92. allows you to look at the state of devices and to change it.
  93. </para>
  94. <para><command>ip addr</command> allows you to look at addresses and
  95. their properties, add new addresses and to delete old ones.
  96. </para>
  97. <para><command>ip neighbor</command> allows you to look at neighbour
  98. bindings and their properties, add new neighbour entries and to
  99. delete old ones.
  100. </para>
  101. <para><command>ip rule</command> allows you to look at the routing
  102. policies and change them.
  103. </para>
  104. <para><command>ip route</command> allows you to look at the routing
  105. table and change routing table rules.
  106. </para>
  107. <para><command>ip tunnel</command> allows you to look at the ip
  108. tunnels and their properties, and change them.
  109. </para>
  110. <para><command>ip maddr</command> allows you to look at the multicast
  111. addresses and their properties, and change them.
  112. </para>
  113. <para><command>ip mroute</command> allows you to set, change, or
  114. delete the mutlicast routing.
  115. </para>
  116. <para><command>ip monitor</command> allows you to monitor the state of
  117. devices, addresses and routes continuously.
  118. </para>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="nstat">
  122. <term>
  123. <command>nstat</command>
  124. </term>
  125. <listitem>
  126. <indexterm zone="ch-system-iproute2 nstat">
  127. <primary sortas="b-nstat">nstat</primary>
  128. </indexterm>
  129. <para>Shows network statistics</para>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="routef">
  133. <term>
  134. <command>routef</command>
  135. </term>
  136. <listitem>
  137. <indexterm zone="ch-system-iproute2 routef">
  138. <primary sortas="b-routef">routef</primary>
  139. </indexterm>
  140. <para>A component of ip route. This is for flushing the routing
  141. tables.
  142. </para>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="routel">
  146. <term>
  147. <command>routel</command>
  148. </term>
  149. <listitem>
  150. <indexterm zone="ch-system-iproute2 routel">
  151. <primary sortas="b-routel">routel</primary>
  152. </indexterm>
  153. <para>A component of ip route. This is for listing the routing
  154. tables.
  155. </para>
  156. </listitem>
  157. </varlistentry>
  158. <varlistentry id="rtmon">
  159. <term>
  160. <command>rtmon</command>
  161. </term>
  162. <listitem>
  163. <indexterm zone="ch-system-iproute2 rtmon">
  164. <primary sortas="b-rtmon">rtmon</primary>
  165. </indexterm>
  166. <para>Route Monitoring Utility.</para>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="rtstat">
  170. <term>
  171. <command>rtstat</command>
  172. </term>
  173. <listitem>
  174. <indexterm zone="ch-system-iproute2 rtstat">
  175. <primary sortas="b-rtstat">rtstat</primary>
  176. </indexterm>
  177. <para>Route Status Utility</para>
  178. </listitem>
  179. </varlistentry>
  180. <varlistentry id="ss">
  181. <term>
  182. <command>ss</command>
  183. </term>
  184. <listitem>
  185. <indexterm zone="ch-system-iproute2 ss">
  186. <primary sortas="b-ss">ss</primary>
  187. </indexterm>
  188. <para>Similar to the netstat command. Shows active connections.</para>
  189. </listitem>
  190. </varlistentry>
  191. <varlistentry id="tc">
  192. <term>
  193. <command>tc</command>
  194. </term>
  195. <listitem>
  196. <indexterm zone="ch-system-iproute2 ss">
  197. <primary sortas="b-tc">tc</primary>
  198. </indexterm>
  199. <para>Traffic Controlling Executable. This is for QOS/COS
  200. implementations.
  201. </para>
  202. <para><command>tc qdisc</command> allows you to setup the queueing
  203. discipline.
  204. </para>
  205. <para><command>tc class</command> allows you to setup classes based on
  206. the queuing discipline scheduling.
  207. </para>
  208. <para><command>tc estimator</command> allows you to estimate the
  209. network flow into a network.
  210. </para>
  211. <para><command>tc filter</command> allows you to setup the QOS/COS
  212. packet filtering.
  213. </para>
  214. <para><command>tc policy</command> allows you to setup the QOS/COS
  215. policies.
  216. </para>
  217. </listitem>
  218. </varlistentry>
  219. </variablelist>
  220. </sect2>
  221. </sect1>