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