source: chapter06/iproute2.xml@ 0fe057b

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

Upgraded to DocBook 4.4 DTD

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

  • Property mode set to 100644
File size: 9.0 KB
Line 
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>.6 MB</seg>
23 </seglistitem>
24 </segmentedlist>
25 <segmentedlist>
26 <segtitle>Iproute2 installation depends on</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 patch using the 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/content/databases.html#db"/>.
41 </para>
42
43 <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-remove_db-1.patch</userinput></screen>
44
45 <para>The patch below fixes the issue with the newer versions of findutils,
46 the issue will give an error message it options are not in the proper order.
47 This patch corrects this issue for IPRoute2.</para>
48
49 <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-find_update-1.patch</userinput></screen>
50
51 <para>This patch fixes a glibc error that could occur during compiling
52 of iproute2.</para>
53
54 <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-free_error-2.patch</userinput></screen>
55
56 <para>Prepare Iproute2 for compilation:</para>
57 <screen><userinput>./configure </userinput></screen>
58
59 <para>Compile the package:</para>
60
61 <screen><userinput>make SBINDIR=/sbin</userinput></screen>
62
63 <para>The meaning of the make option:</para>
64
65 <variablelist>
66 <varlistentry>
67 <term><parameter>SBINDIR=/sbin</parameter></term>
68 <listitem><para>This makes sure that the Iproute2 binaries will install into
69 <filename class="directory">/sbin</filename>. This is the correct
70 location according to the FHS, because some of the Iproute2 binaries are used
71 in the bootscripts.</para>
72 </listitem>
73 </varlistentry>
74 </variablelist>
75
76 <para>Install the package:</para>
77
78 <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
79 <beginpage/>
80 </sect2>
81
82 <sect2 id="contents-iproute2" role="content">
83 <title>Contents of Iproute2</title>
84 <segmentedlist>
85 <segtitle>Installed programs</segtitle>
86 <seglistitem>
87 <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
92<?dbfo list-presentation="list"?>
93
94 <varlistentry id="ifstat">
95 <term>
96 <command>ifstat</command>
97 </term>
98 <listitem>
99 <para>Shows the interfaces statistic, including the amount of transmitted
100 and received packages by interface.</para>
101 <indexterm zone="ch-system-iproute2 ifstat">
102 <primary sortas="b-ifstat">ifstat</primary>
103 </indexterm>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry id="ip">
108 <term>
109 <command>ip</command>
110 </term>
111 <listitem>
112
113 <para>The main executable. It has several different functions:</para>
114
115 <para><command>ip link <replaceable>[device]</replaceable></command>
116 allows users to look at the state of devices and to make changes.
117 </para>
118
119 <para><command>ip addr</command> allows users to look at addresses and
120 their properties, add new addresses, and delete old ones.
121 </para>
122
123 <para><command>ip neighbor</command> allows users to look at
124 neighbor bindings and their properties, add new
125 neighbor entries, and delete old ones.
126 </para>
127
128 <para><command>ip rule</command> allows users to look at the routing
129 policies and change them.
130 </para>
131
132 <para><command>ip route</command> allows users to look at the routing
133 table and change routing table rules.
134 </para>
135
136 <para><command>ip tunnel</command> allows users to look at the IP
137 tunnels and their properties, and change them.
138 </para>
139
140 <para><command>ip maddr</command> allows users to look at the multicast
141 addresses and their properties, and change them.
142 </para>
143
144 <para><command>ip mroute</command> allows users to set, change, or
145 delete the multicast routing.
146 </para>
147
148 <para><command>ip monitor</command> allows users to
149 continously monitor the state of devices, addresses and routes.
150 </para>
151 <indexterm zone="ch-system-iproute2 ip">
152 <primary sortas="b-ip">ip</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="nstat">
158 <term>
159 <command>nstat</command>
160 </term>
161 <listitem>
162 <para>Shows network statistics.</para>
163 <indexterm zone="ch-system-iproute2 nstat">
164 <primary sortas="b-nstat">nstat</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="routef">
170 <term>
171 <command>routef</command>
172 </term>
173 <listitem>
174 <para>A component of <command>ip route</command>. This is for flushing the routing
175 tables.
176 </para>
177 <indexterm zone="ch-system-iproute2 routef">
178 <primary sortas="b-routef">routef</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="routel">
184 <term>
185 <command>routel</command>
186 </term>
187 <listitem>
188 <para>A component of <command>ip route</command>. This is for listing the routing
189 tables.
190 </para>
191 <indexterm zone="ch-system-iproute2 routel">
192 <primary sortas="b-routel">routel</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="rtmon">
198 <term>
199 <command>rtmon</command>
200 </term>
201 <listitem>
202 <para>Route monitoring utility.</para>
203 <indexterm zone="ch-system-iproute2 rtmon">
204 <primary sortas="b-rtmon">rtmon</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="rtstat">
210 <term>
211 <command>rtstat</command>
212 </term>
213 <listitem>
214 <para>Route status utility</para>
215 <indexterm zone="ch-system-iproute2 rtstat">
216 <primary sortas="b-rtstat">rtstat</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="ss">
222 <term>
223 <command>ss</command>
224 </term>
225 <listitem>
226 <para>Similar to the <command>netstat</command> command; shows active connections</para>
227 <indexterm zone="ch-system-iproute2 ss">
228 <primary sortas="b-ss">ss</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="tc">
234 <term>
235 <command>tc</command>
236 </term>
237 <listitem>
238 <para>Traffic Controlling Executable; this is for Quality Of
239Service (QOS) and Class Of Service (COS)
240 implementations
241 </para>
242
243 <para><command>tc qdisc</command> allows users to setup the queueing
244 discipline
245 </para>
246
247 <para><command>tc class</command> allows users to setup classes based on
248 the queuing discipline scheduling
249 </para>
250
251 <para><command>tc estimator</command> allows users to estimate the
252 network flow into a network
253 </para>
254
255 <para><command>tc filter</command> allows users to setup the QOS/COS
256 packet filtering
257 </para>
258
259 <para><command>tc policy</command> allows users to setup the QOS/COS
260 policies
261 </para>
262 <indexterm zone="ch-system-iproute2 ss">
263 <primary sortas="b-tc">tc</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267 </variablelist>
268 </sect2>
269</sect1>
270
Note: See TracBrowser for help on using the repository browser.