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">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-iproute2" role="wrap">
|
---|
9 | <?dbhtml filename="iproute2.html"?>
|
---|
10 |
|
---|
11 | <title>IPRoute2-&iproute2-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-iproute2">
|
---|
14 | <primary sortas="a-IPRoute2">IPRoute2</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The IPRoute2 package contains programs for basic and advanced
|
---|
21 | IPV4-based networking.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of IPRoute2</title>
|
---|
27 |
|
---|
28 | <para os="s1">By default, this package builds the <command>arpd</command>
|
---|
29 | program, which is dependent on Berkeley DB. Because <command>arpd</command>
|
---|
30 | is not a very common requirement on a base Linux system, remove the
|
---|
31 | dependency on Berkeley DB by using the commands
|
---|
32 | below. If the <command>arpd</command> binary is needed, instructions for
|
---|
33 | compiling Berkeley DB can be found in CBLFS at <ulink
|
---|
34 | url="&cblfs-root;index.php/Berkeley_DB"/>.</para>
|
---|
35 |
|
---|
36 | <screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
|
---|
37 | sed -i '/ARPD/d' Makefile
|
---|
38 | sed -i 's/arpd.8//' man/man8/Makefile</userinput></screen>
|
---|
39 |
|
---|
40 | <para os="f1">Remove unused libnl headers:</para>
|
---|
41 |
|
---|
42 | <screen os="f2"><userinput>sed -i '/netlink\//d' ip/ipl2tp.c</userinput></screen>
|
---|
43 |
|
---|
44 | <para os="a">Compile the package:</para>
|
---|
45 |
|
---|
46 | <screen os="b"><userinput>make DESTDIR= MANDIR=/usr/share/man</userinput></screen>
|
---|
47 |
|
---|
48 | <variablelist os="c">
|
---|
49 | <title>The meaning of the make option:</title>
|
---|
50 |
|
---|
51 | <varlistentry>
|
---|
52 | <term><parameter>DESTDIR=</parameter></term>
|
---|
53 | <listitem>
|
---|
54 | <para>This option overrides the default DESTDIR of /usr, so that
|
---|
55 | that the IPRoute2 binaries will be installed into
|
---|
56 | <filename class="directory">/sbin</filename>. This is the correct
|
---|
57 | location according to the FHS, because some of the IPRoute2 binaries
|
---|
58 | are used by the CLFS-Bootscripts package.</para>
|
---|
59 | </listitem>
|
---|
60 | </varlistentry>
|
---|
61 |
|
---|
62 | <para os="d">This package does not come with a test suite.</para>
|
---|
63 |
|
---|
64 | <para os="e">Install the package:</para>
|
---|
65 |
|
---|
66 | <screen os="f"><userinput>make DESTDIR= DOCDIR=/usr/share/doc/iproute2-&iproute2-version; \
|
---|
67 | MANDIR=/usr/share/man install</userinput></screen>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2 id="contents-iproute2" role="content">
|
---|
72 | <title>Contents of IPRoute2</title>
|
---|
73 |
|
---|
74 | <segmentedlist>
|
---|
75 | <segtitle>Installed programs</segtitle>
|
---|
76 | <segtitle>Installed directories</segtitle>
|
---|
77 |
|
---|
78 | <seglistitem>
|
---|
79 | <seg>bridge, ctstat (link to lnstat), genl, ifcfg, ifstat, ip, lnstat,
|
---|
80 | nstat, routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
---|
81 | and tc</seg>
|
---|
82 | <seg>/etc/iproute2, /usr/lib/tc,
|
---|
83 | /usr/share/doc/iproute2-&iproute2-version;</seg>
|
---|
84 | </seglistitem>
|
---|
85 | </segmentedlist>
|
---|
86 |
|
---|
87 | <variablelist>
|
---|
88 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
89 | <?dbfo list-presentation="list"?>
|
---|
90 | <?dbhtml list-presentation="table"?>
|
---|
91 |
|
---|
92 | <varlistentry id="bridge">
|
---|
93 | <term><command>bridge</command></term>
|
---|
94 | <listitem>
|
---|
95 | <para>Configures network bridges</para>
|
---|
96 | <indexterm zone="ch-system-iproute2 bridge">
|
---|
97 | <primary sortas="b-bridge">bridge</primary>
|
---|
98 | </indexterm>
|
---|
99 | </listitem>
|
---|
100 | </varlistentry>
|
---|
101 |
|
---|
102 | <varlistentry id="ctstat">
|
---|
103 | <term><command>ctstat</command></term>
|
---|
104 | <listitem>
|
---|
105 | <para>Connection status utility</para>
|
---|
106 | <indexterm zone="ch-system-iproute2 ctstat">
|
---|
107 | <primary sortas="b-ctstat">ctstat</primary>
|
---|
108 | </indexterm>
|
---|
109 | </listitem>
|
---|
110 | </varlistentry>
|
---|
111 |
|
---|
112 | <varlistentry id="genl">
|
---|
113 | <term><command>genl</command></term>
|
---|
114 | <listitem>
|
---|
115 | <para>Needs description</para>
|
---|
116 | <indexterm zone="ch-system-iproute2 genl">
|
---|
117 | <primary sortas="b-genl">genl</primary>
|
---|
118 | </indexterm>
|
---|
119 | </listitem>
|
---|
120 | </varlistentry>
|
---|
121 |
|
---|
122 | <varlistentry id="ifcfg">
|
---|
123 | <term><command>ifcfg</command></term>
|
---|
124 | <listitem>
|
---|
125 | <para>A shell script wrapper for the <command>ip</command>
|
---|
126 | command</para>
|
---|
127 | <indexterm zone="ch-system-iproute2 ifcfg">
|
---|
128 | <primary sortas="b-ifcfg">ifcfg</primary>
|
---|
129 | </indexterm>
|
---|
130 | </listitem>
|
---|
131 | </varlistentry>
|
---|
132 |
|
---|
133 | <varlistentry id="ifstat">
|
---|
134 | <term><command>ifstat</command></term>
|
---|
135 | <listitem>
|
---|
136 | <para>Shows the interface statistics, including the amount of
|
---|
137 | transmitted and received packets by interface</para>
|
---|
138 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
139 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
140 | </indexterm>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | <varlistentry id="ip">
|
---|
145 | <term><command>ip</command></term>
|
---|
146 | <listitem>
|
---|
147 | <para>The main executable. It has several different functions:</para>
|
---|
148 |
|
---|
149 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
150 | allows users to look at the state of devices and to make changes</para>
|
---|
151 |
|
---|
152 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
153 | their properties, add new addresses, and delete old ones</para>
|
---|
154 |
|
---|
155 | <para><command>ip neighbor</command> allows users to look at neighbor
|
---|
156 | bindings and their properties, add new neighbor entries, and delete
|
---|
157 | old ones</para>
|
---|
158 |
|
---|
159 | <para><command>ip rule</command> allows users to look at the routing
|
---|
160 | policies and change them</para>
|
---|
161 |
|
---|
162 | <para><command>ip route</command> allows users to look at the routing
|
---|
163 | table and change routing table rules</para>
|
---|
164 |
|
---|
165 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
166 | tunnels and their properties, and change them</para>
|
---|
167 |
|
---|
168 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
169 | addresses and their properties, and change them</para>
|
---|
170 |
|
---|
171 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
172 | delete the multicast routing</para>
|
---|
173 |
|
---|
174 | <para><command>ip monitor</command> allows users to continuously monitor
|
---|
175 | the state of devices, addresses and routes</para>
|
---|
176 | <indexterm zone="ch-system-iproute2 ip">
|
---|
177 | <primary sortas="b-ip">ip</primary>
|
---|
178 | </indexterm>
|
---|
179 | </listitem>
|
---|
180 | </varlistentry>
|
---|
181 |
|
---|
182 | <varlistentry id="lnstat">
|
---|
183 | <term><command>lnstat</command></term>
|
---|
184 | <listitem>
|
---|
185 | <para>Provides Linux network statistics. It is a generalized and more
|
---|
186 | feature-complete replacement for the old <command>rtstat</command>
|
---|
187 | program</para>
|
---|
188 | <indexterm zone="ch-system-iproute2 lnstat">
|
---|
189 | <primary sortas="b-lnstat">lnstat</primary>
|
---|
190 | </indexterm>
|
---|
191 | </listitem>
|
---|
192 | </varlistentry>
|
---|
193 |
|
---|
194 | <varlistentry id="nstat">
|
---|
195 | <term><command>nstat</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>Shows network statistics</para>
|
---|
198 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
199 | <primary sortas="b-nstat">nstat</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | <varlistentry id="routef">
|
---|
205 | <term><command>routef</command></term>
|
---|
206 | <listitem>
|
---|
207 | <para>A component of <command>ip route</command>. This is for flushing
|
---|
208 | the routing tables</para>
|
---|
209 | <indexterm zone="ch-system-iproute2 routef">
|
---|
210 | <primary sortas="b-routef">routef</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | <varlistentry id="routel">
|
---|
216 | <term><command>routel</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>A component of <command>ip route</command>. This is for listing
|
---|
219 | the routing tables</para>
|
---|
220 | <indexterm zone="ch-system-iproute2 routel">
|
---|
221 | <primary sortas="b-routel">routel</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="rtacct">
|
---|
227 | <term><command>rtacct</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>Displays the contents of
|
---|
230 | <filename>/proc/net/rt_acct</filename></para>
|
---|
231 | <indexterm zone="ch-system-iproute2 rtacct">
|
---|
232 | <primary sortas="b-rtacct">rtacct</primary>
|
---|
233 | </indexterm>
|
---|
234 | </listitem>
|
---|
235 | </varlistentry>
|
---|
236 |
|
---|
237 | <varlistentry id="rtmon">
|
---|
238 | <term><command>rtmon</command></term>
|
---|
239 | <listitem>
|
---|
240 | <para>Route monitoring utility</para>
|
---|
241 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
242 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
243 | </indexterm>
|
---|
244 | </listitem>
|
---|
245 | </varlistentry>
|
---|
246 |
|
---|
247 | <varlistentry id="rtpr">
|
---|
248 | <term><command>rtpr</command></term>
|
---|
249 | <listitem>
|
---|
250 | <para>Converts the output of <command>ip -o</command> back into a
|
---|
251 | readable form</para>
|
---|
252 | <indexterm zone="ch-system-iproute2 rtpr">
|
---|
253 | <primary sortas="b-rtpr">rtpr</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="rtstat">
|
---|
259 | <term><command>rtstat</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>Route status utility</para>
|
---|
262 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
263 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
264 | </indexterm>
|
---|
265 | </listitem>
|
---|
266 | </varlistentry>
|
---|
267 |
|
---|
268 | <varlistentry id="ss">
|
---|
269 | <term><command>ss</command></term>
|
---|
270 | <listitem>
|
---|
271 | <para>Similar to the <command>netstat</command> command; shows
|
---|
272 | active connections</para>
|
---|
273 | <indexterm zone="ch-system-iproute2 ss">
|
---|
274 | <primary sortas="b-ss">ss</primary>
|
---|
275 | </indexterm>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry id="tc">
|
---|
280 | <term><command>tc</command></term>
|
---|
281 | <listitem>
|
---|
282 | <para>Traffic Controlling Executable; this is for Quality Of Service
|
---|
283 | (QOS) and Class Of Service (COS) implementations</para>
|
---|
284 |
|
---|
285 | <para><command>tc qdisc</command> allows users to setup the queueing
|
---|
286 | discipline</para>
|
---|
287 |
|
---|
288 | <para><command>tc class</command> allows users to setup classes based on
|
---|
289 | the queuing discipline scheduling</para>
|
---|
290 |
|
---|
291 | <para><command>tc estimator</command> allows users to estimate the
|
---|
292 | network flow into a network</para>
|
---|
293 |
|
---|
294 | <para><command>tc filter</command> allows users to setup the QOS/COS
|
---|
295 | packet filtering</para>
|
---|
296 |
|
---|
297 | <para><command>tc policy</command> allows users to setup the QOS/COS
|
---|
298 | policies</para>
|
---|
299 | <indexterm zone="ch-system-iproute2 ss">
|
---|
300 | <primary sortas="b-tc">tc</primary>
|
---|
301 | </indexterm>
|
---|
302 | </listitem>
|
---|
303 | </varlistentry>
|
---|
304 |
|
---|
305 | </variablelist>
|
---|
306 |
|
---|
307 | </sect2>
|
---|
308 |
|
---|
309 | </sect1>
|
---|