source: chapter06/iproute2.xml@ 85ce884e

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 12.2 12.2-rc1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 85ce884e was ce935eb, checked in by Matthew Burgess <matthew@…>, 12 years ago

Upgrade to IPRoute2-3.6.0. Fixes #3196.

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

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