iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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>3.4 MB</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. <segmentedlist>
  26. <segtitle>&dependencies;</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>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat, routef,
  71. routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss, and tc.
  72. </seg>
  73. </seglistitem>
  74. </segmentedlist>
  75. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="ctstat">
  79. <term>
  80. <command>ctstat</command>
  81. </term>
  82. <listitem>
  83. <para>Connection status utility.</para>
  84. <indexterm zone="ch-system-iproute2 ctstat">
  85. <primary sortas="b-cstat">ctstat</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="ifcfg">
  90. <term>
  91. <command>ifcfg</command>
  92. </term>
  93. <listitem>
  94. <para>A shell script wrapper for the <command>ip</command> command.</para>
  95. <indexterm zone="ch-system-iproute2 ifcfg">
  96. <primary sortas="b-ifcfg">ifcfg</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="ifstat">
  101. <term>
  102. <command>ifstat</command>
  103. </term>
  104. <listitem>
  105. <para>Shows the interfaces statistic, including the amount of transmitted
  106. and received packages by interface.</para>
  107. <indexterm zone="ch-system-iproute2 ifstat">
  108. <primary sortas="b-ifstat">ifstat</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="ip">
  113. <term>
  114. <command>ip</command>
  115. </term>
  116. <listitem>
  117. <para>The main executable. It has several different functions:</para>
  118. <para><command>ip link <replaceable>[device]</replaceable></command>
  119. allows users to look at the state of devices and to make changes.
  120. </para>
  121. <para><command>ip addr</command> allows users to look at addresses and
  122. their properties, add new addresses, and delete old ones.
  123. </para>
  124. <para><command>ip neighbor</command> allows users to look at
  125. neighbor bindings and their properties, add new
  126. neighbor entries, and delete old ones.
  127. </para>
  128. <para><command>ip rule</command> allows users to look at the routing
  129. policies and change them.
  130. </para>
  131. <para><command>ip route</command> allows users to look at the routing
  132. table and change routing table rules.
  133. </para>
  134. <para><command>ip tunnel</command> allows users to look at the IP
  135. tunnels and their properties, and change them.
  136. </para>
  137. <para><command>ip maddr</command> allows users to look at the multicast
  138. addresses and their properties, and change them.
  139. </para>
  140. <para><command>ip mroute</command> allows users to set, change, or
  141. delete the multicast routing.
  142. </para>
  143. <para><command>ip monitor</command> allows users to
  144. continously monitor the state of devices, addresses and routes.
  145. </para>
  146. <indexterm zone="ch-system-iproute2 ip">
  147. <primary sortas="b-ip">ip</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="lnstat">
  152. <term>
  153. <command>lnstat</command>
  154. </term>
  155. <listitem>
  156. <para>Provides Linux network statistics. It is a generalized and more
  157. feature-complete replacement for the old
  158. <command>rtstat</command> program.</para>
  159. <indexterm zone="ch-system-iproute2 lnstat">
  160. <primary sortas="b-cstat">lnstat</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="nstat">
  165. <term>
  166. <command>nstat</command>
  167. </term>
  168. <listitem>
  169. <para>Shows network statistics.</para>
  170. <indexterm zone="ch-system-iproute2 nstat">
  171. <primary sortas="b-nstat">nstat</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="routef">
  176. <term>
  177. <command>routef</command>
  178. </term>
  179. <listitem>
  180. <para>A component of <command>ip route</command>. This is for flushing the routing
  181. tables.
  182. </para>
  183. <indexterm zone="ch-system-iproute2 routef">
  184. <primary sortas="b-routef">routef</primary>
  185. </indexterm>
  186. </listitem>
  187. </varlistentry>
  188. <varlistentry id="routel">
  189. <term>
  190. <command>routel</command>
  191. </term>
  192. <listitem>
  193. <para>A component of <command>ip route</command>. This is for listing the routing
  194. tables.
  195. </para>
  196. <indexterm zone="ch-system-iproute2 routel">
  197. <primary sortas="b-routel">routel</primary>
  198. </indexterm>
  199. </listitem>
  200. </varlistentry>
  201. <varlistentry id="rtacct">
  202. <term>
  203. <command>rtacct</command>
  204. </term>
  205. <listitem>
  206. <para>Displays the contents of <filename>/proc/net/rt_acct</filename>.</para>
  207. <indexterm zone="ch-system-iproute2 rtacct">
  208. <primary sortas="b-rtacct">rtacct</primary>
  209. </indexterm>
  210. </listitem>
  211. </varlistentry>
  212. <varlistentry id="rtmon">
  213. <term>
  214. <command>rtmon</command>
  215. </term>
  216. <listitem>
  217. <para>Route monitoring utility.</para>
  218. <indexterm zone="ch-system-iproute2 rtmon">
  219. <primary sortas="b-rtmon">rtmon</primary>
  220. </indexterm>
  221. </listitem>
  222. </varlistentry>
  223. <varlistentry id="rtpr">
  224. <term>
  225. <command>rtpr</command>
  226. </term>
  227. <listitem>
  228. <para>Converts the output of <command>ip -o</command> back into a
  229. readable form</para>
  230. <indexterm zone="ch-system-iproute2 rtpr">
  231. <primary sortas="b-rtpr">rtpr</primary>
  232. </indexterm>
  233. </listitem>
  234. </varlistentry>
  235. <varlistentry id="rtstat">
  236. <term>
  237. <command>rtstat</command>
  238. </term>
  239. <listitem>
  240. <para>Route status utility.</para>
  241. <indexterm zone="ch-system-iproute2 rtstat">
  242. <primary sortas="b-rtstat">rtstat</primary>
  243. </indexterm>
  244. </listitem>
  245. </varlistentry>
  246. <varlistentry id="ss">
  247. <term>
  248. <command>ss</command>
  249. </term>
  250. <listitem>
  251. <para>Similar to the <command>netstat</command> command; shows active connections.</para>
  252. <indexterm zone="ch-system-iproute2 ss">
  253. <primary sortas="b-ss">ss</primary>
  254. </indexterm>
  255. </listitem>
  256. </varlistentry>
  257. <varlistentry id="tc">
  258. <term>
  259. <command>tc</command>
  260. </term>
  261. <listitem>
  262. <para>Traffic Controlling Executable; this is for Quality Of
  263. Service (QOS) and Class Of Service (COS)
  264. implementations
  265. </para>
  266. <para><command>tc qdisc</command> allows users to setup the queueing
  267. discipline
  268. </para>
  269. <para><command>tc class</command> allows users to setup classes based on
  270. the queuing discipline scheduling
  271. </para>
  272. <para><command>tc estimator</command> allows users to estimate the
  273. network flow into a network
  274. </para>
  275. <para><command>tc filter</command> allows users to setup the QOS/COS
  276. packet filtering
  277. </para>
  278. <para><command>tc policy</command> allows users to setup the QOS/COS
  279. policies
  280. </para>
  281. <indexterm zone="ch-system-iproute2 ss">
  282. <primary sortas="b-tc">tc</primary>
  283. </indexterm>
  284. </listitem>
  285. </varlistentry>
  286. </variablelist>
  287. </sect2>
  288. </sect1>