source: chapter06/iproute2.xml@ be1de8e

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since be1de8e was be1de8e, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to iproute2-4.1.1.
Update to file-5.24.
Update to linux-4.1.2.
Update to gettext-0.19.5.
Fix a warning in the installed automake perl script.

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

  • Property mode set to 100644
File size: 11.5 KB
RevLine 
[a088964]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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
[e747759]11 <sect1info condition="script">
12 <productname>iproute2</productname>
13 <productnumber>&iproute2-version;</productnumber>
14 <address>&iproute2-url;</address>
15 </sect1info>
16
[f0d59f2]17 <title>IPRoute2-&iproute2-version;</title>
[bdea25ce]18
[a088964]19 <indexterm zone="ch-system-iproute2">
[89ed081]20 <primary sortas="a-IPRoute2">IPRoute2</primary>
[a088964]21 </indexterm>
[bdea25ce]22
[a088964]23 <sect2 role="package">
24 <title/>
[bdea25ce]25
26 <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
27 networking.</para>
28
[a088964]29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[bdea25ce]32
[a088964]33 <seglistitem>
[e4a5635]34 <seg>&iproute2-ch6-sbu;</seg>
35 <seg>&iproute2-ch6-du;</seg>
[a088964]36 </seglistitem>
37 </segmentedlist>
[bdea25ce]38
[a088964]39 </sect2>
[bdea25ce]40
[a088964]41 <sect2 role="installation">
[f0d59f2]42 <title>Installation of IPRoute2</title>
[a088964]43
[9cccea2]44 <para>The <command>arpd</command> binary included in this package is
45 dependent on Berkeley DB. Because <command>arpd</command> is not a very
[bf10add]46 common requirement on a base Linux system, remove the dependency on Berkeley
47 DB by applying the commands below. If the <command>arpd</command> binary is
48 needed, instructions for compiling Berkeley DB can be found in the BLFS Book
[0ee07e5]49 at <ulink url="&blfs-book;server/databases.html#db"/>.
[9cccea2]50 </para>
51
[bf10add]52<screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
53sed -i /ARPD/d Makefile
[04b82390]54sed -i 's/arpd.8//' man/man8/Makefile</userinput></screen>
[9cccea2]55
[899d530e]56<!-- Save as comments for now
[d65b365]57 <para>Remove a compiler flag that causes the compilation to fail:</para>
58<screen><userinput remap="pre">sed -i 's/-Werror//' Makefile</userinput></screen>
[0aa4782]59
[899d530e]60-->
[be1de8e]61<!--
62
[0aa4782]63 <para>Do not build the unneeded tipc program. Transparent Inter-process
64 Communication (TIPC) is a network communications protocol for Inter-process
65 communication (IPC) that was designed for intra-cluster
66 communication.</para>
67
68<screen><userinput remap="pre">sed -i 's/tipc //' Makefile</userinput></screen>
[be1de8e]69-->
[a088964]70 <para>Compile the package:</para>
71
[cf5da6bb]72<screen><userinput remap="make">make</userinput></screen>
[81fd230]73
[0ebe029b]74 <para>This package comes with a test suite, but due to assumptions it makes,
[971be6b]75 it is not possible to reliably run these tests from within the chroot
76 environment. If you wish to run these tests after booting into your new LFS
[d450151]77 system, ensure you enable <filename>/proc/config.gz</filename> support
78 in your kernel (&quot;General setup&quot; -> &quot;Enable access to
79 .config through /proc/config.gz&quot; [CONFIG_IKCONFIG_PROC]), then run
[971be6b]80 'make alltests' from the <filename class="directory">testsuite/</filename>
81 subdirectory.</para>
[0be3d41]82
[81fd230]83 <para>Install the package:</para>
84
[cf5da6bb]85<screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
[bdea25ce]86
[a088964]87 </sect2>
88
89 <sect2 id="contents-iproute2" role="content">
[f0d59f2]90 <title>Contents of IPRoute2</title>
[bdea25ce]91
[81fd230]92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
[fe05b08]94 <segtitle>Installed directories</segtitle>
[bdea25ce]95
[81fd230]96 <seglistitem>
[ca101ad]97 <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
[2791a8e]98 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
[79f9e00]99 and tc</seg>
[0aa4782]100 <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
101 </seg>
[81fd230]102 </seglistitem>
103 </segmentedlist>
104
[bdea25ce]105 <variablelist>
106 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
107 <?dbfo list-presentation="list"?>
108 <?dbhtml list-presentation="table"?>
109
[ca101ad]110 <varlistentry id="bridge">
111 <term><command>bridge</command></term>
112 <listitem>
113 <para>Configures network bridges</para>
114 <indexterm zone="ch-system-iproute2 bridge">
115 <primary sortas="b-bridge">bridge</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
[46a500e]120 <varlistentry id="ctstat">
[bdea25ce]121 <term><command>ctstat</command></term>
[46a500e]122 <listitem>
[89ed081]123 <para>Connection status utility</para>
[46a500e]124 <indexterm zone="ch-system-iproute2 ctstat">
[005dc3f]125 <primary sortas="b-ctstat">ctstat</primary>
[46a500e]126 </indexterm>
127 </listitem>
128 </varlistentry>
129
[2791a8e]130 <varlistentry id="genl">
131 <term><command>genl</command></term>
132 <listitem>
133 <para></para>
134 <indexterm zone="ch-system-iproute2 genl">
135 <primary sortas="b-genl">genl</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
[46a500e]140 <varlistentry id="ifcfg">
[bdea25ce]141 <term><command>ifcfg</command></term>
[46a500e]142 <listitem>
[7bb9fda]143 <para>A shell script wrapper for the <command>ip</command> command
144 [Note that it requires the <command>arping</command> and
[2ca8941]145 <command>rdisk</command> programs from the
[7bb9fda]146 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
[46a500e]147 <indexterm zone="ch-system-iproute2 ifcfg">
148 <primary sortas="b-ifcfg">ifcfg</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
[81fd230]152
153 <varlistentry id="ifstat">
[bdea25ce]154 <term><command>ifstat</command></term>
[81fd230]155 <listitem>
[bdea25ce]156 <para>Shows the interface statistics, including the amount of
157 transmitted and received packets by interface</para>
[81fd230]158 <indexterm zone="ch-system-iproute2 ifstat">
159 <primary sortas="b-ifstat">ifstat</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="ip">
[bdea25ce]165 <term><command>ip</command></term>
[81fd230]166 <listitem>
167 <para>The main executable. It has several different functions:</para>
168
[0090db5]169 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
[bdea25ce]170 allows users to look at the state of devices and to make changes</para>
[81fd230]171
172 <para><command>ip addr</command> allows users to look at addresses and
[bdea25ce]173 their properties, add new addresses, and delete old ones</para>
[81fd230]174
[bdea25ce]175 <para><command>ip neighbor</command> allows users to look at neighbor
176 bindings and their properties, add new neighbor entries, and delete
177 old ones</para>
[81fd230]178
179 <para><command>ip rule</command> allows users to look at the routing
[bdea25ce]180 policies and change them</para>
[81fd230]181
182 <para><command>ip route</command> allows users to look at the routing
[bdea25ce]183 table and change routing table rules</para>
[81fd230]184
185 <para><command>ip tunnel</command> allows users to look at the IP
[bdea25ce]186 tunnels and their properties, and change them</para>
[81fd230]187
188 <para><command>ip maddr</command> allows users to look at the multicast
[bdea25ce]189 addresses and their properties, and change them</para>
[81fd230]190
191 <para><command>ip mroute</command> allows users to set, change, or
[bdea25ce]192 delete the multicast routing</para>
[81fd230]193
[cb02946]194 <para><command>ip monitor</command> allows users to continuously monitor
[bdea25ce]195 the state of devices, addresses and routes</para>
[81fd230]196 <indexterm zone="ch-system-iproute2 ip">
197 <primary sortas="b-ip">ip</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
[46a500e]202 <varlistentry id="lnstat">
[bdea25ce]203 <term><command>lnstat</command></term>
[46a500e]204 <listitem>
[7bb9fda]205 <para>Provides Linux network statistics; it is a generalized and more
[bdea25ce]206 feature-complete replacement for the old <command>rtstat</command>
207 program</para>
[46a500e]208 <indexterm zone="ch-system-iproute2 lnstat">
[005dc3f]209 <primary sortas="b-lnstat">lnstat</primary>
[46a500e]210 </indexterm>
211 </listitem>
212 </varlistentry>
213
[81fd230]214 <varlistentry id="nstat">
[bdea25ce]215 <term><command>nstat</command></term>
[81fd230]216 <listitem>
[89ed081]217 <para>Shows network statistics</para>
[81fd230]218 <indexterm zone="ch-system-iproute2 nstat">
219 <primary sortas="b-nstat">nstat</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="routef">
[bdea25ce]225 <term><command>routef</command></term>
[81fd230]226 <listitem>
[bdea25ce]227 <para>A component of <command>ip route</command>. This is for flushing
228 the routing tables</para>
[81fd230]229 <indexterm zone="ch-system-iproute2 routef">
230 <primary sortas="b-routef">routef</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="routel">
[bdea25ce]236 <term><command>routel</command></term>
[81fd230]237 <listitem>
[bdea25ce]238 <para>A component of <command>ip route</command>. This is for listing
239 the routing tables</para>
[81fd230]240 <indexterm zone="ch-system-iproute2 routel">
241 <primary sortas="b-routel">routel</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
[46a500e]246 <varlistentry id="rtacct">
[bdea25ce]247 <term><command>rtacct</command></term>
[46a500e]248 <listitem>
[bdea25ce]249 <para>Displays the contents of
250 <filename>/proc/net/rt_acct</filename></para>
[46a500e]251 <indexterm zone="ch-system-iproute2 rtacct">
252 <primary sortas="b-rtacct">rtacct</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
[81fd230]257 <varlistentry id="rtmon">
[bdea25ce]258 <term><command>rtmon</command></term>
[81fd230]259 <listitem>
[89ed081]260 <para>Route monitoring utility</para>
[81fd230]261 <indexterm zone="ch-system-iproute2 rtmon">
262 <primary sortas="b-rtmon">rtmon</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
[46a500e]267 <varlistentry id="rtpr">
[bdea25ce]268 <term><command>rtpr</command></term>
[46a500e]269 <listitem>
270 <para>Converts the output of <command>ip -o</command> back into a
[bdea25ce]271 readable form</para>
[46a500e]272 <indexterm zone="ch-system-iproute2 rtpr">
273 <primary sortas="b-rtpr">rtpr</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
[81fd230]278 <varlistentry id="rtstat">
[bdea25ce]279 <term><command>rtstat</command></term>
[81fd230]280 <listitem>
[89ed081]281 <para>Route status utility</para>
[81fd230]282 <indexterm zone="ch-system-iproute2 rtstat">
283 <primary sortas="b-rtstat">rtstat</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="ss">
[bdea25ce]289 <term><command>ss</command></term>
[81fd230]290 <listitem>
[bdea25ce]291 <para>Similar to the <command>netstat</command> command; shows active
292 connections</para>
[81fd230]293 <indexterm zone="ch-system-iproute2 ss">
294 <primary sortas="b-ss">ss</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="tc">
[bdea25ce]300 <term><command>tc</command></term>
[81fd230]301 <listitem>
[bdea25ce]302 <para>Traffic Controlling Executable; this is for Quality Of Service
303 (QOS) and Class Of Service (COS) implementations</para>
[81fd230]304
305 <para><command>tc qdisc</command> allows users to setup the queueing
[bdea25ce]306 discipline</para>
[81fd230]307
[bdea25ce]308 <para><command>tc class</command> allows users to setup classes based
309 on the queuing discipline scheduling</para>
[81fd230]310
311 <para><command>tc estimator</command> allows users to estimate the
[bdea25ce]312 network flow into a network</para>
[81fd230]313
314 <para><command>tc filter</command> allows users to setup the QOS/COS
[bdea25ce]315 packet filtering</para>
[81fd230]316
317 <para><command>tc policy</command> allows users to setup the QOS/COS
[bdea25ce]318 policies</para>
[81fd230]319 <indexterm zone="ch-system-iproute2 ss">
320 <primary sortas="b-tc">tc</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
[bdea25ce]324
[81fd230]325 </variablelist>
[bdea25ce]326
[a088964]327 </sect2>
[81fd230]328
[bdea25ce]329</sect1>
Note: See TracBrowser for help on using the repository browser.