source: chapter06/iproute2.xml@ 2ca8941

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 2ca8941 was 2ca8941, checked in by Matthew Burgess <matthew@…>, 11 years ago

Remove trailing whitespace from all files.

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

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