source: chapter06/iproute2.xml@ 0fb69dd

Last change on this file since 0fb69dd was 56964fb, checked in by Jim Gifford <jim@…>, 19 years ago

Updated RaQ2 started PPC integration

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

  • Property mode set to 100644
File size: 9.0 KB
RevLine 
[6aaa1b0]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
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>
22 <seg>.6 MB</seg>
23 </seglistitem>
24 </segmentedlist>
25 <segmentedlist>
[69993f4]26 <segtitle>Iproute2 installation depends on</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
[56964fb]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
[76c5c80]56 <para>Prepare Iproute2 for compilation:</para>
[ef13657]57 <screen><userinput>./configure </userinput></screen>
[6aaa1b0]58
59 <para>Compile the package:</para>
60
[fff7530]61 <screen><userinput>make SBINDIR=/sbin</userinput></screen>
62
[ef13657]63 <para>The meaning of the make option:</para>
64
[fff7530]65 <variablelist>
66 <varlistentry>
67 <term><parameter>SBINDIR=/sbin</parameter></term>
[76c5c80]68 <listitem><para>This makes sure that the Iproute2 binaries will install into
[fff7530]69 <filename class="directory">/sbin</filename>. This is the correct
[76c5c80]70 location according to the FHS, because some of the Iproute2 binaries are used
[69993f4]71 in the bootscripts.</para>
[fff7530]72 </listitem>
73 </varlistentry>
74 </variablelist>
[6aaa1b0]75
[ef13657]76 <para>Install the package:</para>
[6aaa1b0]77
[fff7530]78 <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
[0e9a9e2]79 <beginpage/>
[6aaa1b0]80 </sect2>
81
[287a4e78]82 <sect2 id="contents-iproute2" role="content">
[69993f4]83 <title>Contents of Iproute2</title>
[6aaa1b0]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
[2256873]91 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]92<?dbfo list-presentation="list"?>
[6aaa1b0]93
94 <varlistentry id="ifstat">
95 <term>
96 <command>ifstat</command>
97 </term>
98 <listitem>
[2256873]99 <para>Shows the interfaces statistic, including the amount of transmitted
[3ed279f]100 and received packages by interface.</para>
[6aaa1b0]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
[69993f4]113 <para>The main executable. It has several different functions:</para>
[6aaa1b0]114
115 <para><command>ip link <replaceable>[device]</replaceable></command>
[69993f4]116 allows users to look at the state of devices and to make changes.
[6aaa1b0]117 </para>
118
[69993f4]119 <para><command>ip addr</command> allows users to look at addresses and
120 their properties, add new addresses, and delete old ones.
[6aaa1b0]121 </para>
122
[69993f4]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.
[6aaa1b0]126 </para>
127
[69993f4]128 <para><command>ip rule</command> allows users to look at the routing
[6aaa1b0]129 policies and change them.
130 </para>
131
[69993f4]132 <para><command>ip route</command> allows users to look at the routing
[6aaa1b0]133 table and change routing table rules.
134 </para>
135
[9535071]136 <para><command>ip tunnel</command> allows users to look at the IP
[6aaa1b0]137 tunnels and their properties, and change them.
138 </para>
139
[69993f4]140 <para><command>ip maddr</command> allows users to look at the multicast
[6aaa1b0]141 addresses and their properties, and change them.
142 </para>
143
[69993f4]144 <para><command>ip mroute</command> allows users to set, change, or
145 delete the multicast routing.
[6aaa1b0]146 </para>
147
[69993f4]148 <para><command>ip monitor</command> allows users to
149 continously monitor the state of devices, addresses and routes.
[6aaa1b0]150 </para>
[3ed279f]151 <indexterm zone="ch-system-iproute2 ip">
152 <primary sortas="b-ip">ip</primary>
153 </indexterm>
[6aaa1b0]154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="nstat">
158 <term>
159 <command>nstat</command>
160 </term>
161 <listitem>
[2256873]162 <para>Shows network statistics.</para>
[6aaa1b0]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>
[2256873]174 <para>A component of <command>ip route</command>. This is for flushing the routing
[6aaa1b0]175 tables.
176 </para>
[3ed279f]177 <indexterm zone="ch-system-iproute2 routef">
178 <primary sortas="b-routef">routef</primary>
179 </indexterm>
[6aaa1b0]180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="routel">
184 <term>
185 <command>routel</command>
186 </term>
187 <listitem>
[2256873]188 <para>A component of <command>ip route</command>. This is for listing the routing
[6aaa1b0]189 tables.
190 </para>
[3ed279f]191 <indexterm zone="ch-system-iproute2 routel">
192 <primary sortas="b-routel">routel</primary>
193 </indexterm>
[6aaa1b0]194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="rtmon">
198 <term>
199 <command>rtmon</command>
200 </term>
201 <listitem>
[2256873]202 <para>Route monitoring utility.</para>
[6aaa1b0]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>
[2256873]214 <para>Route status utility</para>
[6aaa1b0]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>
[2256873]226 <para>Similar to the <command>netstat</command> command; shows active connections</para>
[6aaa1b0]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>
[2256873]238 <para>Traffic Controlling Executable; this is for Quality Of
[69993f4]239Service (QOS) and Class Of Service (COS)
[2256873]240 implementations
[6aaa1b0]241 </para>
242
[69993f4]243 <para><command>tc qdisc</command> allows users to setup the queueing
[2256873]244 discipline
[6aaa1b0]245 </para>
246
[69993f4]247 <para><command>tc class</command> allows users to setup classes based on
[2256873]248 the queuing discipline scheduling
[6aaa1b0]249 </para>
250
[69993f4]251 <para><command>tc estimator</command> allows users to estimate the
[2256873]252 network flow into a network
[6aaa1b0]253 </para>
254
[69993f4]255 <para><command>tc filter</command> allows users to setup the QOS/COS
[2256873]256 packet filtering
[6aaa1b0]257 </para>
258
[69993f4]259 <para><command>tc policy</command> allows users to setup the QOS/COS
[2256873]260 policies
[6aaa1b0]261 </para>
[3ed279f]262 <indexterm zone="ch-system-iproute2 ss">
263 <primary sortas="b-tc">tc</primary>
264 </indexterm>
[6aaa1b0]265 </listitem>
266 </varlistentry>
267 </variablelist>
268 </sect2>
269</sect1>
[ef13657]270
Note: See TracBrowser for help on using the repository browser.