iproute2.xml 8.6 KB

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