source: chapter06/iproute2.xml@ a48ce94

Last change on this file since a48ce94 was 3f4c310d, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Removed the <beginpage/> tags.

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

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