source: chapter06/iproute2.xml@ 50e693d

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 50e693d was 2df049de, checked in by Ken Moffat <ken@…>, 18 years ago

More Berkeleyization for DB, thanks to Randy for advice.

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

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