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

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

Fix flex compilation issue.
fix iproute2 formatting.

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