source: clfs-sysroot/BOOK/final-system/common/iproute2.xml@ d3318e9

Last change on this file since d3318e9 was c439b8a, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated CLFS-Sysroot book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 9.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-iproute2" role="wrap">
9 <?dbhtml filename="iproute2.html"?>
10
11 <title>IPRoute2-&iproute2-version;</title>
12
13 <indexterm zone="ch-system-iproute2">
14 <primary sortas="a-IPRoute2">IPRoute2</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The IPRoute2 package contains programs for basic and advanced
21 IPV4-based networking.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of IPRoute2</title>
27
28 <para os="s1">The following command prevents <command>install</command>
29 from trying to strip the binaries:</para>
30
31<screen os="s2"><userinput>for dir in ip misc tc; do
32 cp ${dir}/Makefile{,.orig}
33 sed 's/0755 -s/0755/' ${dir}/Makefile.orig &gt; ${dir}/Makefile
34done</userinput></screen>
35
36 <para os="s3">The <command>arpd</command> binary included in this package is
37 dependent on Berkeley DB. Because <command>arpd</command> is not a
38 very common requirement on a base Linux system, remove the dependency
39 on Berkeley DB by applying the <command>sed</command> command below.
40 If 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"/>.</para>
43
44<screen os="s4"><userinput>cp misc/Makefile{,.orig}
45sed '/^TARGETS/s@arpd@@g' misc/Makefile.orig &gt; misc/Makefile</userinput></screen>
46
47 <para os="a">Compile the package:</para>
48
49<screen os="b"><userinput>make CC="${CC}" SBINDIR=/sbin</userinput></screen>
50
51 <variablelist os="c">
52 <title>The meaning of the make option:</title>
53
54 <varlistentry>
55 <term><parameter>SBINDIR=/sbin</parameter></term>
56 <listitem>
57 <para>This ensures that the IPRoute2 binaries will install into
58 <filename class="directory">/sbin</filename>. This is the correct
59 location according to the FHS, because some of the IPRoute2 binaries
60 are used by the CLFS-Bootscripts package.</para>
61 </listitem>
62 </varlistentry>
63 </variablelist>
64
65 <para os="d">This package does not come with a test suite.</para>
66
67 <para os="e">Install the package:</para>
68
69<screen os="f"><userinput>make DESTDIR=${CLFS} SBINDIR=/sbin install</userinput></screen>
70
71 </sect2>
72
73 <sect2 id="contents-iproute2" role="content">
74 <title>Contents of IPRoute2</title>
75
76 <segmentedlist>
77 <segtitle>Installed programs</segtitle>
78
79 <seglistitem>
80 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
81 routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
82 and tc</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="ctstat">
92 <term><command>ctstat</command></term>
93 <listitem>
94 <para>Connection status utility</para>
95 <indexterm zone="ch-system-iproute2 ctstat">
96 <primary sortas="b-ctstat">ctstat</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="ifcfg">
102 <term><command>ifcfg</command></term>
103 <listitem>
104 <para>A shell script wrapper for the <command>ip</command>
105 command</para>
106 <indexterm zone="ch-system-iproute2 ifcfg">
107 <primary sortas="b-ifcfg">ifcfg</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="ifstat">
113 <term><command>ifstat</command></term>
114 <listitem>
115 <para>Shows the interface statistics, including the amount of
116 transmitted 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
123 <varlistentry id="ip">
124 <term><command>ip</command></term>
125 <listitem>
126 <para>The main executable. It has several different functions:</para>
127
128 <para><command>ip link <replaceable>[device]</replaceable></command>
129 allows users to look at the state of devices and to make changes</para>
130
131 <para><command>ip addr</command> allows users to look at addresses and
132 their properties, add new addresses, and delete old ones</para>
133
134 <para><command>ip neighbor</command> allows users to look at neighbor
135 bindings and their properties, add new neighbor entries, and delete
136 old ones</para>
137
138 <para><command>ip rule</command> allows users to look at the routing
139 policies and change them</para>
140
141 <para><command>ip route</command> allows users to look at the routing
142 table and change routing table rules</para>
143
144 <para><command>ip tunnel</command> allows users to look at the IP
145 tunnels and their properties, and change them</para>
146
147 <para><command>ip maddr</command> allows users to look at the multicast
148 addresses and their properties, and change them</para>
149
150 <para><command>ip mroute</command> allows users to set, change, or
151 delete the multicast routing</para>
152
153 <para><command>ip monitor</command> allows users to continously monitor
154 the state of devices, addresses and routes</para>
155 <indexterm zone="ch-system-iproute2 ip">
156 <primary sortas="b-ip">ip</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="lnstat">
162 <term><command>lnstat</command></term>
163 <listitem>
164 <para>Provides Linux network statistics. It is a generalized and more
165 feature-complete replacement for the old <command>rtstat</command>
166 program</para>
167 <indexterm zone="ch-system-iproute2 lnstat">
168 <primary sortas="b-lnstat">lnstat</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="nstat">
174 <term><command>nstat</command></term>
175 <listitem>
176 <para>Shows network statistics</para>
177 <indexterm zone="ch-system-iproute2 nstat">
178 <primary sortas="b-nstat">nstat</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="routef">
184 <term><command>routef</command></term>
185 <listitem>
186 <para>A component of <command>ip route</command>. This is for flushing
187 the routing tables</para>
188 <indexterm zone="ch-system-iproute2 routef">
189 <primary sortas="b-routef">routef</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="routel">
195 <term><command>routel</command></term>
196 <listitem>
197 <para>A component of <command>ip route</command>. This is for listing
198 the routing tables</para>
199 <indexterm zone="ch-system-iproute2 routel">
200 <primary sortas="b-routel">routel</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="rtacct">
206 <term><command>rtacct</command></term>
207 <listitem>
208 <para>Displays the contents of
209 <filename>/proc/net/rt_acct</filename></para>
210 <indexterm zone="ch-system-iproute2 rtacct">
211 <primary sortas="b-rtacct">rtacct</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="rtmon">
217 <term><command>rtmon</command></term>
218 <listitem>
219 <para>Route monitoring utility</para>
220 <indexterm zone="ch-system-iproute2 rtmon">
221 <primary sortas="b-rtmon">rtmon</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="rtpr">
227 <term><command>rtpr</command></term>
228 <listitem>
229 <para>Converts the output of <command>ip -o</command> back into a
230 readable form</para>
231 <indexterm zone="ch-system-iproute2 rtpr">
232 <primary sortas="b-rtpr">rtpr</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="rtstat">
238 <term><command>rtstat</command></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
247 <varlistentry id="ss">
248 <term><command>ss</command></term>
249 <listitem>
250 <para>Similar to the <command>netstat</command> command; shows
251 active connections</para>
252 <indexterm zone="ch-system-iproute2 ss">
253 <primary sortas="b-ss">ss</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="tc">
259 <term><command>tc</command></term>
260 <listitem>
261 <para>Traffic Controlling Executable; this is for Quality Of Service
262 (QOS) and Class Of Service (COS) implementations</para>
263
264 <para><command>tc qdisc</command> allows users to setup the queueing
265 discipline</para>
266
267 <para><command>tc class</command> allows users to setup classes based on
268 the queuing discipline scheduling</para>
269
270 <para><command>tc estimator</command> allows users to estimate the
271 network flow into a network</para>
272
273 <para><command>tc filter</command> allows users to setup the QOS/COS
274 packet filtering</para>
275
276 <para><command>tc policy</command> allows users to setup the QOS/COS
277 policies</para>
278 <indexterm zone="ch-system-iproute2 ss">
279 <primary sortas="b-tc">tc</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.