source: chapter06/iproute2.xml@ dd03426

Last change on this file since dd03426 was 28b40e2, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Finished the PDF fixes.

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

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