source: BOOK/final-system/common/iproute2.xml@ 3114d90

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3114d90 was 8cd6d31, checked in by Jim Gifford <clfs@…>, 19 years ago

r2491@server (orig r1238): chris | 2006-03-09 08:05:53 -0800
Simplified iproute2 instructions

  • Property mode set to 100644
File size: 9.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-iproute2" role="wrap">
9 <?dbhtml filename="iproute2.html"?>
10
11 <title>IPRoute2-&iproute2-version;</title>
12
13 <indexterm zone="ch-system-iproute2">
14 <primary sortas="a-IPRoute2">IPRoute2</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The IPRoute2 package contains programs for basic and advanced
[3373dd11]21 IPV4-based networking.</para>
[3f8be484]22
23 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
[b76b419]27 <seg>Bash, Bison, Coreutils, GCC, Glibc, Make,
28 Linux-Libc-Headers, and Sed</seg>
[3f8be484]29 </seglistitem>
30 </segmentedlist>
31
32 </sect2>
33
34 <sect2 role="installation">
35 <title>Installation of IPRoute2</title>
36
[e0e40d3]37 <para os="s1">The <command>arpd</command> binary included in this package is
[3f8be484]38 dependent on Berkeley DB. Because <command>arpd</command> is not a
39 very common requirement on a base Linux system, remove the dependency
40 on Berkeley DB by applying the <command>sed</command> command below.
41 If the <command>arpd</command> binary is needed, instructions for
42 compiling Berkeley DB can be found in the BLFS Book at <ulink
43 url="&blfs-root;view/svn/server/databases.html#db"/>.</para>
44
[e0e40d3]45<screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
[3f8be484]46
[8cd6d31]47 <para os="a">Compile the package:</para>
[3f8be484]48
[8cd6d31]49<screen os="b"><userinput>make SBINDIR=/sbin</userinput></screen>
[3f8be484]50
[8cd6d31]51 <variablelist os="c">
[3f8be484]52 <title>The meaning of the make option:</title>
53
54 <varlistentry>
55 <term><parameter>SBINDIR=/sbin</parameter></term>
56 <listitem>
57 <para>This ensures that the IPRoute2 binaries will install into
58 <filename class="directory">/sbin</filename>. This is the correct
59 location according to the FHS, because some of the IPRoute2 binaries
60 are used by the LFS-Bootscripts package.</para>
61 </listitem>
62 </varlistentry>
63 </variablelist>
64
[8cd6d31]65 <para os="d">This package does not come with a test suite.</para>
[3f8be484]66
[8cd6d31]67 <para os="e">Install the package:</para>
[d1631d1]68
[8cd6d31]69<screen os="f"><userinput>make SBINDIR=/sbin install</userinput></screen>
[3f8be484]70
71 </sect2>
72
73 <sect2 id="contents-iproute2" role="content">
74 <title>Contents of IPRoute2</title>
75
76 <segmentedlist>
77 <segtitle>Installed programs</segtitle>
78
79 <seglistitem>
80 <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
81 routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
82 and tc</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="ctstat">
92 <term><command>ctstat</command></term>
93 <listitem>
94 <para>Connection status utility</para>
95 <indexterm zone="ch-system-iproute2 ctstat">
96 <primary sortas="b-cstat">ctstat</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="ifcfg">
102 <term><command>ifcfg</command></term>
103 <listitem>
104 <para>A shell script wrapper for the <command>ip</command>
105 command</para>
106 <indexterm zone="ch-system-iproute2 ifcfg">
107 <primary sortas="b-ifcfg">ifcfg</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="ifstat">
113 <term><command>ifstat</command></term>
114 <listitem>
115 <para>Shows the interface statistics, including the amount of
116 transmitted and received packets by interface</para>
117 <indexterm zone="ch-system-iproute2 ifstat">
118 <primary sortas="b-ifstat">ifstat</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="ip">
124 <term><command>ip</command></term>
125 <listitem>
126 <para>The main executable. It has several different functions:</para>
127
128 <para><command>ip link <replaceable>[device]</replaceable></command>
129 allows users to look at the state of devices and to make changes</para>
130
131 <para><command>ip addr</command> allows users to look at addresses and
132 their properties, add new addresses, and delete old ones</para>
133
134 <para><command>ip neighbor</command> allows users to look at neighbor
135 bindings and their properties, add new neighbor entries, and delete
136 old ones</para>
137
138 <para><command>ip rule</command> allows users to look at the routing
139 policies and change them</para>
140
141 <para><command>ip route</command> allows users to look at the routing
142 table and change routing table rules</para>
143
144 <para><command>ip tunnel</command> allows users to look at the IP
145 tunnels and their properties, and change them</para>
146
147 <para><command>ip maddr</command> allows users to look at the multicast
148 addresses and their properties, and change them</para>
149
150 <para><command>ip mroute</command> allows users to set, change, or
151 delete the multicast routing</para>
152
153 <para><command>ip monitor</command> allows users to continously monitor
154 the state of devices, addresses and routes</para>
155 <indexterm zone="ch-system-iproute2 ip">
156 <primary sortas="b-ip">ip</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="lnstat">
162 <term><command>lnstat</command></term>
163 <listitem>
164 <para>Provides Linux network statistics. It is a generalized and more
165 feature-complete replacement for the old <command>rtstat</command>
166 program</para>
167 <indexterm zone="ch-system-iproute2 lnstat">
168 <primary sortas="b-cstat">lnstat</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="nstat">
174 <term><command>nstat</command></term>
175 <listitem>
176 <para>Shows network statistics</para>
177 <indexterm zone="ch-system-iproute2 nstat">
178 <primary sortas="b-nstat">nstat</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="routef">
184 <term><command>routef</command></term>
185 <listitem>
186 <para>A component of <command>ip route</command>. This is for flushing
187 the routing tables</para>
188 <indexterm zone="ch-system-iproute2 routef">
189 <primary sortas="b-routef">routef</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="routel">
195 <term><command>routel</command></term>
196 <listitem>
197 <para>A component of <command>ip route</command>. This is for listing
198 the routing tables</para>
199 <indexterm zone="ch-system-iproute2 routel">
200 <primary sortas="b-routel">routel</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="rtacct">
206 <term><command>rtacct</command></term>
207 <listitem>
208 <para>Displays the contents of
209 <filename>/proc/net/rt_acct</filename></para>
210 <indexterm zone="ch-system-iproute2 rtacct">
211 <primary sortas="b-rtacct">rtacct</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="rtmon">
217 <term><command>rtmon</command></term>
218 <listitem>
219 <para>Route monitoring utility</para>
220 <indexterm zone="ch-system-iproute2 rtmon">
221 <primary sortas="b-rtmon">rtmon</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="rtpr">
227 <term><command>rtpr</command></term>
228 <listitem>
229 <para>Converts the output of <command>ip -o</command> back into a
230 readable form</para>
231 <indexterm zone="ch-system-iproute2 rtpr">
232 <primary sortas="b-rtpr">rtpr</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="rtstat">
238 <term><command>rtstat</command></term>
239 <listitem>
240 <para>Route status utility</para>
241 <indexterm zone="ch-system-iproute2 rtstat">
242 <primary sortas="b-rtstat">rtstat</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="ss">
248 <term><command>ss</command></term>
249 <listitem>
250 <para>Similar to the <command>netstat</command> command; shows
251 active connections</para>
252 <indexterm zone="ch-system-iproute2 ss">
253 <primary sortas="b-ss">ss</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="tc">
259 <term><command>tc</command></term>
260 <listitem>
261 <para>Traffic Controlling Executable; this is for Quality Of Service
262 (QOS) and Class Of Service (COS) implementations</para>
263
264 <para><command>tc qdisc</command> allows users to setup the queueing
265 discipline</para>
266
267 <para><command>tc class</command> allows users to setup classes based on
268 the queuing discipline scheduling</para>
269
270 <para><command>tc estimator</command> allows users to estimate the
271 network flow into a network</para>
272
273 <para><command>tc filter</command> allows users to setup the QOS/COS
274 packet filtering</para>
275
276 <para><command>tc policy</command> allows users to setup the QOS/COS
277 policies</para>
278 <indexterm zone="ch-system-iproute2 ss">
279 <primary sortas="b-tc">tc</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.