source: chapter06/iproute2.xml@ d65b365

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 7.3 7.4 7.5 7.6 7.7 7.8 7.9 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 d65b365 was d65b365, checked in by Matthew Burgess <matthew@…>, 11 years ago

Upgrade to IPRoute2-3.8.0. Fixes #3291.

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

  • Property mode set to 100644
File size: 11.6 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 <sect1info condition="script">
12 <productname>iproute2</productname>
13 <productnumber>&iproute2-version;</productnumber>
14 <address>&iproute2-url;</address>
15 </sect1info>
16
17 <title>IPRoute2-&iproute2-version;</title>
18
19 <indexterm zone="ch-system-iproute2">
20 <primary sortas="a-IPRoute2">IPRoute2</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
27 networking.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&iproute2-ch6-sbu;</seg>
35 <seg>&iproute2-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of IPRoute2</title>
43
44 <para>The <command>arpd</command> binary included in this package is
45 dependent on Berkeley DB. Because <command>arpd</command> is not a very
46 common requirement on a base Linux system, remove the dependency on Berkeley
47 DB by applying the commands below. If the <command>arpd</command> binary is
48 needed, instructions for compiling Berkeley DB can be found in the BLFS Book
49 at <ulink url="&blfs-root;view/svn/server/databases.html#db"/>.
50 </para>
51
52<screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
53sed -i /ARPD/d Makefile
54sed -i 's/arpd.8//' man/man8/Makefile</userinput></screen>
55
56 <para>Remove a compiler flag that causes the compilation to fail:</para>
57<screen><userinput remap="pre">sed -i 's/-Werror//' Makefile</userinput></screen>
58
59 <para>Compile the package:</para>
60
61<screen><userinput remap="make">make DESTDIR=</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the make option:</title>
65
66 <varlistentry>
67 <term><parameter>DESTDIR=</parameter></term>
68 <listitem>
69 <para>This ensures that the IPRoute2 binaries will install into
70 the correct directory. By default, <parameter>DESTDIR</parameter> is
71 set to <filename class="directory">/usr</filename>.</para>
72 </listitem>
73 </varlistentry>
74
75 </variablelist>
76
77 <para>This package comes with a test suite, but due to assumptions it makes,
78 it is not possible to reliably run these tests from within the chroot
79 environment. If you wish to run these tests after booting into your new LFS
80 system, ensure you select <filename>/proc/config.gz</filename>
81 CONFIG_IKCONFIG_PROC (&quot;General setup&quot; -> &quot;Enable access to
82 .config through /proc/config.gz&quot;) support into your kernel then run
83 'make alltests' from the <filename class="directory">testsuite/</filename>
84 subdirectory.</para>
85
86 <para>Install the package:</para>
87
88<screen><userinput remap="install">make DESTDIR= \
89 MANDIR=/usr/share/man \
90 DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
91
92 </sect2>
93
94 <sect2 id="contents-iproute2" role="content">
95 <title>Contents of IPRoute2</title>
96
97 <segmentedlist>
98 <segtitle>Installed programs</segtitle>
99 <segtitle>Installed directories</segtitle>
100
101 <seglistitem>
102 <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
103 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
104 and tc</seg>
105 <seg>/etc/iproute2, /lib/tc, /usr/share/doc/iproute2-&iproute2-version;,
106 /usr/lib/tc</seg>
107 </seglistitem>
108 </segmentedlist>
109
110 <variablelist>
111 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
112 <?dbfo list-presentation="list"?>
113 <?dbhtml list-presentation="table"?>
114
115 <varlistentry id="bridge">
116 <term><command>bridge</command></term>
117 <listitem>
118 <para>Configures network bridges</para>
119 <indexterm zone="ch-system-iproute2 bridge">
120 <primary sortas="b-bridge">bridge</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="ctstat">
126 <term><command>ctstat</command></term>
127 <listitem>
128 <para>Connection status utility</para>
129 <indexterm zone="ch-system-iproute2 ctstat">
130 <primary sortas="b-ctstat">ctstat</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="genl">
136 <term><command>genl</command></term>
137 <listitem>
138 <para></para>
139 <indexterm zone="ch-system-iproute2 genl">
140 <primary sortas="b-genl">genl</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="ifcfg">
146 <term><command>ifcfg</command></term>
147 <listitem>
148 <para>A shell script wrapper for the <command>ip</command> command.
149 Note that it requires the <command>arping</command> and
150 <command>rdisk</command> programs from the
151 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.</para>
152 <indexterm zone="ch-system-iproute2 ifcfg">
153 <primary sortas="b-ifcfg">ifcfg</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="ifstat">
159 <term><command>ifstat</command></term>
160 <listitem>
161 <para>Shows the interface statistics, including the amount of
162 transmitted and received packets by interface</para>
163 <indexterm zone="ch-system-iproute2 ifstat">
164 <primary sortas="b-ifstat">ifstat</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="ip">
170 <term><command>ip</command></term>
171 <listitem>
172 <para>The main executable. It has several different functions:</para>
173
174 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
175 allows users to look at the state of devices and to make changes</para>
176
177 <para><command>ip addr</command> allows users to look at addresses and
178 their properties, add new addresses, and delete old ones</para>
179
180 <para><command>ip neighbor</command> allows users to look at neighbor
181 bindings and their properties, add new neighbor entries, and delete
182 old ones</para>
183
184 <para><command>ip rule</command> allows users to look at the routing
185 policies and change them</para>
186
187 <para><command>ip route</command> allows users to look at the routing
188 table and change routing table rules</para>
189
190 <para><command>ip tunnel</command> allows users to look at the IP
191 tunnels and their properties, and change them</para>
192
193 <para><command>ip maddr</command> allows users to look at the multicast
194 addresses and their properties, and change them</para>
195
196 <para><command>ip mroute</command> allows users to set, change, or
197 delete the multicast routing</para>
198
199 <para><command>ip monitor</command> allows users to continuously monitor
200 the state of devices, addresses and routes</para>
201 <indexterm zone="ch-system-iproute2 ip">
202 <primary sortas="b-ip">ip</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="lnstat">
208 <term><command>lnstat</command></term>
209 <listitem>
210 <para>Provides Linux network statistics. It is a generalized and more
211 feature-complete replacement for the old <command>rtstat</command>
212 program</para>
213 <indexterm zone="ch-system-iproute2 lnstat">
214 <primary sortas="b-lnstat">lnstat</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="nstat">
220 <term><command>nstat</command></term>
221 <listitem>
222 <para>Shows network statistics</para>
223 <indexterm zone="ch-system-iproute2 nstat">
224 <primary sortas="b-nstat">nstat</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="routef">
230 <term><command>routef</command></term>
231 <listitem>
232 <para>A component of <command>ip route</command>. This is for flushing
233 the routing tables</para>
234 <indexterm zone="ch-system-iproute2 routef">
235 <primary sortas="b-routef">routef</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="routel">
241 <term><command>routel</command></term>
242 <listitem>
243 <para>A component of <command>ip route</command>. This is for listing
244 the routing tables</para>
245 <indexterm zone="ch-system-iproute2 routel">
246 <primary sortas="b-routel">routel</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="rtacct">
252 <term><command>rtacct</command></term>
253 <listitem>
254 <para>Displays the contents of
255 <filename>/proc/net/rt_acct</filename></para>
256 <indexterm zone="ch-system-iproute2 rtacct">
257 <primary sortas="b-rtacct">rtacct</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="rtmon">
263 <term><command>rtmon</command></term>
264 <listitem>
265 <para>Route monitoring utility</para>
266 <indexterm zone="ch-system-iproute2 rtmon">
267 <primary sortas="b-rtmon">rtmon</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="rtpr">
273 <term><command>rtpr</command></term>
274 <listitem>
275 <para>Converts the output of <command>ip -o</command> back into a
276 readable form</para>
277 <indexterm zone="ch-system-iproute2 rtpr">
278 <primary sortas="b-rtpr">rtpr</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="rtstat">
284 <term><command>rtstat</command></term>
285 <listitem>
286 <para>Route status utility</para>
287 <indexterm zone="ch-system-iproute2 rtstat">
288 <primary sortas="b-rtstat">rtstat</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="ss">
294 <term><command>ss</command></term>
295 <listitem>
296 <para>Similar to the <command>netstat</command> command; shows active
297 connections</para>
298 <indexterm zone="ch-system-iproute2 ss">
299 <primary sortas="b-ss">ss</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="tc">
305 <term><command>tc</command></term>
306 <listitem>
307 <para>Traffic Controlling Executable; this is for Quality Of Service
308 (QOS) and Class Of Service (COS) implementations</para>
309
310 <para><command>tc qdisc</command> allows users to setup the queueing
311 discipline</para>
312
313 <para><command>tc class</command> allows users to setup classes based
314 on the queuing discipline scheduling</para>
315
316 <para><command>tc estimator</command> allows users to estimate the
317 network flow into a network</para>
318
319 <para><command>tc filter</command> allows users to setup the QOS/COS
320 packet filtering</para>
321
322 <para><command>tc policy</command> allows users to setup the QOS/COS
323 policies</para>
324 <indexterm zone="ch-system-iproute2 ss">
325 <primary sortas="b-tc">tc</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 </variablelist>
331
332 </sect2>
333
334</sect1>
Note: See TracBrowser for help on using the repository browser.