source: chapter06/iproute2.xml@ 62c3dff

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 62c3dff was fde4f7d, checked in by Archaic <archaic@…>, 19 years ago

Brought all occurences of LFS-Bootscripts into conformity.

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

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