iproute2.xml 11 KB

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