source: chapter06/iproute2.xml@ b340d68c

Last change on this file since b340d68c was 26c37906, checked in by Ken Moffat <ken@…>, 18 years ago

Upgrade iproute2.

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

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