source: chapter06/iproute2.xml@ d38b5dd

6.0
Last change on this file since d38b5dd was 752f4e5, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags corrections, Chapter 6.

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

  • Property mode set to 100644
File size: 8.4 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">
[84988c0]10 <primary sortas="a-iproute2">iproute2</primary>
[6aaa1b0]11 </indexterm>
12 <sect2 role="package">
13 <title/>
[84988c0]14 <para>The iproute2 package contains programs for basic and advanced
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
39 compiling Berkeley DB can be found in the BLFS Book at<ulink
40 url="http://www.linuxfromscratch.org/blfs/view/cvs/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
[84988c0]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>
57 <listitem><para>This makes sure that the iproute2 binaries will install into
58 <filename class="directory">/sbin</filename>. This is the correct
[69993f4]59 location according to the FHS, because some of the iproute2 binaries are used
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>
[6aaa1b0]68 </sect2>
69
[287a4e78]70 <sect2 id="contents-iproute2" role="content">
[69993f4]71 <title>Contents of Iproute2</title>
[6aaa1b0]72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74 <seglistitem>
75 <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
76 </seglistitem>
77 </segmentedlist>
78
[3ed279f]79 <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
80<?dbfo list-presentation="list"?>
[6aaa1b0]81
82 <varlistentry id="ifstat">
83 <term>
84 <command>ifstat</command>
85 </term>
86 <listitem>
[69993f4]87 <para>shows the interfaces statistic, including the amount of transmitted
[3ed279f]88 and received packages by interface.</para>
[6aaa1b0]89 <indexterm zone="ch-system-iproute2 ifstat">
90 <primary sortas="b-ifstat">ifstat</primary>
91 </indexterm>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry id="ip">
96 <term>
97 <command>ip</command>
98 </term>
99 <listitem>
100
[69993f4]101 <para>The main executable. It has several different functions:</para>
[6aaa1b0]102
103 <para><command>ip link <replaceable>[device]</replaceable></command>
[69993f4]104 allows users to look at the state of devices and to make changes.
[6aaa1b0]105 </para>
106
[69993f4]107 <para><command>ip addr</command> allows users to look at addresses and
108 their properties, add new addresses, and delete old ones.
[6aaa1b0]109 </para>
110
[69993f4]111 <para><command>ip neighbor</command> allows users to look at
112 neighbor bindings and their properties, add new
113 neighbor entries, and delete old ones.
[6aaa1b0]114 </para>
115
[69993f4]116 <para><command>ip rule</command> allows users to look at the routing
[6aaa1b0]117 policies and change them.
118 </para>
119
[69993f4]120 <para><command>ip route</command> allows users to look at the routing
[6aaa1b0]121 table and change routing table rules.
122 </para>
123
[69993f4]124 <para><command>ip tunnel</command> allows user to look at the ip
[6aaa1b0]125 tunnels and their properties, and change them.
126 </para>
127
[69993f4]128 <para><command>ip maddr</command> allows users to look at the multicast
[6aaa1b0]129 addresses and their properties, and change them.
130 </para>
131
[69993f4]132 <para><command>ip mroute</command> allows users to set, change, or
133 delete the multicast routing.
[6aaa1b0]134 </para>
135
[69993f4]136 <para><command>ip monitor</command> allows users to
137 continously monitor the state of devices, addresses and routes.
[6aaa1b0]138 </para>
[3ed279f]139 <indexterm zone="ch-system-iproute2 ip">
140 <primary sortas="b-ip">ip</primary>
141 </indexterm>
[6aaa1b0]142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="nstat">
146 <term>
147 <command>nstat</command>
148 </term>
149 <listitem>
[3ed279f]150 <para>shows network statistics.</para>
[6aaa1b0]151 <indexterm zone="ch-system-iproute2 nstat">
152 <primary sortas="b-nstat">nstat</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="routef">
158 <term>
159 <command>routef</command>
160 </term>
161 <listitem>
[ef13657]162 <para>a component of ip route. This is for flushing the routing
[6aaa1b0]163 tables.
164 </para>
[3ed279f]165 <indexterm zone="ch-system-iproute2 routef">
166 <primary sortas="b-routef">routef</primary>
167 </indexterm>
[6aaa1b0]168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="routel">
172 <term>
173 <command>routel</command>
174 </term>
175 <listitem>
[ef13657]176 <para>a component of ip route. This is for listing the routing
[6aaa1b0]177 tables.
178 </para>
[3ed279f]179 <indexterm zone="ch-system-iproute2 routel">
180 <primary sortas="b-routel">routel</primary>
181 </indexterm>
[6aaa1b0]182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="rtmon">
186 <term>
187 <command>rtmon</command>
188 </term>
189 <listitem>
[3ed279f]190 <para>Route Monitoring Utility.</para>
[6aaa1b0]191 <indexterm zone="ch-system-iproute2 rtmon">
192 <primary sortas="b-rtmon">rtmon</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="rtstat">
198 <term>
199 <command>rtstat</command>
200 </term>
201 <listitem>
[3ed279f]202 <para>Route Status Utility</para>
[6aaa1b0]203 <indexterm zone="ch-system-iproute2 rtstat">
204 <primary sortas="b-rtstat">rtstat</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="ss">
210 <term>
211 <command>ss</command>
212 </term>
213 <listitem>
[3ed279f]214 <para>similar to the netstat command. Shows active connections.</para>
[6aaa1b0]215 <indexterm zone="ch-system-iproute2 ss">
216 <primary sortas="b-ss">ss</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="tc">
222 <term>
223 <command>tc</command>
224 </term>
225 <listitem>
[69993f4]226 <para>Traffic Controlling Executable. This is for Quality Of
227Service (QOS) and Class Of Service (COS)
[6aaa1b0]228 implementations.
229 </para>
230
[69993f4]231 <para><command>tc qdisc</command> allows users to setup the queueing
[6aaa1b0]232 discipline.
233 </para>
234
[69993f4]235 <para><command>tc class</command> allows users to setup classes based on
[6aaa1b0]236 the queuing discipline scheduling.
237 </para>
238
[69993f4]239 <para><command>tc estimator</command> allows users to estimate the
[6aaa1b0]240 network flow into a network.
241 </para>
242
[69993f4]243 <para><command>tc filter</command> allows users to setup the QOS/COS
[6aaa1b0]244 packet filtering.
245 </para>
246
[69993f4]247 <para><command>tc policy</command> allows users to setup the QOS/COS
[6aaa1b0]248 policies.
249 </para>
[3ed279f]250 <indexterm zone="ch-system-iproute2 ss">
251 <primary sortas="b-tc">tc</primary>
252 </indexterm>
[6aaa1b0]253 </listitem>
254 </varlistentry>
255 </variablelist>
256 </sect2>
257</sect1>
[ef13657]258
Note: See TracBrowser for help on using the repository browser.