source: chapter06/iproute2.xml@ 46a500e

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 46a500e was 46a500e, checked in by Matthew Burgess <matthew@…>, 19 years ago
  • Upgrade to iproute2-2.6.11-050310

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

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