source: chapter06/iproute2.xml@ 4dea006

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 4dea006 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

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

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