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