source: chapter06/iproute2.xml@ 1798edf

Last change on this file since 1798edf was 9442d266, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Ported r7351 from trunk to alphabetical branch.

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

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