1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
8 <sect1 id="ch-system-iproute2" role="wrap">
9 <?dbhtml filename="iproute2.html"?>
11 <sect1info condition="script">
12 <productname>iproute2</productname>
13 <productnumber>&iproute2-version;</productnumber>
14 <address>&iproute2-url;</address>
17 <title>IPRoute2-&iproute2-version;</title>
19 <indexterm zone="ch-system-iproute2">
20 <primary sortas="a-IPRoute2">IPRoute2</primary>
23 <sect2 role="package">
26 <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&iproute2-ch6-sbu;</seg>
35 <seg>&iproute2-ch6-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of IPRoute2</title>
44 <para>The <command>arpd</command> program included in this package will not
45 be built since it is dependent on Berkeley DB, which is not installed in
46 LFS. However, documentation files and a directory for
47 <command>arpd</command> will still be installed. Prevent this by running
48 the commands below. If the <command>arpd</command> binary is needed,
49 instructions for compiling Berkeley DB can be found in the BLFS Book at
50 <ulink url="&blfs-book;server/databases.html#db"/>.
53 <screen><userinput remap="pre">sed -i /ARPD/d Makefile
54 sed -i 's/arpd.8//' man/man8/Makefile
55 rm -v doc/arpd.sgml</userinput></screen>
57 <para>It is also necessary to disable building one module that
58 requires <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
60 <screen><userinput remap="pre">sed -i 's/m_ipt.o//' tc/Makefile</userinput></screen>
62 <para>Compile the package:</para>
64 <screen><userinput remap="make">make</userinput></screen>
66 <para>This package comes with a test suite, but due to assumptions it makes,
67 it is not possible to reliably run these tests from within the chroot
68 environment. If you wish to run these tests after booting into your new LFS
69 system, ensure you enable <filename>/proc/config.gz</filename> support
70 in your kernel ("General setup" -> "Enable access to
71 .config through /proc/config.gz" [CONFIG_IKCONFIG_PROC]), then run
72 'make alltests' from the <filename class="directory">testsuite/</filename>
75 <para>Install the package:</para>
77 <screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
81 <sect2 id="contents-iproute2" role="content">
82 <title>Contents of IPRoute2</title>
85 <segtitle>Installed programs</segtitle>
86 <segtitle>Installed directories</segtitle>
89 <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
90 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
92 <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
98 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
99 <?dbfo list-presentation="list"?>
100 <?dbhtml list-presentation="table"?>
102 <varlistentry id="bridge">
103 <term><command>bridge</command></term>
105 <para>Configures network bridges</para>
106 <indexterm zone="ch-system-iproute2 bridge">
107 <primary sortas="b-bridge">bridge</primary>
112 <varlistentry id="ctstat">
113 <term><command>ctstat</command></term>
115 <para>Connection status utility</para>
116 <indexterm zone="ch-system-iproute2 ctstat">
117 <primary sortas="b-ctstat">ctstat</primary>
122 <varlistentry id="genl">
123 <term><command>genl</command></term>
126 <indexterm zone="ch-system-iproute2 genl">
127 <primary sortas="b-genl">genl</primary>
132 <varlistentry id="ifcfg">
133 <term><command>ifcfg</command></term>
135 <para>A shell script wrapper for the <command>ip</command> command
136 [Note that it requires the <command>arping</command> and
137 <command>rdisk</command> programs from the
138 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
139 <indexterm zone="ch-system-iproute2 ifcfg">
140 <primary sortas="b-ifcfg">ifcfg</primary>
145 <varlistentry id="ifstat">
146 <term><command>ifstat</command></term>
148 <para>Shows the interface statistics, including the amount of
149 transmitted and received packets by interface</para>
150 <indexterm zone="ch-system-iproute2 ifstat">
151 <primary sortas="b-ifstat">ifstat</primary>
156 <varlistentry id="ip">
157 <term><command>ip</command></term>
159 <para>The main executable. It has several different functions:</para>
161 <para><command>ip link <replaceable><device></replaceable></command>
162 allows users to look at the state of devices and to make changes</para>
164 <para><command>ip addr</command> allows users to look at addresses and
165 their properties, add new addresses, and delete old ones</para>
167 <para><command>ip neighbor</command> allows users to look at neighbor
168 bindings and their properties, add new neighbor entries, and delete
171 <para><command>ip rule</command> allows users to look at the routing
172 policies and change them</para>
174 <para><command>ip route</command> allows users to look at the routing
175 table and change routing table rules</para>
177 <para><command>ip tunnel</command> allows users to look at the IP
178 tunnels and their properties, and change them</para>
180 <para><command>ip maddr</command> allows users to look at the multicast
181 addresses and their properties, and change them</para>
183 <para><command>ip mroute</command> allows users to set, change, or
184 delete the multicast routing</para>
186 <para><command>ip monitor</command> allows users to continuously monitor
187 the state of devices, addresses and routes</para>
188 <indexterm zone="ch-system-iproute2 ip">
189 <primary sortas="b-ip">ip</primary>
194 <varlistentry id="lnstat">
195 <term><command>lnstat</command></term>
197 <para>Provides Linux network statistics; it is a generalized and more
198 feature-complete replacement for the old <command>rtstat</command>
200 <indexterm zone="ch-system-iproute2 lnstat">
201 <primary sortas="b-lnstat">lnstat</primary>
206 <varlistentry id="nstat">
207 <term><command>nstat</command></term>
209 <para>Shows network statistics</para>
210 <indexterm zone="ch-system-iproute2 nstat">
211 <primary sortas="b-nstat">nstat</primary>
216 <varlistentry id="routef">
217 <term><command>routef</command></term>
219 <para>A component of <command>ip route</command>. This is for flushing
220 the routing tables</para>
221 <indexterm zone="ch-system-iproute2 routef">
222 <primary sortas="b-routef">routef</primary>
227 <varlistentry id="routel">
228 <term><command>routel</command></term>
230 <para>A component of <command>ip route</command>. This is for listing
231 the routing tables</para>
232 <indexterm zone="ch-system-iproute2 routel">
233 <primary sortas="b-routel">routel</primary>
238 <varlistentry id="rtacct">
239 <term><command>rtacct</command></term>
241 <para>Displays the contents of
242 <filename>/proc/net/rt_acct</filename></para>
243 <indexterm zone="ch-system-iproute2 rtacct">
244 <primary sortas="b-rtacct">rtacct</primary>
249 <varlistentry id="rtmon">
250 <term><command>rtmon</command></term>
252 <para>Route monitoring utility</para>
253 <indexterm zone="ch-system-iproute2 rtmon">
254 <primary sortas="b-rtmon">rtmon</primary>
259 <varlistentry id="rtpr">
260 <term><command>rtpr</command></term>
262 <para>Converts the output of <command>ip -o</command> back into a
264 <indexterm zone="ch-system-iproute2 rtpr">
265 <primary sortas="b-rtpr">rtpr</primary>
270 <varlistentry id="rtstat">
271 <term><command>rtstat</command></term>
273 <para>Route status utility</para>
274 <indexterm zone="ch-system-iproute2 rtstat">
275 <primary sortas="b-rtstat">rtstat</primary>
280 <varlistentry id="ss">
281 <term><command>ss</command></term>
283 <para>Similar to the <command>netstat</command> command; shows active
285 <indexterm zone="ch-system-iproute2 ss">
286 <primary sortas="b-ss">ss</primary>
291 <varlistentry id="tc">
292 <term><command>tc</command></term>
294 <para>Traffic Controlling Executable; this is for Quality Of Service
295 (QOS) and Class Of Service (COS) implementations</para>
297 <para><command>tc qdisc</command> allows users to setup the queueing
300 <para><command>tc class</command> allows users to setup classes based
301 on the queuing discipline scheduling</para>
303 <para><command>tc estimator</command> allows users to estimate the
304 network flow into a network</para>
306 <para><command>tc filter</command> allows users to setup the QOS/COS
307 packet filtering</para>
309 <para><command>tc policy</command> allows users to setup the QOS/COS
311 <indexterm zone="ch-system-iproute2 ss">
312 <primary sortas="b-tc">tc</primary>