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, a directory for <command>arpd</command> and a man page will still
47 be installed. Prevent this by running the commands below.
48 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 rm -fv man/man8/arpd.8</userinput></screen>
56 <para>It is also necessary to disable building two modules that
57 requires <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
59 <screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>
61 <para>Compile the package:</para>
63 <screen><userinput remap="make">make</userinput></screen>
65 <para>This package does not have a working test suite.</para>
66 <!-- currently not useful, no tests actually run
67 <para>This package comes with a test suite, but due to assumptions it makes,
68 it is not possible to reliably run these tests from within the chroot
69 environment. If you wish to run these tests after booting into your new LFS
70 system, ensure you enable <filename>/proc/config.gz</filename> support
71 in your kernel ("General setup" -> "Enable access to
72 .config through /proc/config.gz" [CONFIG_IKCONFIG_PROC]), then run
73 'make alltests' from the <filename class="directory">testsuite/</filename>
74 subdirectory.</para>-->
76 <para>Install the package:</para>
78 <screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
82 <sect2 id="contents-iproute2" role="content">
83 <title>Contents of IPRoute2</title>
86 <segtitle>Installed programs</segtitle>
87 <segtitle>Installed directories</segtitle>
90 <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
91 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
93 <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
99 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
100 <?dbfo list-presentation="list"?>
101 <?dbhtml list-presentation="table"?>
103 <varlistentry id="bridge">
104 <term><command>bridge</command></term>
106 <para>Configures network bridges</para>
107 <indexterm zone="ch-system-iproute2 bridge">
108 <primary sortas="b-bridge">bridge</primary>
113 <varlistentry id="ctstat">
114 <term><command>ctstat</command></term>
116 <para>Connection status utility</para>
117 <indexterm zone="ch-system-iproute2 ctstat">
118 <primary sortas="b-ctstat">ctstat</primary>
123 <varlistentry id="genl">
124 <term><command>genl</command></term>
126 <para>Generic netlink utility frontend</para>
127 <indexterm zone="ch-system-iproute2 genl">
128 <primary sortas="b-genl">genl</primary>
133 <varlistentry id="ifcfg">
134 <term><command>ifcfg</command></term>
136 <para>A shell script wrapper for the <command>ip</command> command
137 [Note that it requires the <command>arping</command> and
138 <command>rdisk</command> programs from the
139 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
140 <indexterm zone="ch-system-iproute2 ifcfg">
141 <primary sortas="b-ifcfg">ifcfg</primary>
146 <varlistentry id="ifstat">
147 <term><command>ifstat</command></term>
149 <para>Shows the interface statistics, including the amount of
150 transmitted and received packets by interface</para>
151 <indexterm zone="ch-system-iproute2 ifstat">
152 <primary sortas="b-ifstat">ifstat</primary>
157 <varlistentry id="ip">
158 <term><command>ip</command></term>
160 <para>The main executable. It has several different functions:</para>
162 <para><command>ip link <replaceable><device></replaceable></command>
163 allows users to look at the state of devices and to make changes</para>
165 <para><command>ip addr</command> allows users to look at addresses and
166 their properties, add new addresses, and delete old ones</para>
168 <para><command>ip neighbor</command> allows users to look at neighbor
169 bindings and their properties, add new neighbor entries, and delete
172 <para><command>ip rule</command> allows users to look at the routing
173 policies and change them</para>
175 <para><command>ip route</command> allows users to look at the routing
176 table and change routing table rules</para>
178 <para><command>ip tunnel</command> allows users to look at the IP
179 tunnels and their properties, and change them</para>
181 <para><command>ip maddr</command> allows users to look at the multicast
182 addresses and their properties, and change them</para>
184 <para><command>ip mroute</command> allows users to set, change, or
185 delete the multicast routing</para>
187 <para><command>ip monitor</command> allows users to continuously monitor
188 the state of devices, addresses and routes</para>
189 <indexterm zone="ch-system-iproute2 ip">
190 <primary sortas="b-ip">ip</primary>
195 <varlistentry id="lnstat">
196 <term><command>lnstat</command></term>
198 <para>Provides Linux network statistics; it is a generalized and more
199 feature-complete replacement for the old <command>rtstat</command>
201 <indexterm zone="ch-system-iproute2 lnstat">
202 <primary sortas="b-lnstat">lnstat</primary>
207 <varlistentry id="nstat">
208 <term><command>nstat</command></term>
210 <para>Shows network statistics</para>
211 <indexterm zone="ch-system-iproute2 nstat">
212 <primary sortas="b-nstat">nstat</primary>
217 <varlistentry id="routef">
218 <term><command>routef</command></term>
220 <para>A component of <command>ip route</command>. This is for flushing
221 the routing tables</para>
222 <indexterm zone="ch-system-iproute2 routef">
223 <primary sortas="b-routef">routef</primary>
228 <varlistentry id="routel">
229 <term><command>routel</command></term>
231 <para>A component of <command>ip route</command>. This is for listing
232 the routing tables</para>
233 <indexterm zone="ch-system-iproute2 routel">
234 <primary sortas="b-routel">routel</primary>
239 <varlistentry id="rtacct">
240 <term><command>rtacct</command></term>
242 <para>Displays the contents of
243 <filename>/proc/net/rt_acct</filename></para>
244 <indexterm zone="ch-system-iproute2 rtacct">
245 <primary sortas="b-rtacct">rtacct</primary>
250 <varlistentry id="rtmon">
251 <term><command>rtmon</command></term>
253 <para>Route monitoring utility</para>
254 <indexterm zone="ch-system-iproute2 rtmon">
255 <primary sortas="b-rtmon">rtmon</primary>
260 <varlistentry id="rtpr">
261 <term><command>rtpr</command></term>
263 <para>Converts the output of <command>ip -o</command> back into a
265 <indexterm zone="ch-system-iproute2 rtpr">
266 <primary sortas="b-rtpr">rtpr</primary>
271 <varlistentry id="rtstat">
272 <term><command>rtstat</command></term>
274 <para>Route status utility</para>
275 <indexterm zone="ch-system-iproute2 rtstat">
276 <primary sortas="b-rtstat">rtstat</primary>
281 <varlistentry id="ss">
282 <term><command>ss</command></term>
284 <para>Similar to the <command>netstat</command> command; shows active
286 <indexterm zone="ch-system-iproute2 ss">
287 <primary sortas="b-ss">ss</primary>
292 <varlistentry id="tc">
293 <term><command>tc</command></term>
295 <para>Traffic Controlling Executable; this is for Quality Of Service
296 (QOS) and Class Of Service (COS) implementations</para>
298 <para><command>tc qdisc</command> allows users to setup the queueing
301 <para><command>tc class</command> allows users to setup classes based
302 on the queuing discipline scheduling</para>
304 <para><command>tc estimator</command> allows users to estimate the
305 network flow into a network</para>
307 <para><command>tc filter</command> allows users to setup the QOS/COS
308 packet filtering</para>
310 <para><command>tc policy</command> allows users to setup the QOS/COS
312 <indexterm zone="ch-system-iproute2 ss">
313 <primary sortas="b-tc">tc</primary>