source: chapter06/iproute2.xml@ be7082f

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.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 be7082f was 3d2019b, checked in by Matthew Burgess <matthew@…>, 19 years ago

Upgrade to iproute2-051007

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

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