1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-iproute2" role="wrap">
|
---|
9 | <?dbhtml filename="iproute2.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>iproute2</productname>
|
---|
13 | <productnumber>&iproute2-version;</productnumber>
|
---|
14 | <address>&iproute2-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>IPRoute2-&iproute2-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-iproute2">
|
---|
20 | <primary sortas="a-IPRoute2">IPRoute2</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
|
---|
27 | networking.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&iproute2-fin-sbu;</seg>
|
---|
35 | <seg>&iproute2-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of IPRoute2</title>
|
---|
43 |
|
---|
44 | <para>The <command>arpd</command> program included in this package will not
|
---|
45 | be built since it depends on Berkeley DB, which is not installed in
|
---|
46 | LFS. However, a directory and a man page for <command>arpd</command> will still
|
---|
47 | be installed. Prevent this by running the commands shown below.
|
---|
48 | </para>
|
---|
49 |
|
---|
50 | <screen><userinput remap="pre">sed -i /ARPD/d Makefile
|
---|
51 | rm -fv man/man8/arpd.8</userinput></screen>
|
---|
52 |
|
---|
53 | <!-- fixed upstream for 5.16.0
|
---|
54 | <para>It is also necessary to disable building two modules that
|
---|
55 | require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
|
---|
56 |
|
---|
57 | <screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>
|
---|
58 | -->
|
---|
59 | <para>Compile the package:</para>
|
---|
60 |
|
---|
61 | <screen><userinput remap="make">make NETNS_RUN_DIR=/run/netns</userinput></screen>
|
---|
62 |
|
---|
63 | <para>This package does not have a working test suite.</para>
|
---|
64 | <!-- currently not useful, no tests actually run
|
---|
65 | <para>This package comes with a test suite, but due to assumptions it makes,
|
---|
66 | it is not possible to reliably run these tests from within the chroot
|
---|
67 | environment. If you wish to run these tests after booting into your new LFS
|
---|
68 | system, ensure you enable <filename>/proc/config.gz</filename> support
|
---|
69 | in your kernel ("General setup" -> "Enable access to
|
---|
70 | .config through /proc/config.gz" [CONFIG_IKCONFIG_PROC]), then run
|
---|
71 | 'make alltests' from the <filename class="directory">testsuite/</filename>
|
---|
72 | subdirectory.</para>-->
|
---|
73 |
|
---|
74 | <para>Install the package:</para>
|
---|
75 |
|
---|
76 | <screen><userinput remap="install">make SBINDIR=/usr/sbin install</userinput></screen>
|
---|
77 |
|
---|
78 | <para>If desired, install the documentation:</para>
|
---|
79 |
|
---|
80 | <screen><userinput remap="install">mkdir -pv /usr/share/doc/iproute2-&iproute2-version;
|
---|
81 | cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;</userinput></screen>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 id="contents-iproute2" role="content">
|
---|
86 | <title>Contents of IPRoute2</title>
|
---|
87 |
|
---|
88 | <segmentedlist>
|
---|
89 | <segtitle>Installed programs</segtitle>
|
---|
90 | <segtitle>Installed directories</segtitle>
|
---|
91 |
|
---|
92 | <seglistitem>
|
---|
93 | <seg>bridge, ctstat (link to lnstat), genl, ifstat, ip, lnstat,
|
---|
94 | nstat, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
---|
95 | and tc</seg>
|
---|
96 | <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;
|
---|
97 | </seg>
|
---|
98 | </seglistitem>
|
---|
99 | </segmentedlist>
|
---|
100 |
|
---|
101 | <variablelist>
|
---|
102 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
103 | <?dbfo list-presentation="list"?>
|
---|
104 | <?dbhtml list-presentation="table"?>
|
---|
105 |
|
---|
106 | <varlistentry id="bridge">
|
---|
107 | <term><command>bridge</command></term>
|
---|
108 | <listitem>
|
---|
109 | <para>Configures network bridges</para>
|
---|
110 | <indexterm zone="ch-system-iproute2 bridge">
|
---|
111 | <primary sortas="b-bridge">bridge</primary>
|
---|
112 | </indexterm>
|
---|
113 | </listitem>
|
---|
114 | </varlistentry>
|
---|
115 |
|
---|
116 | <varlistentry id="ctstat">
|
---|
117 | <term><command>ctstat</command></term>
|
---|
118 | <listitem>
|
---|
119 | <para>Connection status utility</para>
|
---|
120 | <indexterm zone="ch-system-iproute2 ctstat">
|
---|
121 | <primary sortas="b-ctstat">ctstat</primary>
|
---|
122 | </indexterm>
|
---|
123 | </listitem>
|
---|
124 | </varlistentry>
|
---|
125 |
|
---|
126 | <varlistentry id="genl">
|
---|
127 | <term><command>genl</command></term>
|
---|
128 | <listitem>
|
---|
129 | <para>Generic netlink utility front end</para>
|
---|
130 | <indexterm zone="ch-system-iproute2 genl">
|
---|
131 | <primary sortas="b-genl">genl</primary>
|
---|
132 | </indexterm>
|
---|
133 | </listitem>
|
---|
134 | </varlistentry>
|
---|
135 |
|
---|
136 | <varlistentry id="ifstat">
|
---|
137 | <term><command>ifstat</command></term>
|
---|
138 | <listitem>
|
---|
139 | <para>Shows interface statistics, including the number of
|
---|
140 | packets transmitted and received, by interface</para>
|
---|
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">
|
---|
148 | <term><command>ip</command></term>
|
---|
149 | <listitem>
|
---|
150 | <para>The main executable. It has several different functions, including these:</para>
|
---|
151 |
|
---|
152 | <para><command>ip link <replaceable><device></replaceable></command>
|
---|
153 | allows users to look at the state of devices and to make changes</para>
|
---|
154 |
|
---|
155 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
156 | their properties, add new addresses, and delete old ones</para>
|
---|
157 |
|
---|
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>
|
---|
161 |
|
---|
162 | <para><command>ip rule</command> allows users to look at the routing
|
---|
163 | policies and change them</para>
|
---|
164 |
|
---|
165 | <para><command>ip route</command> allows users to look at the routing
|
---|
166 | table and change routing table rules</para>
|
---|
167 |
|
---|
168 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
169 | tunnels and their properties, and change them</para>
|
---|
170 |
|
---|
171 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
172 | addresses and their properties, and change them</para>
|
---|
173 |
|
---|
174 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
175 | delete the multicast routing</para>
|
---|
176 |
|
---|
177 | <para><command>ip monitor</command> allows users to continuously monitor
|
---|
178 | the state of devices, addresses and routes</para>
|
---|
179 | <indexterm zone="ch-system-iproute2 ip">
|
---|
180 | <primary sortas="b-ip">ip</primary>
|
---|
181 | </indexterm>
|
---|
182 | </listitem>
|
---|
183 | </varlistentry>
|
---|
184 |
|
---|
185 | <varlistentry id="lnstat">
|
---|
186 | <term><command>lnstat</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para>Provides Linux network statistics; it is a generalized and more
|
---|
189 | feature-complete replacement for the old <command>rtstat</command>
|
---|
190 | program</para>
|
---|
191 | <indexterm zone="ch-system-iproute2 lnstat">
|
---|
192 | <primary sortas="b-lnstat">lnstat</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | <varlistentry id="nstat">
|
---|
198 | <term><command>nstat</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>Displays network statistics</para>
|
---|
201 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
202 | <primary sortas="b-nstat">nstat</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="routel">
|
---|
208 | <term><command>routel</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>A component of <command>ip route</command>, for listing
|
---|
211 | the routing tables</para>
|
---|
212 | <indexterm zone="ch-system-iproute2 routel">
|
---|
213 | <primary sortas="b-routel">routel</primary>
|
---|
214 | </indexterm>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 |
|
---|
218 | <varlistentry id="rtacct">
|
---|
219 | <term><command>rtacct</command></term>
|
---|
220 | <listitem>
|
---|
221 | <para>Displays the contents of
|
---|
222 | <filename>/proc/net/rt_acct</filename></para>
|
---|
223 | <indexterm zone="ch-system-iproute2 rtacct">
|
---|
224 | <primary sortas="b-rtacct">rtacct</primary>
|
---|
225 | </indexterm>
|
---|
226 | </listitem>
|
---|
227 | </varlistentry>
|
---|
228 |
|
---|
229 | <varlistentry id="rtmon">
|
---|
230 | <term><command>rtmon</command></term>
|
---|
231 | <listitem>
|
---|
232 | <para>Route monitoring utility</para>
|
---|
233 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
234 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="rtpr">
|
---|
240 | <term><command>rtpr</command></term>
|
---|
241 | <listitem>
|
---|
242 | <para>Converts the output of <command>ip -o</command> into a
|
---|
243 | readable form</para>
|
---|
244 | <indexterm zone="ch-system-iproute2 rtpr">
|
---|
245 | <primary sortas="b-rtpr">rtpr</primary>
|
---|
246 | </indexterm>
|
---|
247 | </listitem>
|
---|
248 | </varlistentry>
|
---|
249 |
|
---|
250 | <varlistentry id="rtstat">
|
---|
251 | <term><command>rtstat</command></term>
|
---|
252 | <listitem>
|
---|
253 | <para>Route status utility</para>
|
---|
254 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
255 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
256 | </indexterm>
|
---|
257 | </listitem>
|
---|
258 | </varlistentry>
|
---|
259 |
|
---|
260 | <varlistentry id="ss">
|
---|
261 | <term><command>ss</command></term>
|
---|
262 | <listitem>
|
---|
263 | <para>Similar to the <command>netstat</command> command; shows active
|
---|
264 | connections</para>
|
---|
265 | <indexterm zone="ch-system-iproute2 ss">
|
---|
266 | <primary sortas="b-ss">ss</primary>
|
---|
267 | </indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | <varlistentry id="tc">
|
---|
272 | <term><command>tc</command></term>
|
---|
273 | <listitem>
|
---|
274 | <para>Traffic control for Quality of Service
|
---|
275 | (QoS) and Class of Service (CoS) implementations</para>
|
---|
276 |
|
---|
277 | <para><command>tc qdisc</command> allows users to set up the queueing
|
---|
278 | discipline</para>
|
---|
279 |
|
---|
280 | <para><command>tc class</command> allows users to set up classes based
|
---|
281 | on the queuing discipline scheduling</para>
|
---|
282 |
|
---|
283 | <para><command>tc filter</command> allows users to set up the QoS/CoS
|
---|
284 | packet filtering</para>
|
---|
285 |
|
---|
286 | <para><command>tc monitor</command> can be used to view changes
|
---|
287 | made to Traffic Control in the kernel.</para>
|
---|
288 |
|
---|
289 | <indexterm zone="ch-system-iproute2 ss">
|
---|
290 | <primary sortas="b-tc">tc</primary>
|
---|
291 | </indexterm>
|
---|
292 | </listitem>
|
---|
293 | </varlistentry>
|
---|
294 |
|
---|
295 | </variablelist>
|
---|
296 |
|
---|
297 | </sect2>
|
---|
298 |
|
---|
299 | </sect1>
|
---|