source: BOOK/final-system/common/iproute2.xml@ cf9d33a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since cf9d33a was 6bb9a5e, checked in by Chris Staub <chris@…>, 17 years ago

Need to create dir for iproute2 first so tar can enter it

  • Property mode set to 100644
File size: 9.9 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 <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
21 IPV4-based networking.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of IPRoute2</title>
27
28<para os="t1">This package no longer un-tars into a separate directory,
29 so use the following commands instead:</para>
30
31<screen os="t2"><userinput>mkdir -v iproute2-&iproute2-version;
32tar -xvf iproute2-&iproute2-version;.tar.gz -C iproute2-&iproute2-version;</userinput></screen>
33
34 <para os="s1">The <command>arpd</command> binary included in this package is
35 dependent on Berkeley DB. Because <command>arpd</command> is not a
36 very common requirement on a base Linux system, remove the dependency
37 on Berkeley DB by applying the <command>sed</command> command below.
38 If 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"/>.</para>
41
42<screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
43
44 <para os="a">Compile the package:</para>
45
46<screen os="b"><userinput>make SBINDIR=/sbin</userinput></screen>
47
48 <variablelist os="c">
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 CLFS-Bootscripts package.</para>
58 </listitem>
59 </varlistentry>
60 </variablelist>
61
62 <para os="d">This package does not come with a test suite.</para>
63
64 <para os="e">Install the package:</para>
65
66<screen os="f"><userinput>make SBINDIR=/sbin install</userinput></screen>
67
68 </sect2>
69
70 <sect2 id="contents-iproute2" role="content">
71 <title>Contents of IPRoute2</title>
72
73 <segmentedlist>
74 <segtitle>Installed programs</segtitle>
75
76 <seglistitem>
77 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
78 routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
79 and tc</seg>
80 </seglistitem>
81 </segmentedlist>
82
83 <variablelist>
84 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85 <?dbfo list-presentation="list"?>
86 <?dbhtml list-presentation="table"?>
87
88 <varlistentry id="ctstat">
89 <term><command>ctstat</command></term>
90 <listitem>
91 <para>Connection status utility</para>
92 <indexterm zone="ch-system-iproute2 ctstat">
93 <primary sortas="b-ctstat">ctstat</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="ifcfg">
99 <term><command>ifcfg</command></term>
100 <listitem>
101 <para>A shell script wrapper for the <command>ip</command>
102 command</para>
103 <indexterm zone="ch-system-iproute2 ifcfg">
104 <primary sortas="b-ifcfg">ifcfg</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="ifstat">
110 <term><command>ifstat</command></term>
111 <listitem>
112 <para>Shows the interface statistics, including the amount of
113 transmitted and received packets by interface</para>
114 <indexterm zone="ch-system-iproute2 ifstat">
115 <primary sortas="b-ifstat">ifstat</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry id="ip">
121 <term><command>ip</command></term>
122 <listitem>
123 <para>The main executable. It has several different functions:</para>
124
125 <para><command>ip link <replaceable>[device]</replaceable></command>
126 allows users to look at the state of devices and to make changes</para>
127
128 <para><command>ip addr</command> allows users to look at addresses and
129 their properties, add new addresses, and delete old ones</para>
130
131 <para><command>ip neighbor</command> allows users to look at neighbor
132 bindings and their properties, add new neighbor entries, and delete
133 old ones</para>
134
135 <para><command>ip rule</command> allows users to look at the routing
136 policies and change them</para>
137
138 <para><command>ip route</command> allows users to look at the routing
139 table and change routing table rules</para>
140
141 <para><command>ip tunnel</command> allows users to look at the IP
142 tunnels and their properties, and change them</para>
143
144 <para><command>ip maddr</command> allows users to look at the multicast
145 addresses and their properties, and change them</para>
146
147 <para><command>ip mroute</command> allows users to set, change, or
148 delete the multicast routing</para>
149
150 <para><command>ip monitor</command> allows users to continously monitor
151 the state of devices, addresses and routes</para>
152 <indexterm zone="ch-system-iproute2 ip">
153 <primary sortas="b-ip">ip</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="lnstat">
159 <term><command>lnstat</command></term>
160 <listitem>
161 <para>Provides Linux network statistics. It is a generalized and more
162 feature-complete replacement for the old <command>rtstat</command>
163 program</para>
164 <indexterm zone="ch-system-iproute2 lnstat">
165 <primary sortas="b-lnstat">lnstat</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="nstat">
171 <term><command>nstat</command></term>
172 <listitem>
173 <para>Shows network statistics</para>
174 <indexterm zone="ch-system-iproute2 nstat">
175 <primary sortas="b-nstat">nstat</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="routef">
181 <term><command>routef</command></term>
182 <listitem>
183 <para>A component of <command>ip route</command>. This is for flushing
184 the routing tables</para>
185 <indexterm zone="ch-system-iproute2 routef">
186 <primary sortas="b-routef">routef</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="routel">
192 <term><command>routel</command></term>
193 <listitem>
194 <para>A component of <command>ip route</command>. This is for listing
195 the routing tables</para>
196 <indexterm zone="ch-system-iproute2 routel">
197 <primary sortas="b-routel">routel</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="rtacct">
203 <term><command>rtacct</command></term>
204 <listitem>
205 <para>Displays the contents of
206 <filename>/proc/net/rt_acct</filename></para>
207 <indexterm zone="ch-system-iproute2 rtacct">
208 <primary sortas="b-rtacct">rtacct</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="rtmon">
214 <term><command>rtmon</command></term>
215 <listitem>
216 <para>Route monitoring utility</para>
217 <indexterm zone="ch-system-iproute2 rtmon">
218 <primary sortas="b-rtmon">rtmon</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="rtpr">
224 <term><command>rtpr</command></term>
225 <listitem>
226 <para>Converts the output of <command>ip -o</command> back into a
227 readable form</para>
228 <indexterm zone="ch-system-iproute2 rtpr">
229 <primary sortas="b-rtpr">rtpr</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="rtstat">
235 <term><command>rtstat</command></term>
236 <listitem>
237 <para>Route status utility</para>
238 <indexterm zone="ch-system-iproute2 rtstat">
239 <primary sortas="b-rtstat">rtstat</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="ss">
245 <term><command>ss</command></term>
246 <listitem>
247 <para>Similar to the <command>netstat</command> command; shows
248 active connections</para>
249 <indexterm zone="ch-system-iproute2 ss">
250 <primary sortas="b-ss">ss</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="tc">
256 <term><command>tc</command></term>
257 <listitem>
258 <para>Traffic Controlling Executable; this is for Quality Of Service
259 (QOS) and Class Of Service (COS) implementations</para>
260
261 <para><command>tc qdisc</command> allows users to setup the queueing
262 discipline</para>
263
264 <para><command>tc class</command> allows users to setup classes based on
265 the queuing discipline scheduling</para>
266
267 <para><command>tc estimator</command> allows users to estimate the
268 network flow into a network</para>
269
270 <para><command>tc filter</command> allows users to setup the QOS/COS
271 packet filtering</para>
272
273 <para><command>tc policy</command> allows users to setup the QOS/COS
274 policies</para>
275 <indexterm zone="ch-system-iproute2 ss">
276 <primary sortas="b-tc">tc</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 </variablelist>
282
283 </sect2>
284
285</sect1>
Note: See TracBrowser for help on using the repository browser.