iproute2.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-iproute2" role="wrap">
  9. <title>IPRoute2-&iproute2-version;</title>
  10. <?dbhtml filename="iproute2.html"?>
  11. <indexterm zone="ch-system-iproute2">
  12. <primary sortas="a-IPRoute2">IPRoute2</primary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <para>The IPRoute2 package contains programs for basic and advanced
  17. IPV4-based networking.
  18. </para>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>0.1 SBU</seg>
  24. <seg>4.3 MB</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. <segmentedlist>
  28. <segtitle>&dependencies;</segtitle>
  29. <seglistitem>
  30. <seg>GCC, Glibc, Make, Linux-Headers, and Sed</seg>
  31. </seglistitem>
  32. </segmentedlist>
  33. </sect2>
  34. <sect2 role="installation">
  35. <title>Installation of IPRoute2</title>
  36. <para>The <command>arpd</command> binary included in this package is
  37. dependent on Berkeley DB. Because <command>arpd</command> is not a very
  38. common requirement on a base Linux system, remove the dependency on
  39. Berkeley DB by applying the <command>sed</command> command below. If
  40. the <command>arpd</command> binary is needed, instructions for
  41. compiling Berkeley DB can be found in the BLFS Book at <ulink
  42. url="&blfs-root;view/svn/server/databases.html#db"/>.
  43. </para>
  44. <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
  45. <para>Prepare IPRoute2 for compilation:</para>
  46. <screen><userinput>chmod u+x configure &amp;&amp;
  47. ./configure</userinput></screen>
  48. <para>Compile the package:</para>
  49. <screen><userinput>make SBINDIR=/sbin</userinput></screen>
  50. <para>The meaning of the make option:</para>
  51. <variablelist>
  52. <varlistentry>
  53. <term><parameter>SBINDIR=/sbin</parameter></term>
  54. <listitem><para>This ensures that the IPRoute2 binaries will install into
  55. <filename class="directory">/sbin</filename>. This is the correct location
  56. according to the FHS, because some of the IPRoute2 binaries are used by
  57. the LFS-Bootscripts package.</para>
  58. </listitem>
  59. </varlistentry>
  60. </variablelist>
  61. <para>Install the package:</para>
  62. <screen><userinput>make SBINDIR=/sbin install</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>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat, routef,
  70. routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss, and tc.
  71. </seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  75. <?dbfo list-presentation="list"?>
  76. <?dbhtml list-presentation="table"?>
  77. <varlistentry id="ctstat">
  78. <term>
  79. <command>ctstat</command>
  80. </term>
  81. <listitem>
  82. <para>Connection status utility</para>
  83. <indexterm zone="ch-system-iproute2 ctstat">
  84. <primary sortas="b-ctstat">ctstat</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="ifcfg">
  89. <term>
  90. <command>ifcfg</command>
  91. </term>
  92. <listitem>
  93. <para>A shell script wrapper for the <command>ip</command> command</para>
  94. <indexterm zone="ch-system-iproute2 ifcfg">
  95. <primary sortas="b-ifcfg">ifcfg</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="ifstat">
  100. <term>
  101. <command>ifstat</command>
  102. </term>
  103. <listitem>
  104. <para>Shows the interface statistics, including the amount of transmitted
  105. and received packets by interface</para>
  106. <indexterm zone="ch-system-iproute2 ifstat">
  107. <primary sortas="b-ifstat">ifstat</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="ip">
  112. <term>
  113. <command>ip</command>
  114. </term>
  115. <listitem>
  116. <para>The main executable. It has several different functions:</para>
  117. <para><command>ip link <replaceable>[device]</replaceable></command>
  118. allows users to look at the state of devices and to make changes
  119. </para>
  120. <para><command>ip addr</command> allows users to look at addresses and
  121. their properties, add new addresses, and delete old ones
  122. </para>
  123. <para><command>ip neighbor</command> allows users to look at
  124. neighbor bindings and their properties, add new
  125. neighbor entries, and delete old ones
  126. </para>
  127. <para><command>ip rule</command> allows users to look at the routing
  128. policies and change them
  129. </para>
  130. <para><command>ip route</command> allows users to look at the routing
  131. table and change routing table rules
  132. </para>
  133. <para><command>ip tunnel</command> allows users to look at the IP
  134. tunnels and their properties, and change them
  135. </para>
  136. <para><command>ip maddr</command> allows users to look at the multicast
  137. addresses and their properties, and change them
  138. </para>
  139. <para><command>ip mroute</command> allows users to set, change, or
  140. delete the multicast routing
  141. </para>
  142. <para><command>ip monitor</command> allows users to
  143. continously monitor the state of devices, addresses and routes
  144. </para>
  145. <indexterm zone="ch-system-iproute2 ip">
  146. <primary sortas="b-ip">ip</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="lnstat">
  151. <term>
  152. <command>lnstat</command>
  153. </term>
  154. <listitem>
  155. <para>Provides Linux network statistics. It is a generalized and more
  156. feature-complete replacement for the old
  157. <command>rtstat</command> program</para>
  158. <indexterm zone="ch-system-iproute2 lnstat">
  159. <primary sortas="b-lnstat">lnstat</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. <varlistentry id="nstat">
  164. <term>
  165. <command>nstat</command>
  166. </term>
  167. <listitem>
  168. <para>Shows network statistics</para>
  169. <indexterm zone="ch-system-iproute2 nstat">
  170. <primary sortas="b-nstat">nstat</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="routef">
  175. <term>
  176. <command>routef</command>
  177. </term>
  178. <listitem>
  179. <para>A component of <command>ip route</command>. This is for flushing the routing
  180. tables
  181. </para>
  182. <indexterm zone="ch-system-iproute2 routef">
  183. <primary sortas="b-routef">routef</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="routel">
  188. <term>
  189. <command>routel</command>
  190. </term>
  191. <listitem>
  192. <para>A component of <command>ip route</command>. This is for listing the routing
  193. tables
  194. </para>
  195. <indexterm zone="ch-system-iproute2 routel">
  196. <primary sortas="b-routel">routel</primary>
  197. </indexterm>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry id="rtacct">
  201. <term>
  202. <command>rtacct</command>
  203. </term>
  204. <listitem>
  205. <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
  206. <indexterm zone="ch-system-iproute2 rtacct">
  207. <primary sortas="b-rtacct">rtacct</primary>
  208. </indexterm>
  209. </listitem>
  210. </varlistentry>
  211. <varlistentry id="rtmon">
  212. <term>
  213. <command>rtmon</command>
  214. </term>
  215. <listitem>
  216. <para>Route monitoring utility</para>
  217. <indexterm zone="ch-system-iproute2 rtmon">
  218. <primary sortas="b-rtmon">rtmon</primary>
  219. </indexterm>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="rtpr">
  223. <term>
  224. <command>rtpr</command>
  225. </term>
  226. <listitem>
  227. <para>Converts the output of <command>ip -o</command> back into a
  228. readable form</para>
  229. <indexterm zone="ch-system-iproute2 rtpr">
  230. <primary sortas="b-rtpr">rtpr</primary>
  231. </indexterm>
  232. </listitem>
  233. </varlistentry>
  234. <varlistentry id="rtstat">
  235. <term>
  236. <command>rtstat</command>
  237. </term>
  238. <listitem>
  239. <para>Route status utility</para>
  240. <indexterm zone="ch-system-iproute2 rtstat">
  241. <primary sortas="b-rtstat">rtstat</primary>
  242. </indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="ss">
  246. <term>
  247. <command>ss</command>
  248. </term>
  249. <listitem>
  250. <para>Similar to the <command>netstat</command> command; shows active connections</para>
  251. <indexterm zone="ch-system-iproute2 ss">
  252. <primary sortas="b-ss">ss</primary>
  253. </indexterm>
  254. </listitem>
  255. </varlistentry>
  256. <varlistentry id="tc">
  257. <term>
  258. <command>tc</command>
  259. </term>
  260. <listitem>
  261. <para>Traffic Controlling Executable; this is for Quality Of
  262. Service (QOS) and Class Of Service (COS)
  263. implementations
  264. </para>
  265. <para><command>tc qdisc</command> allows users to setup the queueing
  266. discipline
  267. </para>
  268. <para><command>tc class</command> allows users to setup classes based on
  269. the queuing discipline scheduling
  270. </para>
  271. <para><command>tc estimator</command> allows users to estimate the
  272. network flow into a network
  273. </para>
  274. <para><command>tc filter</command> allows users to setup the QOS/COS
  275. packet filtering
  276. </para>
  277. <para><command>tc policy</command> allows users to setup the QOS/COS
  278. policies
  279. </para>
  280. <indexterm zone="ch-system-iproute2 ss">
  281. <primary sortas="b-tc">tc</primary>
  282. </indexterm>
  283. </listitem>
  284. </varlistentry>
  285. </variablelist>
  286. </sect2>
  287. </sect1>