source: chapter06/iproute2.xml@ 5b5ef39

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 5b5ef39 was 4ec50c8, checked in by Matthew Burgess <matthew@…>, 17 years ago

Upgrade to IPRoute2-2.6.23. Fixes #2091.

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