iproute2.xml 11 KB

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