source: chapter06/iproute2.xml@ b48b8c5

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

Removed beginpage tags.

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

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