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