iproute2.xml 10 KB

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