source: chapter08/iproute2.xml@ af612e9a

12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since af612e9a was 258e50e, checked in by David Bryant <davidbryant@…>, 17 months ago

Modified list of tc subcommands to match the man page. Note that the
help screen doesn't match the man page. Also, there's an action
("tc chain") in the synopsis section that is not further explained
in the body of man tc. Documentation may be inaccurate.

  • Property mode set to 100644
File size: 10.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 depends on Berkeley DB, which is not installed in
46 LFS. However, a directory and a man page for <command>arpd</command> will still
47 be installed. Prevent this by running the commands shown below.
48 (If the <command>arpd</command> program 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 NETNS_RUN_DIR=/run/netns</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, ifstat, ip, lnstat,
97 nstat, 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 front end</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="ifstat">
140 <term><command>ifstat</command></term>
141 <listitem>
142 <para>Shows interface statistics, including the number of
143 packets transmitted and received, by interface</para>
144 <indexterm zone="ch-system-iproute2 ifstat">
145 <primary sortas="b-ifstat">ifstat</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="ip">
151 <term><command>ip</command></term>
152 <listitem>
153 <para>The main executable. It has several different functions, including these:</para>
154
155 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
156 allows users to look at the state of devices and to make changes</para>
157
158 <para><command>ip addr</command> allows users to look at addresses and
159 their properties, add new addresses, and delete old ones</para>
160
161 <para><command>ip neighbor</command> allows users to look at neighbor
162 bindings and their properties, add new neighbor entries, and delete
163 old ones</para>
164
165 <para><command>ip rule</command> allows users to look at the routing
166 policies and change them</para>
167
168 <para><command>ip route</command> allows users to look at the routing
169 table and change routing table rules</para>
170
171 <para><command>ip tunnel</command> allows users to look at the IP
172 tunnels and their properties, and change them</para>
173
174 <para><command>ip maddr</command> allows users to look at the multicast
175 addresses and their properties, and change them</para>
176
177 <para><command>ip mroute</command> allows users to set, change, or
178 delete the multicast routing</para>
179
180 <para><command>ip monitor</command> allows users to continuously monitor
181 the state of devices, addresses and routes</para>
182 <indexterm zone="ch-system-iproute2 ip">
183 <primary sortas="b-ip">ip</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="lnstat">
189 <term><command>lnstat</command></term>
190 <listitem>
191 <para>Provides Linux network statistics; it is a generalized and more
192 feature-complete replacement for the old <command>rtstat</command>
193 program</para>
194 <indexterm zone="ch-system-iproute2 lnstat">
195 <primary sortas="b-lnstat">lnstat</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="nstat">
201 <term><command>nstat</command></term>
202 <listitem>
203 <para>Displays network statistics</para>
204 <indexterm zone="ch-system-iproute2 nstat">
205 <primary sortas="b-nstat">nstat</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="routel">
211 <term><command>routel</command></term>
212 <listitem>
213 <para>A component of <command>ip route</command>, for listing
214 the routing tables</para>
215 <indexterm zone="ch-system-iproute2 routel">
216 <primary sortas="b-routel">routel</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="rtacct">
222 <term><command>rtacct</command></term>
223 <listitem>
224 <para>Displays the contents of
225 <filename>/proc/net/rt_acct</filename></para>
226 <indexterm zone="ch-system-iproute2 rtacct">
227 <primary sortas="b-rtacct">rtacct</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="rtmon">
233 <term><command>rtmon</command></term>
234 <listitem>
235 <para>Route monitoring utility</para>
236 <indexterm zone="ch-system-iproute2 rtmon">
237 <primary sortas="b-rtmon">rtmon</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="rtpr">
243 <term><command>rtpr</command></term>
244 <listitem>
245 <para>Converts the output of <command>ip -o</command> into a
246 readable form</para>
247 <indexterm zone="ch-system-iproute2 rtpr">
248 <primary sortas="b-rtpr">rtpr</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="rtstat">
254 <term><command>rtstat</command></term>
255 <listitem>
256 <para>Route status utility</para>
257 <indexterm zone="ch-system-iproute2 rtstat">
258 <primary sortas="b-rtstat">rtstat</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="ss">
264 <term><command>ss</command></term>
265 <listitem>
266 <para>Similar to the <command>netstat</command> command; shows active
267 connections</para>
268 <indexterm zone="ch-system-iproute2 ss">
269 <primary sortas="b-ss">ss</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="tc">
275 <term><command>tc</command></term>
276 <listitem>
277 <para>Traffic control for Quality of Service
278 (QoS) and Class of Service (CoS) implementations</para>
279
280 <para><command>tc qdisc</command> allows users to set up the queueing
281 discipline</para>
282
283 <para><command>tc class</command> allows users to set up classes based
284 on the queuing discipline scheduling</para>
285
286 <para><command>tc filter</command> allows users to set up the QoS/CoS
287 packet filtering</para>
288
289 <para><command>tc monitor</command> can be used to view changes
290 made to Traffic Control in the kernel.</para>
291
292 <indexterm zone="ch-system-iproute2 ss">
293 <primary sortas="b-tc">tc</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 </variablelist>
299
300 </sect2>
301
302</sect1>
Note: See TracBrowser for help on using the repository browser.