source: chapter06/iproute2.xml@ 3c0d7c5

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 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 3c0d7c5 was 6934b62, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to linux-4.5.
Update to grep-2.24.
Update to expat-2.1.1.
Update to tzdata-2016c.
Update to iproute2-4.5.0.
Update to man-pages-4.05.
Update to gzip-1.7.

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

  • Property mode set to 100644
File size: 11.2 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
[e691c77]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"/>.
[9cccea2]51 </para>
52
[e691c77]53<screen><userinput remap="pre">sed -i /ARPD/d Makefile
54sed -i 's/arpd.8//' man/man8/Makefile
55rm -v doc/arpd.sgml</userinput></screen>
[9cccea2]56
[6934b62]57 <para>It is also necessary to disable building one module that
58 requires <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
59
60<screen><userinput remap="pre">sed -i 's/m_ipt.o//' tc/Makefile</userinput></screen>
61
[a088964]62 <para>Compile the package:</para>
63
[cf5da6bb]64<screen><userinput remap="make">make</userinput></screen>
[81fd230]65
[0ebe029b]66 <para>This package comes with a test suite, but due to assumptions it makes,
[971be6b]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
[d450151]69 system, ensure you enable <filename>/proc/config.gz</filename> support
70 in your kernel (&quot;General setup&quot; -> &quot;Enable access to
71 .config through /proc/config.gz&quot; [CONFIG_IKCONFIG_PROC]), then run
[971be6b]72 'make alltests' from the <filename class="directory">testsuite/</filename>
73 subdirectory.</para>
[0be3d41]74
[81fd230]75 <para>Install the package:</para>
76
[cf5da6bb]77<screen><userinput remap="install">make DOCDIR=/usr/share/doc/iproute2-&iproute2-version; install</userinput></screen>
[bdea25ce]78
[a088964]79 </sect2>
80
81 <sect2 id="contents-iproute2" role="content">
[f0d59f2]82 <title>Contents of IPRoute2</title>
[bdea25ce]83
[81fd230]84 <segmentedlist>
85 <segtitle>Installed programs</segtitle>
[fe05b08]86 <segtitle>Installed directories</segtitle>
[bdea25ce]87
[81fd230]88 <seglistitem>
[ca101ad]89 <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
[2791a8e]90 nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
[79f9e00]91 and tc</seg>
[0aa4782]92 <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;,
93 </seg>
[81fd230]94 </seglistitem>
95 </segmentedlist>
96
[bdea25ce]97 <variablelist>
98 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
99 <?dbfo list-presentation="list"?>
100 <?dbhtml list-presentation="table"?>
101
[ca101ad]102 <varlistentry id="bridge">
103 <term><command>bridge</command></term>
104 <listitem>
105 <para>Configures network bridges</para>
106 <indexterm zone="ch-system-iproute2 bridge">
107 <primary sortas="b-bridge">bridge</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
[46a500e]112 <varlistentry id="ctstat">
[bdea25ce]113 <term><command>ctstat</command></term>
[46a500e]114 <listitem>
[89ed081]115 <para>Connection status utility</para>
[46a500e]116 <indexterm zone="ch-system-iproute2 ctstat">
[005dc3f]117 <primary sortas="b-ctstat">ctstat</primary>
[46a500e]118 </indexterm>
119 </listitem>
120 </varlistentry>
121
[2791a8e]122 <varlistentry id="genl">
123 <term><command>genl</command></term>
124 <listitem>
125 <para></para>
126 <indexterm zone="ch-system-iproute2 genl">
127 <primary sortas="b-genl">genl</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
[46a500e]132 <varlistentry id="ifcfg">
[bdea25ce]133 <term><command>ifcfg</command></term>
[46a500e]134 <listitem>
[7bb9fda]135 <para>A shell script wrapper for the <command>ip</command> command
136 [Note that it requires the <command>arping</command> and
[2ca8941]137 <command>rdisk</command> programs from the
[7bb9fda]138 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.]</para>
[46a500e]139 <indexterm zone="ch-system-iproute2 ifcfg">
140 <primary sortas="b-ifcfg">ifcfg</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
[81fd230]144
145 <varlistentry id="ifstat">
[bdea25ce]146 <term><command>ifstat</command></term>
[81fd230]147 <listitem>
[bdea25ce]148 <para>Shows the interface statistics, including the amount of
149 transmitted and received packets by interface</para>
[81fd230]150 <indexterm zone="ch-system-iproute2 ifstat">
151 <primary sortas="b-ifstat">ifstat</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="ip">
[bdea25ce]157 <term><command>ip</command></term>
[81fd230]158 <listitem>
159 <para>The main executable. It has several different functions:</para>
160
[0090db5]161 <para><command>ip link <replaceable>&lt;device&gt;</replaceable></command>
[bdea25ce]162 allows users to look at the state of devices and to make changes</para>
[81fd230]163
164 <para><command>ip addr</command> allows users to look at addresses and
[bdea25ce]165 their properties, add new addresses, and delete old ones</para>
[81fd230]166
[bdea25ce]167 <para><command>ip neighbor</command> allows users to look at neighbor
168 bindings and their properties, add new neighbor entries, and delete
169 old ones</para>
[81fd230]170
171 <para><command>ip rule</command> allows users to look at the routing
[bdea25ce]172 policies and change them</para>
[81fd230]173
174 <para><command>ip route</command> allows users to look at the routing
[bdea25ce]175 table and change routing table rules</para>
[81fd230]176
177 <para><command>ip tunnel</command> allows users to look at the IP
[bdea25ce]178 tunnels and their properties, and change them</para>
[81fd230]179
180 <para><command>ip maddr</command> allows users to look at the multicast
[bdea25ce]181 addresses and their properties, and change them</para>
[81fd230]182
183 <para><command>ip mroute</command> allows users to set, change, or
[bdea25ce]184 delete the multicast routing</para>
[81fd230]185
[cb02946]186 <para><command>ip monitor</command> allows users to continuously monitor
[bdea25ce]187 the state of devices, addresses and routes</para>
[81fd230]188 <indexterm zone="ch-system-iproute2 ip">
189 <primary sortas="b-ip">ip</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
[46a500e]194 <varlistentry id="lnstat">
[bdea25ce]195 <term><command>lnstat</command></term>
[46a500e]196 <listitem>
[7bb9fda]197 <para>Provides Linux network statistics; it is a generalized and more
[bdea25ce]198 feature-complete replacement for the old <command>rtstat</command>
199 program</para>
[46a500e]200 <indexterm zone="ch-system-iproute2 lnstat">
[005dc3f]201 <primary sortas="b-lnstat">lnstat</primary>
[46a500e]202 </indexterm>
203 </listitem>
204 </varlistentry>
205
[81fd230]206 <varlistentry id="nstat">
[bdea25ce]207 <term><command>nstat</command></term>
[81fd230]208 <listitem>
[89ed081]209 <para>Shows network statistics</para>
[81fd230]210 <indexterm zone="ch-system-iproute2 nstat">
211 <primary sortas="b-nstat">nstat</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="routef">
[bdea25ce]217 <term><command>routef</command></term>
[81fd230]218 <listitem>
[bdea25ce]219 <para>A component of <command>ip route</command>. This is for flushing
220 the routing tables</para>
[81fd230]221 <indexterm zone="ch-system-iproute2 routef">
222 <primary sortas="b-routef">routef</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="routel">
[bdea25ce]228 <term><command>routel</command></term>
[81fd230]229 <listitem>
[bdea25ce]230 <para>A component of <command>ip route</command>. This is for listing
231 the routing tables</para>
[81fd230]232 <indexterm zone="ch-system-iproute2 routel">
233 <primary sortas="b-routel">routel</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[46a500e]238 <varlistentry id="rtacct">
[bdea25ce]239 <term><command>rtacct</command></term>
[46a500e]240 <listitem>
[bdea25ce]241 <para>Displays the contents of
242 <filename>/proc/net/rt_acct</filename></para>
[46a500e]243 <indexterm zone="ch-system-iproute2 rtacct">
244 <primary sortas="b-rtacct">rtacct</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
[81fd230]249 <varlistentry id="rtmon">
[bdea25ce]250 <term><command>rtmon</command></term>
[81fd230]251 <listitem>
[89ed081]252 <para>Route monitoring utility</para>
[81fd230]253 <indexterm zone="ch-system-iproute2 rtmon">
254 <primary sortas="b-rtmon">rtmon</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
[46a500e]259 <varlistentry id="rtpr">
[bdea25ce]260 <term><command>rtpr</command></term>
[46a500e]261 <listitem>
262 <para>Converts the output of <command>ip -o</command> back into a
[bdea25ce]263 readable form</para>
[46a500e]264 <indexterm zone="ch-system-iproute2 rtpr">
265 <primary sortas="b-rtpr">rtpr</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
[81fd230]270 <varlistentry id="rtstat">
[bdea25ce]271 <term><command>rtstat</command></term>
[81fd230]272 <listitem>
[89ed081]273 <para>Route status utility</para>
[81fd230]274 <indexterm zone="ch-system-iproute2 rtstat">
275 <primary sortas="b-rtstat">rtstat</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="ss">
[bdea25ce]281 <term><command>ss</command></term>
[81fd230]282 <listitem>
[bdea25ce]283 <para>Similar to the <command>netstat</command> command; shows active
284 connections</para>
[81fd230]285 <indexterm zone="ch-system-iproute2 ss">
286 <primary sortas="b-ss">ss</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="tc">
[bdea25ce]292 <term><command>tc</command></term>
[81fd230]293 <listitem>
[bdea25ce]294 <para>Traffic Controlling Executable; this is for Quality Of Service
295 (QOS) and Class Of Service (COS) implementations</para>
[81fd230]296
297 <para><command>tc qdisc</command> allows users to setup the queueing
[bdea25ce]298 discipline</para>
[81fd230]299
[bdea25ce]300 <para><command>tc class</command> allows users to setup classes based
301 on the queuing discipline scheduling</para>
[81fd230]302
303 <para><command>tc estimator</command> allows users to estimate the
[bdea25ce]304 network flow into a network</para>
[81fd230]305
306 <para><command>tc filter</command> allows users to setup the QOS/COS
[bdea25ce]307 packet filtering</para>
[81fd230]308
309 <para><command>tc policy</command> allows users to setup the QOS/COS
[bdea25ce]310 policies</para>
[81fd230]311 <indexterm zone="ch-system-iproute2 ss">
312 <primary sortas="b-tc">tc</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
[bdea25ce]316
[81fd230]317 </variablelist>
[bdea25ce]318
[a088964]319 </sect2>
[81fd230]320
[bdea25ce]321</sect1>
Note: See TracBrowser for help on using the repository browser.