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

Last change on this file since f12c7f6 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 10.4 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 &env-target;
26
27 <sect2 role="installation">
28 <title>Installation of IPRoute2</title>
29
30 <para os="s1">The following command prevents <command>install</command>
31 from trying to strip the binaries:</para>
32
33<screen os="s2"><userinput>for dir in ip misc tc; do
34 cp ${dir}/Makefile{,.orig}
35 sed 's/0755 -s/0755/' ${dir}/Makefile.orig &gt; ${dir}/Makefile
36done</userinput></screen>
37
38 <para os="cb1">The <command>arpd</command> binary included in this package is
39 dependent on Berkeley DB. Because <command>arpd</command> is not a
40 very common requirement on a base Linux system, remove the dependency
41 on Berkeley DB by applying the <command>sed</command> command below.
42 If the <command>arpd</command> binary is needed, instructions for
43 compiling Berkeley DB can be found in CBLFS at <ulink
44 url="&cblfs-root;index.php/Berkeley_DB"/>.</para>
45
46<screen os="s4"><userinput>cp misc/Makefile{,.orig}
47sed '/^TARGETS/s@arpd@@g' misc/Makefile.orig &gt; misc/Makefile</userinput></screen>
48
49 <para os="a">Compile the package:</para>
50
51<screen os="b"><userinput>make DESTDIR=${CLFS} CC="${CC}" \
52 DOCDIR=/usr/share/doc/iproute2 \
53 MANDIR=/usr/share/man</userinput></screen>
54
55 <variablelist os="c">
56 <title>The meaning of the make option:</title>
57
58 <varlistentry>
59 <term><parameter>DESTDIR=/</parameter></term>
60 <listitem>
61 <para>This option overrides the default DESTDIR of /usr, so that
62 that the IPRoute2 binaries will be installed into
63 <filename class="directory">/sbin</filename>. This is the correct
64 location according to the FHS, because some of the IPRoute2 binaries
65 are used by the CLFS-Bootscripts package.</para>
66 </listitem>
67 </varlistentry>
68
69 <varlistentry>
70 <term><parameter>DOCDIR=/usr/share/doc/iproute2 MANDIR=/usr/share/man</parameter></term>
71 <listitem>
72 <para>The DESTDIR=/ parameter would cause documentation to be
73 installed into /share/doc and /share/man. These options ensure
74 the docs are installed to the correct locations.</para>
75 </listitem>
76 </varlistentry>
77 </variablelist>
78
79 <para os="d">Install the package:</para>
80
81<screen os="e"><userinput>make DESTDIR=${CLFS} \
82 DOCDIR=/usr/share/doc/iproute2 \
83 MANDIR=/usr/share/man install</userinput></screen>
84
85 </sect2>
86
87 <sect2 id="contents-iproute2" role="content">
88 <title>Contents of IPRoute2</title>
89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92
93 <seglistitem>
94 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
95 routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
96 and tc</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="ctstat">
106 <term><command>ctstat</command></term>
107 <listitem>
108 <para>Connection status utility</para>
109 <indexterm zone="ch-system-iproute2 ctstat">
110 <primary sortas="b-ctstat">ctstat</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="ifcfg">
116 <term><command>ifcfg</command></term>
117 <listitem>
118 <para>A shell script wrapper for the <command>ip</command>
119 command</para>
120 <indexterm zone="ch-system-iproute2 ifcfg">
121 <primary sortas="b-ifcfg">ifcfg</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="ifstat">
127 <term><command>ifstat</command></term>
128 <listitem>
129 <para>Shows the interface statistics, including the amount of
130 transmitted and received packets by interface</para>
131 <indexterm zone="ch-system-iproute2 ifstat">
132 <primary sortas="b-ifstat">ifstat</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="ip">
138 <term><command>ip</command></term>
139 <listitem>
140 <para>The main executable. It has several different functions:</para>
141
142 <para><command>ip link <replaceable>[device]</replaceable></command>
143 allows users to look at the state of devices and to make changes</para>
144
145 <para><command>ip addr</command> allows users to look at addresses and
146 their properties, add new addresses, and delete old ones</para>
147
148 <para><command>ip neighbor</command> allows users to look at neighbor
149 bindings and their properties, add new neighbor entries, and delete
150 old ones</para>
151
152 <para><command>ip rule</command> allows users to look at the routing
153 policies and change them</para>
154
155 <para><command>ip route</command> allows users to look at the routing
156 table and change routing table rules</para>
157
158 <para><command>ip tunnel</command> allows users to look at the IP
159 tunnels and their properties, and change them</para>
160
161 <para><command>ip maddr</command> allows users to look at the multicast
162 addresses and their properties, and change them</para>
163
164 <para><command>ip mroute</command> allows users to set, change, or
165 delete the multicast routing</para>
166
167 <para><command>ip monitor</command> allows users to continously monitor
168 the state of devices, addresses and routes</para>
169 <indexterm zone="ch-system-iproute2 ip">
170 <primary sortas="b-ip">ip</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="lnstat">
176 <term><command>lnstat</command></term>
177 <listitem>
178 <para>Provides Linux network statistics. It is a generalized and more
179 feature-complete replacement for the old <command>rtstat</command>
180 program</para>
181 <indexterm zone="ch-system-iproute2 lnstat">
182 <primary sortas="b-lnstat">lnstat</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="nstat">
188 <term><command>nstat</command></term>
189 <listitem>
190 <para>Shows network statistics</para>
191 <indexterm zone="ch-system-iproute2 nstat">
192 <primary sortas="b-nstat">nstat</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="routef">
198 <term><command>routef</command></term>
199 <listitem>
200 <para>A component of <command>ip route</command>. This is for flushing
201 the routing tables</para>
202 <indexterm zone="ch-system-iproute2 routef">
203 <primary sortas="b-routef">routef</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="routel">
209 <term><command>routel</command></term>
210 <listitem>
211 <para>A component of <command>ip route</command>. This is for listing
212 the routing tables</para>
213 <indexterm zone="ch-system-iproute2 routel">
214 <primary sortas="b-routel">routel</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="rtacct">
220 <term><command>rtacct</command></term>
221 <listitem>
222 <para>Displays the contents of
223 <filename>/proc/net/rt_acct</filename></para>
224 <indexterm zone="ch-system-iproute2 rtacct">
225 <primary sortas="b-rtacct">rtacct</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="rtmon">
231 <term><command>rtmon</command></term>
232 <listitem>
233 <para>Route monitoring utility</para>
234 <indexterm zone="ch-system-iproute2 rtmon">
235 <primary sortas="b-rtmon">rtmon</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="rtpr">
241 <term><command>rtpr</command></term>
242 <listitem>
243 <para>Converts the output of <command>ip -o</command> back into a
244 readable form</para>
245 <indexterm zone="ch-system-iproute2 rtpr">
246 <primary sortas="b-rtpr">rtpr</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="rtstat">
252 <term><command>rtstat</command></term>
253 <listitem>
254 <para>Route status utility</para>
255 <indexterm zone="ch-system-iproute2 rtstat">
256 <primary sortas="b-rtstat">rtstat</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="ss">
262 <term><command>ss</command></term>
263 <listitem>
264 <para>Similar to the <command>netstat</command> command; shows
265 active connections</para>
266 <indexterm zone="ch-system-iproute2 ss">
267 <primary sortas="b-ss">ss</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="tc">
273 <term><command>tc</command></term>
274 <listitem>
275 <para>Traffic Controlling Executable; this is for Quality Of Service
276 (QOS) and Class Of Service (COS) implementations</para>
277
278 <para><command>tc qdisc</command> allows users to setup the queueing
279 discipline</para>
280
281 <para><command>tc class</command> allows users to setup classes based on
282 the queuing discipline scheduling</para>
283
284 <para><command>tc estimator</command> allows users to estimate the
285 network flow into a network</para>
286
287 <para><command>tc filter</command> allows users to setup the QOS/COS
288 packet filtering</para>
289
290 <para><command>tc policy</command> allows users to setup the QOS/COS
291 policies</para>
292 <indexterm zone="ch-system-iproute2 ss">
293 <primary sortas="b-tc">tc</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 </variablelist>
299
300 </sect2>
301
302</sect1>
Note: See TracBrowser for help on using the repository browser.