source: chapter06/iproute2.xml@ 5cc38cf

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.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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 5cc38cf was bf10add, checked in by Matthew Burgess <matthew@…>, 13 years ago

Prevent some arpd artefacts from being installed by IPRoute2. Fixes #2977.

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

  • Property mode set to 100644
File size: 11.1 KB
RevLine 
[a088964]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a088964]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[bdea25ce]7
[81fd230]8<sect1 id="ch-system-iproute2" role="wrap">
[bdea25ce]9 <?dbhtml filename="iproute2.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>iproute2</productname>
13 <productnumber>&iproute2-version;</productnumber>
14 <address>&iproute2-url;</address>
15 </sect1info>
16
[f0d59f2]17 <title>IPRoute2-&iproute2-version;</title>
[bdea25ce]18
[a088964]19 <indexterm zone="ch-system-iproute2">
[89ed081]20 <primary sortas="a-IPRoute2">IPRoute2</primary>
[a088964]21 </indexterm>
[bdea25ce]22
[a088964]23 <sect2 role="package">
24 <title/>
[bdea25ce]25
26 <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
27 networking.</para>
28
[a088964]29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[bdea25ce]32
[a088964]33 <seglistitem>
[e4a5635]34 <seg>&iproute2-ch6-sbu;</seg>
35 <seg>&iproute2-ch6-du;</seg>
[a088964]36 </seglistitem>
37 </segmentedlist>
[bdea25ce]38
[a088964]39 </sect2>
[bdea25ce]40
[a088964]41 <sect2 role="installation">
[f0d59f2]42 <title>Installation of IPRoute2</title>
[a088964]43
[9cccea2]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
[bf10add]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"/>.
[9cccea2]50 </para>
51
[bf10add]52<screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
53sed -i /ARPD/d Makefile
54rm man/man8/arpd.8</userinput></screen>
[9cccea2]55
[a088964]56 <para>Compile the package:</para>
57
[aa909a0]58<screen><userinput remap="make">make DESTDIR=</userinput></screen>
[81fd230]59
60 <variablelist>
[aa909a0]61 <title>The meaning of the make option:</title>
[7af598d1]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>
[bdea25ce]71
[81fd230]72 </variablelist>
73
[0ebe029b]74 <para>This package comes with a test suite, but due to assumptions it makes,
[971be6b]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>
[0be3d41]82
[81fd230]83 <para>Install the package:</para>
84
[bf10add]85<screen><userinput remap="install">make DESTDIR= MANDIR=/usr/share/man \
[bdb3cca]86 DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
[bdea25ce]87
[a088964]88 </sect2>
89
90 <sect2 id="contents-iproute2" role="content">
[f0d59f2]91 <title>Contents of IPRoute2</title>
[bdea25ce]92
[81fd230]93 <segmentedlist>
94 <segtitle>Installed programs</segtitle>
[fe05b08]95 <segtitle>Installed directories</segtitle>
[bdea25ce]96
[81fd230]97 <seglistitem>
[9cccea2]98 <seg>ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
[2791a8e]99 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
[79f9e00]100 and tc</seg>
[fe05b08]101 <seg>/etc/iproute2, /lib/tc, /usr/share/doc/iproute2-&iproute2-version;,
102 /usr/lib/tc</seg>
[81fd230]103 </seglistitem>
104 </segmentedlist>
105
[bdea25ce]106 <variablelist>
107 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
108 <?dbfo list-presentation="list"?>
109 <?dbhtml list-presentation="table"?>
110
[46a500e]111 <varlistentry id="ctstat">
[bdea25ce]112 <term><command>ctstat</command></term>
[46a500e]113 <listitem>
[89ed081]114 <para>Connection status utility</para>
[46a500e]115 <indexterm zone="ch-system-iproute2 ctstat">
[005dc3f]116 <primary sortas="b-ctstat">ctstat</primary>
[46a500e]117 </indexterm>
118 </listitem>
119 </varlistentry>
120
[2791a8e]121 <varlistentry id="genl">
122 <term><command>genl</command></term>
123 <listitem>
124 <para></para>
125 <indexterm zone="ch-system-iproute2 genl">
126 <primary sortas="b-genl">genl</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
[46a500e]131 <varlistentry id="ifcfg">
[bdea25ce]132 <term><command>ifcfg</command></term>
[46a500e]133 <listitem>
[46fbbc2]134 <para>A shell script wrapper for the <command>ip</command> command.
135 Note that it requires the <command>arping</command> and
136 <command>rdisk</command> programs from the
137 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.</para>
[46a500e]138 <indexterm zone="ch-system-iproute2 ifcfg">
139 <primary sortas="b-ifcfg">ifcfg</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
[81fd230]143
144 <varlistentry id="ifstat">
[bdea25ce]145 <term><command>ifstat</command></term>
[81fd230]146 <listitem>
[bdea25ce]147 <para>Shows the interface statistics, including the amount of
148 transmitted and received packets by interface</para>
[81fd230]149 <indexterm zone="ch-system-iproute2 ifstat">
150 <primary sortas="b-ifstat">ifstat</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="ip">
[bdea25ce]156 <term><command>ip</command></term>
[81fd230]157 <listitem>
158 <para>The main executable. It has several different functions:</para>
159
[0090db5]160 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
[bdea25ce]161 allows users to look at the state of devices and to make changes</para>
[81fd230]162
163 <para><command>ip addr</command> allows users to look at addresses and
[bdea25ce]164 their properties, add new addresses, and delete old ones</para>
[81fd230]165
[bdea25ce]166 <para><command>ip neighbor</command> allows users to look at neighbor
167 bindings and their properties, add new neighbor entries, and delete
168 old ones</para>
[81fd230]169
170 <para><command>ip rule</command> allows users to look at the routing
[bdea25ce]171 policies and change them</para>
[81fd230]172
173 <para><command>ip route</command> allows users to look at the routing
[bdea25ce]174 table and change routing table rules</para>
[81fd230]175
176 <para><command>ip tunnel</command> allows users to look at the IP
[bdea25ce]177 tunnels and their properties, and change them</para>
[81fd230]178
179 <para><command>ip maddr</command> allows users to look at the multicast
[bdea25ce]180 addresses and their properties, and change them</para>
[81fd230]181
182 <para><command>ip mroute</command> allows users to set, change, or
[bdea25ce]183 delete the multicast routing</para>
[81fd230]184
[bdea25ce]185 <para><command>ip monitor</command> allows users to continously monitor
186 the state of devices, addresses and routes</para>
[81fd230]187 <indexterm zone="ch-system-iproute2 ip">
188 <primary sortas="b-ip">ip</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
[46a500e]193 <varlistentry id="lnstat">
[bdea25ce]194 <term><command>lnstat</command></term>
[46a500e]195 <listitem>
196 <para>Provides Linux network statistics. It is a generalized and more
[bdea25ce]197 feature-complete replacement for the old <command>rtstat</command>
198 program</para>
[46a500e]199 <indexterm zone="ch-system-iproute2 lnstat">
[005dc3f]200 <primary sortas="b-lnstat">lnstat</primary>
[46a500e]201 </indexterm>
202 </listitem>
203 </varlistentry>
204
[81fd230]205 <varlistentry id="nstat">
[bdea25ce]206 <term><command>nstat</command></term>
[81fd230]207 <listitem>
[89ed081]208 <para>Shows network statistics</para>
[81fd230]209 <indexterm zone="ch-system-iproute2 nstat">
210 <primary sortas="b-nstat">nstat</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="routef">
[bdea25ce]216 <term><command>routef</command></term>
[81fd230]217 <listitem>
[bdea25ce]218 <para>A component of <command>ip route</command>. This is for flushing
219 the routing tables</para>
[81fd230]220 <indexterm zone="ch-system-iproute2 routef">
221 <primary sortas="b-routef">routef</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="routel">
[bdea25ce]227 <term><command>routel</command></term>
[81fd230]228 <listitem>
[bdea25ce]229 <para>A component of <command>ip route</command>. This is for listing
230 the routing tables</para>
[81fd230]231 <indexterm zone="ch-system-iproute2 routel">
232 <primary sortas="b-routel">routel</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
[46a500e]237 <varlistentry id="rtacct">
[bdea25ce]238 <term><command>rtacct</command></term>
[46a500e]239 <listitem>
[bdea25ce]240 <para>Displays the contents of
241 <filename>/proc/net/rt_acct</filename></para>
[46a500e]242 <indexterm zone="ch-system-iproute2 rtacct">
243 <primary sortas="b-rtacct">rtacct</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
[81fd230]248 <varlistentry id="rtmon">
[bdea25ce]249 <term><command>rtmon</command></term>
[81fd230]250 <listitem>
[89ed081]251 <para>Route monitoring utility</para>
[81fd230]252 <indexterm zone="ch-system-iproute2 rtmon">
253 <primary sortas="b-rtmon">rtmon</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
[46a500e]258 <varlistentry id="rtpr">
[bdea25ce]259 <term><command>rtpr</command></term>
[46a500e]260 <listitem>
261 <para>Converts the output of <command>ip -o</command> back into a
[bdea25ce]262 readable form</para>
[46a500e]263 <indexterm zone="ch-system-iproute2 rtpr">
264 <primary sortas="b-rtpr">rtpr</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
[81fd230]269 <varlistentry id="rtstat">
[bdea25ce]270 <term><command>rtstat</command></term>
[81fd230]271 <listitem>
[89ed081]272 <para>Route status utility</para>
[81fd230]273 <indexterm zone="ch-system-iproute2 rtstat">
274 <primary sortas="b-rtstat">rtstat</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="ss">
[bdea25ce]280 <term><command>ss</command></term>
[81fd230]281 <listitem>
[bdea25ce]282 <para>Similar to the <command>netstat</command> command; shows active
283 connections</para>
[81fd230]284 <indexterm zone="ch-system-iproute2 ss">
285 <primary sortas="b-ss">ss</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="tc">
[bdea25ce]291 <term><command>tc</command></term>
[81fd230]292 <listitem>
[bdea25ce]293 <para>Traffic Controlling Executable; this is for Quality Of Service
294 (QOS) and Class Of Service (COS) implementations</para>
[81fd230]295
296 <para><command>tc qdisc</command> allows users to setup the queueing
[bdea25ce]297 discipline</para>
[81fd230]298
[bdea25ce]299 <para><command>tc class</command> allows users to setup classes based
300 on the queuing discipline scheduling</para>
[81fd230]301
302 <para><command>tc estimator</command> allows users to estimate the
[bdea25ce]303 network flow into a network</para>
[81fd230]304
305 <para><command>tc filter</command> allows users to setup the QOS/COS
[bdea25ce]306 packet filtering</para>
[81fd230]307
308 <para><command>tc policy</command> allows users to setup the QOS/COS
[bdea25ce]309 policies</para>
[81fd230]310 <indexterm zone="ch-system-iproute2 ss">
311 <primary sortas="b-tc">tc</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
[bdea25ce]315
[81fd230]316 </variablelist>
[bdea25ce]317
[a088964]318 </sect2>
[81fd230]319
[bdea25ce]320</sect1>
Note: See TracBrowser for help on using the repository browser.