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