source: chapter06/iproute2.xml@ 083c9f8

Last change on this file since 083c9f8 was 0a51467, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Ported form trink the appliccable changes in revisions r4896 to r4919.

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

  • Property mode set to 100644
File size: 10.5 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">
[0a51467]7 <title>IPRoute2-&iproute2-version;</title>
[6aaa1b0]8<?dbhtml filename="iproute2.html"?>
9 <indexterm zone="ch-system-iproute2">
[0a51467]10 <primary sortas="a-IPRoute2">IPRoute2</primary>
[6aaa1b0]11 </indexterm>
12 <sect2 role="package">
13 <title/>
[0a51467]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">
[0a51467]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
[201d101]37 Berkeley DB by applying the <command>sed</command> command below. If
[69993f4]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
[f75362c]43 <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
[56964fb]44
[0a51467]45 <para>Prepare IPRoute2 for compilation:</para>
[ef13657]46 <screen><userinput>./configure </userinput></screen>
[6aaa1b0]47
48 <para>Compile the package:</para>
49
[fff7530]50 <screen><userinput>make SBINDIR=/sbin</userinput></screen>
51
[ef13657]52 <para>The meaning of the make option:</para>
53
[fff7530]54 <variablelist>
55 <varlistentry>
56 <term><parameter>SBINDIR=/sbin</parameter></term>
[0a51467]57 <listitem><para>This makes sure that the IPRoute2 binaries will install into
[fff7530]58 <filename class="directory">/sbin</filename>. This is the correct
[0a51467]59 location according to the FHS, because some of the IPRoute2 binaries are used
[69993f4]60 in the bootscripts.</para>
[fff7530]61 </listitem>
62 </varlistentry>
63 </variablelist>
[6aaa1b0]64
[ef13657]65 <para>Install the package:</para>
[6aaa1b0]66
[fff7530]67 <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
[b48b8c5]68
[6aaa1b0]69 </sect2>
70
[287a4e78]71 <sect2 id="contents-iproute2" role="content">
[0a51467]72 <title>Contents of IPRoute2</title>
[6aaa1b0]73 <segmentedlist>
74 <segtitle>Installed programs</segtitle>
75 <seglistitem>
[186416d]76 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat, routef,
77 routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss, and tc.
78 </seg>
[6aaa1b0]79 </seglistitem>
80 </segmentedlist>
81
[2256873]82 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]83<?dbfo list-presentation="list"?>
[c5f9180]84<?dbhtml list-presentation="table"?>
[186416d]85 <varlistentry id="ctstat">
86 <term>
87 <command>ctstat</command>
88 </term>
89 <listitem>
[0a51467]90 <para>Connection status utility</para>
[186416d]91 <indexterm zone="ch-system-iproute2 ctstat">
92 <primary sortas="b-cstat">ctstat</primary>
93 </indexterm>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry id="ifcfg">
98 <term>
99 <command>ifcfg</command>
100 </term>
101 <listitem>
[0a51467]102 <para>A shell script wrapper for the <command>ip</command> command</para>
[186416d]103 <indexterm zone="ch-system-iproute2 ifcfg">
104 <primary sortas="b-ifcfg">ifcfg</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
[6aaa1b0]108
109 <varlistentry id="ifstat">
110 <term>
111 <command>ifstat</command>
112 </term>
113 <listitem>
[2256873]114 <para>Shows the interfaces statistic, including the amount of transmitted
[0a51467]115 and received packages by interface</para>
[6aaa1b0]116 <indexterm zone="ch-system-iproute2 ifstat">
117 <primary sortas="b-ifstat">ifstat</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="ip">
123 <term>
124 <command>ip</command>
125 </term>
126 <listitem>
127
[69993f4]128 <para>The main executable. It has several different functions:</para>
[6aaa1b0]129
130 <para><command>ip link <replaceable>[device]</replaceable></command>
[0a51467]131 allows users to look at the state of devices and to make changes
[6aaa1b0]132 </para>
133
[69993f4]134 <para><command>ip addr</command> allows users to look at addresses and
[0a51467]135 their properties, add new addresses, and delete old ones
[6aaa1b0]136 </para>
137
[69993f4]138 <para><command>ip neighbor</command> allows users to look at
139 neighbor bindings and their properties, add new
[0a51467]140 neighbor entries, and delete old ones
[6aaa1b0]141 </para>
142
[69993f4]143 <para><command>ip rule</command> allows users to look at the routing
[0a51467]144 policies and change them
[6aaa1b0]145 </para>
146
[69993f4]147 <para><command>ip route</command> allows users to look at the routing
[0a51467]148 table and change routing table rules
[6aaa1b0]149 </para>
150
[9535071]151 <para><command>ip tunnel</command> allows users to look at the IP
[0a51467]152 tunnels and their properties, and change them
[6aaa1b0]153 </para>
154
[69993f4]155 <para><command>ip maddr</command> allows users to look at the multicast
[0a51467]156 addresses and their properties, and change them
[6aaa1b0]157 </para>
158
[69993f4]159 <para><command>ip mroute</command> allows users to set, change, or
[0a51467]160 delete the multicast routing
[6aaa1b0]161 </para>
162
[69993f4]163 <para><command>ip monitor</command> allows users to
[0a51467]164 continously monitor the state of devices, addresses and routes
[6aaa1b0]165 </para>
[3ed279f]166 <indexterm zone="ch-system-iproute2 ip">
167 <primary sortas="b-ip">ip</primary>
168 </indexterm>
[6aaa1b0]169 </listitem>
170 </varlistentry>
171
[186416d]172 <varlistentry id="lnstat">
173 <term>
174 <command>lnstat</command>
175 </term>
176 <listitem>
177 <para>Provides Linux network statistics. It is a generalized and more
178 feature-complete replacement for the old
[0a51467]179 <command>rtstat</command> program</para>
[186416d]180 <indexterm zone="ch-system-iproute2 lnstat">
181 <primary sortas="b-cstat">lnstat</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
[6aaa1b0]186 <varlistentry id="nstat">
187 <term>
188 <command>nstat</command>
189 </term>
190 <listitem>
[0a51467]191 <para>Shows network statistics</para>
[6aaa1b0]192 <indexterm zone="ch-system-iproute2 nstat">
193 <primary sortas="b-nstat">nstat</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="routef">
199 <term>
200 <command>routef</command>
201 </term>
202 <listitem>
[2256873]203 <para>A component of <command>ip route</command>. This is for flushing the routing
[0a51467]204 tables
[6aaa1b0]205 </para>
[3ed279f]206 <indexterm zone="ch-system-iproute2 routef">
207 <primary sortas="b-routef">routef</primary>
208 </indexterm>
[6aaa1b0]209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="routel">
213 <term>
214 <command>routel</command>
215 </term>
216 <listitem>
[2256873]217 <para>A component of <command>ip route</command>. This is for listing the routing
[0a51467]218 tables
[6aaa1b0]219 </para>
[3ed279f]220 <indexterm zone="ch-system-iproute2 routel">
221 <primary sortas="b-routel">routel</primary>
222 </indexterm>
[6aaa1b0]223 </listitem>
224 </varlistentry>
225
[186416d]226 <varlistentry id="rtacct">
227 <term>
228 <command>rtacct</command>
229 </term>
230 <listitem>
[0a51467]231 <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
[186416d]232 <indexterm zone="ch-system-iproute2 rtacct">
233 <primary sortas="b-rtacct">rtacct</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[6aaa1b0]238 <varlistentry id="rtmon">
239 <term>
240 <command>rtmon</command>
241 </term>
242 <listitem>
[0a51467]243 <para>Route monitoring utility</para>
[6aaa1b0]244 <indexterm zone="ch-system-iproute2 rtmon">
245 <primary sortas="b-rtmon">rtmon</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
[186416d]250 <varlistentry id="rtpr">
251 <term>
252 <command>rtpr</command>
253 </term>
254 <listitem>
255 <para>Converts the output of <command>ip -o</command> back into a
256 readable form</para>
257 <indexterm zone="ch-system-iproute2 rtpr">
258 <primary sortas="b-rtpr">rtpr</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
[6aaa1b0]263 <varlistentry id="rtstat">
264 <term>
265 <command>rtstat</command>
266 </term>
267 <listitem>
[0a51467]268 <para>Route status utility</para>
[6aaa1b0]269 <indexterm zone="ch-system-iproute2 rtstat">
270 <primary sortas="b-rtstat">rtstat</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="ss">
276 <term>
277 <command>ss</command>
278 </term>
279 <listitem>
[0a51467]280 <para>Similar to the <command>netstat</command> command; shows active connections</para>
[6aaa1b0]281 <indexterm zone="ch-system-iproute2 ss">
282 <primary sortas="b-ss">ss</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="tc">
288 <term>
289 <command>tc</command>
290 </term>
291 <listitem>
[2256873]292 <para>Traffic Controlling Executable; this is for Quality Of
[69993f4]293Service (QOS) and Class Of Service (COS)
[2256873]294 implementations
[6aaa1b0]295 </para>
296
[69993f4]297 <para><command>tc qdisc</command> allows users to setup the queueing
[2256873]298 discipline
[6aaa1b0]299 </para>
300
[69993f4]301 <para><command>tc class</command> allows users to setup classes based on
[2256873]302 the queuing discipline scheduling
[6aaa1b0]303 </para>
304
[69993f4]305 <para><command>tc estimator</command> allows users to estimate the
[2256873]306 network flow into a network
[6aaa1b0]307 </para>
308
[69993f4]309 <para><command>tc filter</command> allows users to setup the QOS/COS
[2256873]310 packet filtering
[6aaa1b0]311 </para>
312
[69993f4]313 <para><command>tc policy</command> allows users to setup the QOS/COS
[2256873]314 policies
[6aaa1b0]315 </para>
[3ed279f]316 <indexterm zone="ch-system-iproute2 ss">
317 <primary sortas="b-tc">tc</primary>
318 </indexterm>
[6aaa1b0]319 </listitem>
320 </varlistentry>
321 </variablelist>
322 </sect2>
323</sect1>
[ef13657]324
Note: See TracBrowser for help on using the repository browser.