source: chapter08/iproute2.xml@ a4f63e4

11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 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 a4f63e4 was 60933b9, checked in by Pierre Labastie <pierre.labastie@…>, 2 years ago

iproute2: remove a now useless sed

Upstream do not try anymore to build the *m_ipt modules if
iptables is not found.

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