[a088964] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[a088964] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-iproute2" role="wrap">
|
---|
[f0d59f2] | 7 | <title>IPRoute2-&iproute2-version;</title>
|
---|
[a088964] | 8 | <?dbhtml filename="iproute2.html"?>
|
---|
| 9 | <indexterm zone="ch-system-iproute2">
|
---|
[89ed081] | 10 | <primary sortas="a-IPRoute2">IPRoute2</primary>
|
---|
[a088964] | 11 | </indexterm>
|
---|
| 12 | <sect2 role="package">
|
---|
| 13 | <title/>
|
---|
[f0d59f2] | 14 | <para>The IPRoute2 package contains programs for basic and advanced
|
---|
[81fd230] | 15 | IPV4-based networking.
|
---|
| 16 | </para>
|
---|
[a088964] | 17 | <segmentedlist>
|
---|
| 18 | <segtitle>&buildtime;</segtitle>
|
---|
| 19 | <segtitle>&diskspace;</segtitle>
|
---|
| 20 | <seglistitem>
|
---|
| 21 | <seg>0.1 SBU</seg>
|
---|
[eb6d9eb] | 22 | <seg>4.3 MB</seg>
|
---|
[a088964] | 23 | </seglistitem>
|
---|
| 24 | </segmentedlist>
|
---|
[81fd230] | 25 | <segmentedlist>
|
---|
[45992ae] | 26 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 27 | <seglistitem>
|
---|
| 28 | <seg>GCC, Glibc, Make, Linux-Headers, and Sed</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a088964] | 31 | </sect2>
|
---|
| 32 | <sect2 role="installation">
|
---|
[f0d59f2] | 33 | <title>Installation of IPRoute2</title>
|
---|
[81fd230] | 34 | <para>The <command>arpd</command> binary included in this package is
|
---|
| 35 | dependent on Berkeley DB. Because <command>arpd</command> is not a very
|
---|
| 36 | common requirement on a base Linux system, remove the dependency on
|
---|
[345194c] | 37 | Berkeley DB by applying the <command>sed</command> command below. If
|
---|
[81fd230] | 38 | the <command>arpd</command> binary is needed, instructions for
|
---|
| 39 | compiling Berkeley DB can be found in the BLFS Book at <ulink
|
---|
[f91c2e4] | 40 | url="&blfs-root;view/svn/server/databases.html#db"/>.
|
---|
[81fd230] | 41 | </para>
|
---|
[a088964] | 42 |
|
---|
[401da4c] | 43 | <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
|
---|
[a088964] | 44 |
|
---|
[f0d59f2] | 45 | <para>Prepare IPRoute2 for compilation:</para>
|
---|
[3d2019b] | 46 | <screen><userinput>chmod u+x configure &&
|
---|
| 47 | ./configure</userinput></screen>
|
---|
[a088964] | 48 |
|
---|
| 49 | <para>Compile the package:</para>
|
---|
| 50 |
|
---|
[715f65f] | 51 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 52 |
|
---|
[81fd230] | 53 | <para>The meaning of the make option:</para>
|
---|
| 54 |
|
---|
| 55 | <variablelist>
|
---|
| 56 | <varlistentry>
|
---|
| 57 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
[fde4f7d] | 58 | <listitem><para>This ensures that the IPRoute2 binaries will install into
|
---|
| 59 | <filename class="directory">/sbin</filename>. This is the correct location
|
---|
| 60 | according to the FHS, because some of the IPRoute2 binaries are used by
|
---|
| 61 | the LFS-Bootscripts package.</para>
|
---|
[81fd230] | 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 | </variablelist>
|
---|
| 65 |
|
---|
[0be3d41] | 66 | <para>This package does not come with a test suite.</para>
|
---|
| 67 |
|
---|
[81fd230] | 68 | <para>Install the package:</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
|
---|
[a088964] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 id="contents-iproute2" role="content">
|
---|
[f0d59f2] | 74 | <title>Contents of IPRoute2</title>
|
---|
[81fd230] | 75 | <segmentedlist>
|
---|
| 76 | <segtitle>Installed programs</segtitle>
|
---|
| 77 | <seglistitem>
|
---|
[46a500e] | 78 | <seg>ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat, routef,
|
---|
| 79 | routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss, and tc.
|
---|
| 80 | </seg>
|
---|
[81fd230] | 81 | </seglistitem>
|
---|
| 82 | </segmentedlist>
|
---|
| 83 |
|
---|
| 84 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 85 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 86 | <?dbhtml list-presentation="table"?>
|
---|
[46a500e] | 87 | <varlistentry id="ctstat">
|
---|
| 88 | <term>
|
---|
| 89 | <command>ctstat</command>
|
---|
| 90 | </term>
|
---|
| 91 | <listitem>
|
---|
[89ed081] | 92 | <para>Connection status utility</para>
|
---|
[46a500e] | 93 | <indexterm zone="ch-system-iproute2 ctstat">
|
---|
[005dc3f] | 94 | <primary sortas="b-ctstat">ctstat</primary>
|
---|
[46a500e] | 95 | </indexterm>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | <varlistentry id="ifcfg">
|
---|
| 100 | <term>
|
---|
| 101 | <command>ifcfg</command>
|
---|
| 102 | </term>
|
---|
| 103 | <listitem>
|
---|
[89ed081] | 104 | <para>A shell script wrapper for the <command>ip</command> command</para>
|
---|
[46a500e] | 105 | <indexterm zone="ch-system-iproute2 ifcfg">
|
---|
| 106 | <primary sortas="b-ifcfg">ifcfg</primary>
|
---|
| 107 | </indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
[81fd230] | 110 |
|
---|
| 111 | <varlistentry id="ifstat">
|
---|
| 112 | <term>
|
---|
| 113 | <command>ifstat</command>
|
---|
| 114 | </term>
|
---|
| 115 | <listitem>
|
---|
[bc2136e] | 116 | <para>Shows the interface statistics, including the amount of transmitted
|
---|
[e5846ef] | 117 | and received packets by interface</para>
|
---|
[81fd230] | 118 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 119 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="ip">
|
---|
| 125 | <term>
|
---|
| 126 | <command>ip</command>
|
---|
| 127 | </term>
|
---|
| 128 | <listitem>
|
---|
| 129 |
|
---|
| 130 | <para>The main executable. It has several different functions:</para>
|
---|
| 131 |
|
---|
| 132 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
[89ed081] | 133 | allows users to look at the state of devices and to make changes
|
---|
[81fd230] | 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
[89ed081] | 137 | their properties, add new addresses, and delete old ones
|
---|
[81fd230] | 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para><command>ip neighbor</command> allows users to look at
|
---|
| 141 | neighbor bindings and their properties, add new
|
---|
[89ed081] | 142 | neighbor entries, and delete old ones
|
---|
[81fd230] | 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <para><command>ip rule</command> allows users to look at the routing
|
---|
[89ed081] | 146 | policies and change them
|
---|
[81fd230] | 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para><command>ip route</command> allows users to look at the routing
|
---|
[89ed081] | 150 | table and change routing table rules
|
---|
[81fd230] | 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
[89ed081] | 154 | tunnels and their properties, and change them
|
---|
[81fd230] | 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
[89ed081] | 158 | addresses and their properties, and change them
|
---|
[81fd230] | 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
[89ed081] | 162 | delete the multicast routing
|
---|
[81fd230] | 163 | </para>
|
---|
| 164 |
|
---|
| 165 | <para><command>ip monitor</command> allows users to
|
---|
[89ed081] | 166 | continously monitor the state of devices, addresses and routes
|
---|
[81fd230] | 167 | </para>
|
---|
| 168 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 169 | <primary sortas="b-ip">ip</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
[46a500e] | 174 | <varlistentry id="lnstat">
|
---|
| 175 | <term>
|
---|
| 176 | <command>lnstat</command>
|
---|
| 177 | </term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>Provides Linux network statistics. It is a generalized and more
|
---|
| 180 | feature-complete replacement for the old
|
---|
[89ed081] | 181 | <command>rtstat</command> program</para>
|
---|
[46a500e] | 182 | <indexterm zone="ch-system-iproute2 lnstat">
|
---|
[005dc3f] | 183 | <primary sortas="b-lnstat">lnstat</primary>
|
---|
[46a500e] | 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
[81fd230] | 188 | <varlistentry id="nstat">
|
---|
| 189 | <term>
|
---|
| 190 | <command>nstat</command>
|
---|
| 191 | </term>
|
---|
| 192 | <listitem>
|
---|
[89ed081] | 193 | <para>Shows network statistics</para>
|
---|
[81fd230] | 194 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 195 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="routef">
|
---|
| 201 | <term>
|
---|
| 202 | <command>routef</command>
|
---|
| 203 | </term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>A component of <command>ip route</command>. This is for flushing the routing
|
---|
[89ed081] | 206 | tables
|
---|
[81fd230] | 207 | </para>
|
---|
| 208 | <indexterm zone="ch-system-iproute2 routef">
|
---|
| 209 | <primary sortas="b-routef">routef</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="routel">
|
---|
| 215 | <term>
|
---|
| 216 | <command>routel</command>
|
---|
| 217 | </term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>A component of <command>ip route</command>. This is for listing the routing
|
---|
[89ed081] | 220 | tables
|
---|
[81fd230] | 221 | </para>
|
---|
| 222 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 223 | <primary sortas="b-routel">routel</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
[46a500e] | 228 | <varlistentry id="rtacct">
|
---|
| 229 | <term>
|
---|
| 230 | <command>rtacct</command>
|
---|
| 231 | </term>
|
---|
| 232 | <listitem>
|
---|
[89ed081] | 233 | <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
|
---|
[46a500e] | 234 | <indexterm zone="ch-system-iproute2 rtacct">
|
---|
| 235 | <primary sortas="b-rtacct">rtacct</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
[81fd230] | 240 | <varlistentry id="rtmon">
|
---|
| 241 | <term>
|
---|
| 242 | <command>rtmon</command>
|
---|
| 243 | </term>
|
---|
| 244 | <listitem>
|
---|
[89ed081] | 245 | <para>Route monitoring utility</para>
|
---|
[81fd230] | 246 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 247 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
| 251 |
|
---|
[46a500e] | 252 | <varlistentry id="rtpr">
|
---|
| 253 | <term>
|
---|
| 254 | <command>rtpr</command>
|
---|
| 255 | </term>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>Converts the output of <command>ip -o</command> back into a
|
---|
| 258 | readable form</para>
|
---|
| 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">
|
---|
| 266 | <term>
|
---|
| 267 | <command>rtstat</command>
|
---|
| 268 | </term>
|
---|
| 269 | <listitem>
|
---|
[89ed081] | 270 | <para>Route status utility</para>
|
---|
[81fd230] | 271 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 272 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
| 277 | <varlistentry id="ss">
|
---|
| 278 | <term>
|
---|
| 279 | <command>ss</command>
|
---|
| 280 | </term>
|
---|
| 281 | <listitem>
|
---|
[89ed081] | 282 | <para>Similar to the <command>netstat</command> command; shows active connections</para>
|
---|
[81fd230] | 283 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 284 | <primary sortas="b-ss">ss</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="tc">
|
---|
| 290 | <term>
|
---|
| 291 | <command>tc</command>
|
---|
| 292 | </term>
|
---|
| 293 | <listitem>
|
---|
| 294 | <para>Traffic Controlling Executable; this is for Quality Of
|
---|
| 295 | Service (QOS) and Class Of Service (COS)
|
---|
| 296 | implementations
|
---|
| 297 | </para>
|
---|
| 298 |
|
---|
| 299 | <para><command>tc qdisc</command> allows users to setup the queueing
|
---|
| 300 | discipline
|
---|
| 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <para><command>tc class</command> allows users to setup classes based on
|
---|
| 304 | the queuing discipline scheduling
|
---|
| 305 | </para>
|
---|
| 306 |
|
---|
| 307 | <para><command>tc estimator</command> allows users to estimate the
|
---|
| 308 | network flow into a network
|
---|
| 309 | </para>
|
---|
| 310 |
|
---|
| 311 | <para><command>tc filter</command> allows users to setup the QOS/COS
|
---|
| 312 | packet filtering
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
| 315 | <para><command>tc policy</command> allows users to setup the QOS/COS
|
---|
| 316 | policies
|
---|
| 317 | </para>
|
---|
| 318 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 319 | <primary sortas="b-tc">tc</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
| 323 | </variablelist>
|
---|
[a088964] | 324 | </sect2>
|
---|
| 325 | </sect1>
|
---|
[81fd230] | 326 |
|
---|