source: chapter06/iproute2.xml@ 221ae46

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.3 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 221ae46 was ca17032, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Including patches.ent from general.ent

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

  • Property mode set to 100644
File size: 10.5 KB
RevLine 
[a088964]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1770019]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[a088964]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[81fd230]6<sect1 id="ch-system-iproute2" role="wrap">
[f0d59f2]7 <title>IPRoute2-&iproute2-version;</title>
[a088964]8<?dbhtml filename="iproute2.html"?>
9 <indexterm zone="ch-system-iproute2">
[89ed081]10 <primary sortas="a-IPRoute2">IPRoute2</primary>
[a088964]11 </indexterm>
12 <sect2 role="package">
13 <title/>
[f0d59f2]14 <para>The IPRoute2 package contains programs for basic and advanced
[81fd230]15 IPV4-based networking.
16 </para>
[a088964]17 <segmentedlist>
18 <segtitle>&buildtime;</segtitle>
19 <segtitle>&diskspace;</segtitle>
20 <seglistitem>
21 <seg>0.1 SBU</seg>
[eb6d9eb]22 <seg>4.3 MB</seg>
[a088964]23 </seglistitem>
24 </segmentedlist>
[81fd230]25 <segmentedlist>
[45992ae]26 <segtitle>&dependencies;</segtitle>
[81fd230]27 <seglistitem>
28 <seg>GCC, Glibc, Make, Linux-Headers, and Sed</seg>
29 </seglistitem>
30 </segmentedlist>
[a088964]31 </sect2>
32 <sect2 role="installation">
[f0d59f2]33 <title>Installation of IPRoute2</title>
[81fd230]34 <para>The <command>arpd</command> binary included in this package is
35 dependent on Berkeley DB. Because <command>arpd</command> is not a very
36 common requirement on a base Linux system, remove the dependency on
[345194c]37 Berkeley DB by applying the <command>sed</command> command below. If
[81fd230]38 the <command>arpd</command> binary is needed, instructions for
39 compiling Berkeley DB can be found in the BLFS Book at <ulink
[f91c2e4]40 url="&blfs-root;view/svn/server/databases.html#db"/>.
[81fd230]41 </para>
[a088964]42
[401da4c]43 <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
[a088964]44
[f0d59f2]45 <para>Prepare IPRoute2 for compilation:</para>
[3d2019b]46 <screen><userinput>chmod u+x configure &amp;&amp;
47./configure</userinput></screen>
[a088964]48
49 <para>Compile the package:</para>
50
[715f65f]51 <screen><userinput>make SBINDIR=/sbin</userinput></screen>
52
[81fd230]53 <para>The meaning of the make option:</para>
54
55 <variablelist>
56 <varlistentry>
57 <term><parameter>SBINDIR=/sbin</parameter></term>
[fde4f7d]58 <listitem><para>This ensures that the IPRoute2 binaries will install into
59 <filename class="directory">/sbin</filename>. This is the correct location
60 according to the FHS, because some of the IPRoute2 binaries are used by
61 the LFS-Bootscripts package.</para>
[81fd230]62 </listitem>
63 </varlistentry>
64 </variablelist>
65
66 <para>Install the package:</para>
67
68 <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
[a088964]69 </sect2>
70
71 <sect2 id="contents-iproute2" role="content">
[f0d59f2]72 <title>Contents of IPRoute2</title>
[81fd230]73 <segmentedlist>
74 <segtitle>Installed programs</segtitle>
75 <seglistitem>
[46a500e]76 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat, routef,
77 routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss, and tc.
78 </seg>
[81fd230]79 </seglistitem>
80 </segmentedlist>
81
82 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
83<?dbfo list-presentation="list"?>
[8f97096]84<?dbhtml list-presentation="table"?>
[46a500e]85 <varlistentry id="ctstat">
86 <term>
87 <command>ctstat</command>
88 </term>
89 <listitem>
[89ed081]90 <para>Connection status utility</para>
[46a500e]91 <indexterm zone="ch-system-iproute2 ctstat">
[005dc3f]92 <primary sortas="b-ctstat">ctstat</primary>
[46a500e]93 </indexterm>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry id="ifcfg">
98 <term>
99 <command>ifcfg</command>
100 </term>
101 <listitem>
[89ed081]102 <para>A shell script wrapper for the <command>ip</command> command</para>
[46a500e]103 <indexterm zone="ch-system-iproute2 ifcfg">
104 <primary sortas="b-ifcfg">ifcfg</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
[81fd230]108
109 <varlistentry id="ifstat">
110 <term>
111 <command>ifstat</command>
112 </term>
113 <listitem>
[bc2136e]114 <para>Shows the interface statistics, including the amount of transmitted
[e5846ef]115 and received packets by interface</para>
[81fd230]116 <indexterm zone="ch-system-iproute2 ifstat">
117 <primary sortas="b-ifstat">ifstat</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="ip">
123 <term>
124 <command>ip</command>
125 </term>
126 <listitem>
127
128 <para>The main executable. It has several different functions:</para>
129
130 <para><command>ip link <replaceable>[device]</replaceable></command>
[89ed081]131 allows users to look at the state of devices and to make changes
[81fd230]132 </para>
133
134 <para><command>ip addr</command> allows users to look at addresses and
[89ed081]135 their properties, add new addresses, and delete old ones
[81fd230]136 </para>
137
138 <para><command>ip neighbor</command> allows users to look at
139 neighbor bindings and their properties, add new
[89ed081]140 neighbor entries, and delete old ones
[81fd230]141 </para>
142
143 <para><command>ip rule</command> allows users to look at the routing
[89ed081]144 policies and change them
[81fd230]145 </para>
146
147 <para><command>ip route</command> allows users to look at the routing
[89ed081]148 table and change routing table rules
[81fd230]149 </para>
150
151 <para><command>ip tunnel</command> allows users to look at the IP
[89ed081]152 tunnels and their properties, and change them
[81fd230]153 </para>
154
155 <para><command>ip maddr</command> allows users to look at the multicast
[89ed081]156 addresses and their properties, and change them
[81fd230]157 </para>
158
159 <para><command>ip mroute</command> allows users to set, change, or
[89ed081]160 delete the multicast routing
[81fd230]161 </para>
162
163 <para><command>ip monitor</command> allows users to
[89ed081]164 continously monitor the state of devices, addresses and routes
[81fd230]165 </para>
166 <indexterm zone="ch-system-iproute2 ip">
167 <primary sortas="b-ip">ip</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
[46a500e]172 <varlistentry id="lnstat">
173 <term>
174 <command>lnstat</command>
175 </term>
176 <listitem>
177 <para>Provides Linux network statistics. It is a generalized and more
178 feature-complete replacement for the old
[89ed081]179 <command>rtstat</command> program</para>
[46a500e]180 <indexterm zone="ch-system-iproute2 lnstat">
[005dc3f]181 <primary sortas="b-lnstat">lnstat</primary>
[46a500e]182 </indexterm>
183 </listitem>
184 </varlistentry>
185
[81fd230]186 <varlistentry id="nstat">
187 <term>
188 <command>nstat</command>
189 </term>
190 <listitem>
[89ed081]191 <para>Shows network statistics</para>
[81fd230]192 <indexterm zone="ch-system-iproute2 nstat">
193 <primary sortas="b-nstat">nstat</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="routef">
199 <term>
200 <command>routef</command>
201 </term>
202 <listitem>
203 <para>A component of <command>ip route</command>. This is for flushing the routing
[89ed081]204 tables
[81fd230]205 </para>
206 <indexterm zone="ch-system-iproute2 routef">
207 <primary sortas="b-routef">routef</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="routel">
213 <term>
214 <command>routel</command>
215 </term>
216 <listitem>
217 <para>A component of <command>ip route</command>. This is for listing the routing
[89ed081]218 tables
[81fd230]219 </para>
220 <indexterm zone="ch-system-iproute2 routel">
221 <primary sortas="b-routel">routel</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
[46a500e]226 <varlistentry id="rtacct">
227 <term>
228 <command>rtacct</command>
229 </term>
230 <listitem>
[89ed081]231 <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
[46a500e]232 <indexterm zone="ch-system-iproute2 rtacct">
233 <primary sortas="b-rtacct">rtacct</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[81fd230]238 <varlistentry id="rtmon">
239 <term>
240 <command>rtmon</command>
241 </term>
242 <listitem>
[89ed081]243 <para>Route monitoring utility</para>
[81fd230]244 <indexterm zone="ch-system-iproute2 rtmon">
245 <primary sortas="b-rtmon">rtmon</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
[46a500e]250 <varlistentry id="rtpr">
251 <term>
252 <command>rtpr</command>
253 </term>
254 <listitem>
255 <para>Converts the output of <command>ip -o</command> back into a
256 readable form</para>
257 <indexterm zone="ch-system-iproute2 rtpr">
258 <primary sortas="b-rtpr">rtpr</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
[81fd230]263 <varlistentry id="rtstat">
264 <term>
265 <command>rtstat</command>
266 </term>
267 <listitem>
[89ed081]268 <para>Route status utility</para>
[81fd230]269 <indexterm zone="ch-system-iproute2 rtstat">
270 <primary sortas="b-rtstat">rtstat</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="ss">
276 <term>
277 <command>ss</command>
278 </term>
279 <listitem>
[89ed081]280 <para>Similar to the <command>netstat</command> command; shows active connections</para>
[81fd230]281 <indexterm zone="ch-system-iproute2 ss">
282 <primary sortas="b-ss">ss</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="tc">
288 <term>
289 <command>tc</command>
290 </term>
291 <listitem>
292 <para>Traffic Controlling Executable; this is for Quality Of
293Service (QOS) and Class Of Service (COS)
294 implementations
295 </para>
296
297 <para><command>tc qdisc</command> allows users to setup the queueing
298 discipline
299 </para>
300
301 <para><command>tc class</command> allows users to setup classes based on
302 the queuing discipline scheduling
303 </para>
304
305 <para><command>tc estimator</command> allows users to estimate the
306 network flow into a network
307 </para>
308
309 <para><command>tc filter</command> allows users to setup the QOS/COS
310 packet filtering
311 </para>
312
313 <para><command>tc policy</command> allows users to setup the QOS/COS
314 policies
315 </para>
316 <indexterm zone="ch-system-iproute2 ss">
317 <primary sortas="b-tc">tc</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321 </variablelist>
[a088964]322 </sect2>
323</sect1>
[81fd230]324
Note: See TracBrowser for help on using the repository browser.