iproute2.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-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>GCC, Glibc, Make, Linux-Headers, and Sed</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. Because <command>arpd</command> is not a very
  36. common requirement on a base Linux system, remove the dependency on
  37. Berkeley DB by applying the patch using the command below. If
  38. the <command>arpd</command> binary is needed, instructions for
  39. compiling Berkeley DB can be found in the BLFS Book at <ulink
  40. url="&blfs-root;view/svn/content/databases.html#db"/>.
  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
  44. findutils whose <command>find</command> command will report an error
  45. message when its options are not in the proper order.</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. <para>The meaning of the make option:</para>
  52. <variablelist>
  53. <varlistentry>
  54. <term><parameter>SBINDIR=/sbin</parameter></term>
  55. <listitem><para>This makes sure that the Iproute2 binaries will install into
  56. <filename class="directory">/sbin</filename>. This is the correct
  57. location according to the FHS, because some of the Iproute2 binaries are used
  58. in the bootscripts.</para>
  59. </listitem>
  60. </varlistentry>
  61. </variablelist>
  62. <para>Install the package:</para>
  63. <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
  64. </sect2>
  65. <sect2 id="contents-iproute2" role="content">
  66. <title>Contents of Iproute2</title>
  67. <segmentedlist>
  68. <segtitle>Installed programs</segtitle>
  69. <seglistitem>
  70. <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
  71. </seglistitem>
  72. </segmentedlist>
  73. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  74. <?dbfo list-presentation="list"?>
  75. <varlistentry id="ifstat">
  76. <term>
  77. <command>ifstat</command>
  78. </term>
  79. <listitem>
  80. <para>Shows the interfaces statistic, including the amount of transmitted
  81. and received packages by interface.</para>
  82. <indexterm zone="ch-system-iproute2 ifstat">
  83. <primary sortas="b-ifstat">ifstat</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="ip">
  88. <term>
  89. <command>ip</command>
  90. </term>
  91. <listitem>
  92. <para>The main executable. It has several different functions:</para>
  93. <para><command>ip link <replaceable>[device]</replaceable></command>
  94. allows users to look at the state of devices and to make changes.
  95. </para>
  96. <para><command>ip addr</command> allows users to look at addresses and
  97. their properties, add new addresses, and delete old ones.
  98. </para>
  99. <para><command>ip neighbor</command> allows users to look at
  100. neighbor bindings and their properties, add new
  101. neighbor entries, and delete old ones.
  102. </para>
  103. <para><command>ip rule</command> allows users to look at the routing
  104. policies and change them.
  105. </para>
  106. <para><command>ip route</command> allows users to look at the routing
  107. table and change routing table rules.
  108. </para>
  109. <para><command>ip tunnel</command> allows users to look at the IP
  110. tunnels and their properties, and change them.
  111. </para>
  112. <para><command>ip maddr</command> allows users to look at the multicast
  113. addresses and their properties, and change them.
  114. </para>
  115. <para><command>ip mroute</command> allows users to set, change, or
  116. delete the multicast routing.
  117. </para>
  118. <para><command>ip monitor</command> allows users to
  119. continously monitor the state of devices, addresses and routes.
  120. </para>
  121. <indexterm zone="ch-system-iproute2 ip">
  122. <primary sortas="b-ip">ip</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="nstat">
  127. <term>
  128. <command>nstat</command>
  129. </term>
  130. <listitem>
  131. <para>Shows network statistics.</para>
  132. <indexterm zone="ch-system-iproute2 nstat">
  133. <primary sortas="b-nstat">nstat</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="routef">
  138. <term>
  139. <command>routef</command>
  140. </term>
  141. <listitem>
  142. <para>A component of <command>ip route</command>. This is for flushing the routing
  143. tables.
  144. </para>
  145. <indexterm zone="ch-system-iproute2 routef">
  146. <primary sortas="b-routef">routef</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="routel">
  151. <term>
  152. <command>routel</command>
  153. </term>
  154. <listitem>
  155. <para>A component of <command>ip route</command>. This is for listing the routing
  156. tables.
  157. </para>
  158. <indexterm zone="ch-system-iproute2 routel">
  159. <primary sortas="b-routel">routel</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. <varlistentry id="rtmon">
  164. <term>
  165. <command>rtmon</command>
  166. </term>
  167. <listitem>
  168. <para>Route monitoring utility.</para>
  169. <indexterm zone="ch-system-iproute2 rtmon">
  170. <primary sortas="b-rtmon">rtmon</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="rtstat">
  175. <term>
  176. <command>rtstat</command>
  177. </term>
  178. <listitem>
  179. <para>Route status utility</para>
  180. <indexterm zone="ch-system-iproute2 rtstat">
  181. <primary sortas="b-rtstat">rtstat</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="ss">
  186. <term>
  187. <command>ss</command>
  188. </term>
  189. <listitem>
  190. <para>Similar to the <command>netstat</command> command; shows active connections</para>
  191. <indexterm zone="ch-system-iproute2 ss">
  192. <primary sortas="b-ss">ss</primary>
  193. </indexterm>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry id="tc">
  197. <term>
  198. <command>tc</command>
  199. </term>
  200. <listitem>
  201. <para>Traffic Controlling Executable; this is for Quality Of
  202. Service (QOS) and Class Of Service (COS)
  203. implementations
  204. </para>
  205. <para><command>tc qdisc</command> allows users to setup the queueing
  206. discipline
  207. </para>
  208. <para><command>tc class</command> allows users to setup classes based on
  209. the queuing discipline scheduling
  210. </para>
  211. <para><command>tc estimator</command> allows users to estimate the
  212. network flow into a network
  213. </para>
  214. <para><command>tc filter</command> allows users to setup the QOS/COS
  215. packet filtering
  216. </para>
  217. <para><command>tc policy</command> allows users to setup the QOS/COS
  218. policies
  219. </para>
  220. <indexterm zone="ch-system-iproute2 ss">
  221. <primary sortas="b-tc">tc</primary>
  222. </indexterm>
  223. </listitem>
  224. </varlistentry>
  225. </variablelist>
  226. </sect2>
  227. </sect1>