source: chapter06/iproute2.xml@ 7af598d1

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.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 7af598d1 was 7af598d1, checked in by DJ Lucas <dj@…>, 16 years ago

Corrected installation prefixes of Iproute2 package.

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