source: chapter06/iproute2.xml@ ee0ed77

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.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 ee0ed77 was ee0ed77, checked in by DJ Lucas <dj@…>, 16 years ago

Reverted r8651.

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

  • Property mode set to 100644
File size: 11.1 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-ch6-sbu;</seg>
35 <seg>&iproute2-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of IPRoute2</title>
43
44 <para>Compile the package:</para>
45
46<screen><userinput remap="make">make SBINDIR=/sbin</userinput></screen>
47
48 <variablelist>
49 <title>The meaning of the make option:</title>
50
51 <varlistentry>
52 <term><parameter>SBINDIR=/sbin</parameter></term>
53 <listitem>
54 <para>This ensures that the IPRoute2 binaries will install into
55 <filename class="directory">/sbin</filename>. This is the correct
56 location according to the FHS, because some of the IPRoute2 binaries
57 are used by the LFS-Bootscripts package.</para>
58 </listitem>
59 </varlistentry>
60
61 </variablelist>
62
63 <para>This package comes with a testsuite, but due to assumptions it makes,
64 it is not possible to reliably run these tests from within the chroot
65 environment. If you wish to run these tests after booting into your new LFS
66 system, ensure you select <filename>/proc/config.gz</filename>
67 CONFIG_IKCONFIG_PROC (&quot;General setup&quot; -> &quot;Enable access to
68 .config through /proc/config.gz&quot;) support into your kernel then run
69 'make alltests' from the <filename class="directory">testsuite/</filename>
70 subdirectory.</para>
71
72 <para>Install the package:</para>
73
74<screen><userinput remap="install">make SBINDIR=/sbin \
75 DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
76
77 <para>The <command>arpd</command> binary links against the Berkeley DB
78 libraries that reside in <filename class="directory">/usr</filename> and
79 uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
80 according to the FHS, it must be in <filename
81 class="directory">/usr/sbin</filename>. Move it there:</para>
82
83 <screen><userinput remap="install">mv -v /sbin/arpd /usr/sbin</userinput></screen>
84
85 </sect2>
86
87 <sect2 id="contents-iproute2" role="content">
88 <title>Contents of IPRoute2</title>
89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92
93 <seglistitem>
94 <seg>arpd, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
95 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
96 and tc.</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="arpd">
106 <term><command>arpd</command></term>
107 <listitem>
108 <para>Userspace ARP daemon, useful in really large networks, where the
109 kernelspace ARP implementation is insufficient, or when setting up a
110 honeypot</para>
111 <indexterm zone="ch-system-iproute2 arpd">
112 <primary sortas="b-arpd">arpd</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="ctstat">
118 <term><command>ctstat</command></term>
119 <listitem>
120 <para>Connection status utility</para>
121 <indexterm zone="ch-system-iproute2 ctstat">
122 <primary sortas="b-ctstat">ctstat</primary>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry id="genl">
128 <term><command>genl</command></term>
129 <listitem>
130 <para></para>
131 <indexterm zone="ch-system-iproute2 genl">
132 <primary sortas="b-genl">genl</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="ifcfg">
138 <term><command>ifcfg</command></term>
139 <listitem>
140 <para>A shell script wrapper for the <command>ip</command> command</para>
141 <indexterm zone="ch-system-iproute2 ifcfg">
142 <primary sortas="b-ifcfg">ifcfg</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="ifstat">
148 <term><command>ifstat</command></term>
149 <listitem>
150 <para>Shows the interface statistics, including the amount of
151 transmitted and received packets by interface</para>
152 <indexterm zone="ch-system-iproute2 ifstat">
153 <primary sortas="b-ifstat">ifstat</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="ip">
159 <term><command>ip</command></term>
160 <listitem>
161 <para>The main executable. It has several different functions:</para>
162
163 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
164 allows users to look at the state of devices and to make changes</para>
165
166 <para><command>ip addr</command> allows users to look at addresses and
167 their properties, add new addresses, and delete old ones</para>
168
169 <para><command>ip neighbor</command> allows users to look at neighbor
170 bindings and their properties, add new neighbor entries, and delete
171 old ones</para>
172
173 <para><command>ip rule</command> allows users to look at the routing
174 policies and change them</para>
175
176 <para><command>ip route</command> allows users to look at the routing
177 table and change routing table rules</para>
178
179 <para><command>ip tunnel</command> allows users to look at the IP
180 tunnels and their properties, and change them</para>
181
182 <para><command>ip maddr</command> allows users to look at the multicast
183 addresses and their properties, and change them</para>
184
185 <para><command>ip mroute</command> allows users to set, change, or
186 delete the multicast routing</para>
187
188 <para><command>ip monitor</command> allows users to continously monitor
189 the state of devices, addresses and routes</para>
190 <indexterm zone="ch-system-iproute2 ip">
191 <primary sortas="b-ip">ip</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="lnstat">
197 <term><command>lnstat</command></term>
198 <listitem>
199 <para>Provides Linux network statistics. It is a generalized and more
200 feature-complete replacement for the old <command>rtstat</command>
201 program</para>
202 <indexterm zone="ch-system-iproute2 lnstat">
203 <primary sortas="b-lnstat">lnstat</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="nstat">
209 <term><command>nstat</command></term>
210 <listitem>
211 <para>Shows network statistics</para>
212 <indexterm zone="ch-system-iproute2 nstat">
213 <primary sortas="b-nstat">nstat</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="routef">
219 <term><command>routef</command></term>
220 <listitem>
221 <para>A component of <command>ip route</command>. This is for flushing
222 the routing tables</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><command>routel</command></term>
231 <listitem>
232 <para>A component of <command>ip route</command>. This is for listing
233 the routing tables</para>
234 <indexterm zone="ch-system-iproute2 routel">
235 <primary sortas="b-routel">routel</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="rtacct">
241 <term><command>rtacct</command></term>
242 <listitem>
243 <para>Displays the contents of
244 <filename>/proc/net/rt_acct</filename></para>
245 <indexterm zone="ch-system-iproute2 rtacct">
246 <primary sortas="b-rtacct">rtacct</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="rtmon">
252 <term><command>rtmon</command></term>
253 <listitem>
254 <para>Route monitoring utility</para>
255 <indexterm zone="ch-system-iproute2 rtmon">
256 <primary sortas="b-rtmon">rtmon</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="rtpr">
262 <term><command>rtpr</command></term>
263 <listitem>
264 <para>Converts the output of <command>ip -o</command> back into a
265 readable form</para>
266 <indexterm zone="ch-system-iproute2 rtpr">
267 <primary sortas="b-rtpr">rtpr</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="rtstat">
273 <term><command>rtstat</command></term>
274 <listitem>
275 <para>Route status utility</para>
276 <indexterm zone="ch-system-iproute2 rtstat">
277 <primary sortas="b-rtstat">rtstat</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="ss">
283 <term><command>ss</command></term>
284 <listitem>
285 <para>Similar to the <command>netstat</command> command; shows active
286 connections</para>
287 <indexterm zone="ch-system-iproute2 ss">
288 <primary sortas="b-ss">ss</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="tc">
294 <term><command>tc</command></term>
295 <listitem>
296 <para>Traffic Controlling Executable; this is for Quality Of Service
297 (QOS) and Class Of Service (COS) implementations</para>
298
299 <para><command>tc qdisc</command> allows users to setup the queueing
300 discipline</para>
301
302 <para><command>tc class</command> allows users to setup classes based
303 on the queuing discipline scheduling</para>
304
305 <para><command>tc estimator</command> allows users to estimate the
306 network flow into a network</para>
307
308 <para><command>tc filter</command> allows users to setup the QOS/COS
309 packet filtering</para>
310
311 <para><command>tc policy</command> allows users to setup the QOS/COS
312 policies</para>
313 <indexterm zone="ch-system-iproute2 ss">
314 <primary sortas="b-tc">tc</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 </variablelist>
320
321 </sect2>
322
323</sect1>
Note: See TracBrowser for help on using the repository browser.