source: chapter06/iproute2.xml@ 86d2775

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 86d2775 was bdea25ce, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 6, part 7

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

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