source: chapter06/iproute2.xml@ b50b0ef

Last change on this file since b50b0ef was 186416d, checked in by Jim Gifford <jim@…>, 20 years ago

Updated IPRoute2

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

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