source: chapter06/iproute2.xml@ a52ecd0

6.1 6.1.1
Last change on this file since a52ecd0 was a52ecd0, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Ported r4885 and r4888 from trunk: Replaced IPRuote2 patch by a sed command

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1/BOOK@4891 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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