[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>
|
---|
[3271442] | 28 | <seg>Berkeley DB, GCC, Glibc, Make, and Linux-Headers</seg>
|
---|
[81fd230] | 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a088964] | 31 | </sect2>
|
---|
| 32 | <sect2 role="installation">
|
---|
[f0d59f2] | 33 | <title>Installation of IPRoute2</title>
|
---|
[a088964] | 34 |
|
---|
[f0d59f2] | 35 | <para>Prepare IPRoute2 for compilation:</para>
|
---|
[3d2019b] | 36 | <screen><userinput>chmod u+x configure &&
|
---|
| 37 | ./configure</userinput></screen>
|
---|
[a088964] | 38 |
|
---|
| 39 | <para>Compile the package:</para>
|
---|
| 40 |
|
---|
[715f65f] | 41 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 42 |
|
---|
[81fd230] | 43 | <para>The meaning of the make option:</para>
|
---|
| 44 |
|
---|
| 45 | <variablelist>
|
---|
| 46 | <varlistentry>
|
---|
| 47 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
[fde4f7d] | 48 | <listitem><para>This ensures that the IPRoute2 binaries will install into
|
---|
| 49 | <filename class="directory">/sbin</filename>. This is the correct location
|
---|
| 50 | according to the FHS, because some of the IPRoute2 binaries are used by
|
---|
| 51 | the LFS-Bootscripts package.</para>
|
---|
[81fd230] | 52 | </listitem>
|
---|
| 53 | </varlistentry>
|
---|
| 54 | </variablelist>
|
---|
| 55 |
|
---|
[6856842] | 56 | <para>This package does not come with a test suite.</para>
|
---|
| 57 |
|
---|
[81fd230] | 58 | <para>Install the package:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
|
---|
[46a2e9c] | 61 |
|
---|
[3271442] | 62 | <para>The <command>arpd</command> binary links against the Berkeley DB libraries
|
---|
[46a2e9c] | 63 | that reside in <filename class="directory">/usr</filename> and
|
---|
| 64 | uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
|
---|
| 65 | according to the FHS, it must be
|
---|
| 66 | in <filename class="directory">/usr/sbin</filename>. Move it there:
|
---|
| 67 | </para>
|
---|
| 68 |
|
---|
| 69 | <screen><userinput>mv -v /sbin/arpd /usr/sbin</userinput></screen>
|
---|
| 70 |
|
---|
[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>
|
---|
[46a2e9c] | 78 | <seg>arpd, ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
|
---|
| 79 | routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
---|
| 80 | and tc.
|
---|
[46a500e] | 81 | </seg>
|
---|
[81fd230] | 82 | </seglistitem>
|
---|
| 83 | </segmentedlist>
|
---|
| 84 |
|
---|
| 85 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 86 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 87 | <?dbhtml list-presentation="table"?>
|
---|
[46a2e9c] | 88 | <varlistentry id="arpd">
|
---|
| 89 | <term>
|
---|
| 90 | <command>arpd</command>
|
---|
| 91 | </term>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>Userspace ARP daemon, useful in really large networks, where
|
---|
| 94 | the kernelspace ARP implementation is insufficient, or
|
---|
| 95 | when setting up a honeypot</para>
|
---|
| 96 | <indexterm zone="ch-system-iproute2 arpd">
|
---|
| 97 | <primary sortas="b-arpd">arpd</primary>
|
---|
| 98 | </indexterm>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
| 101 |
|
---|
[46a500e] | 102 | <varlistentry id="ctstat">
|
---|
| 103 | <term>
|
---|
| 104 | <command>ctstat</command>
|
---|
| 105 | </term>
|
---|
| 106 | <listitem>
|
---|
[89ed081] | 107 | <para>Connection status utility</para>
|
---|
[46a500e] | 108 | <indexterm zone="ch-system-iproute2 ctstat">
|
---|
[005dc3f] | 109 | <primary sortas="b-ctstat">ctstat</primary>
|
---|
[46a500e] | 110 | </indexterm>
|
---|
| 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="ifcfg">
|
---|
| 115 | <term>
|
---|
| 116 | <command>ifcfg</command>
|
---|
| 117 | </term>
|
---|
| 118 | <listitem>
|
---|
[89ed081] | 119 | <para>A shell script wrapper for the <command>ip</command> command</para>
|
---|
[46a500e] | 120 | <indexterm zone="ch-system-iproute2 ifcfg">
|
---|
| 121 | <primary sortas="b-ifcfg">ifcfg</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
[81fd230] | 125 |
|
---|
| 126 | <varlistentry id="ifstat">
|
---|
| 127 | <term>
|
---|
| 128 | <command>ifstat</command>
|
---|
| 129 | </term>
|
---|
| 130 | <listitem>
|
---|
[bc2136e] | 131 | <para>Shows the interface statistics, including the amount of transmitted
|
---|
[e5846ef] | 132 | and received packets by interface</para>
|
---|
[81fd230] | 133 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 134 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 135 | </indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="ip">
|
---|
| 140 | <term>
|
---|
| 141 | <command>ip</command>
|
---|
| 142 | </term>
|
---|
| 143 | <listitem>
|
---|
| 144 |
|
---|
| 145 | <para>The main executable. It has several different functions:</para>
|
---|
| 146 |
|
---|
| 147 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
[89ed081] | 148 | allows users to look at the state of devices and to make changes
|
---|
[81fd230] | 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
[89ed081] | 152 | their properties, add new addresses, and delete old ones
|
---|
[81fd230] | 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <para><command>ip neighbor</command> allows users to look at
|
---|
| 156 | neighbor bindings and their properties, add new
|
---|
[89ed081] | 157 | neighbor entries, and delete old ones
|
---|
[81fd230] | 158 | </para>
|
---|
| 159 |
|
---|
| 160 | <para><command>ip rule</command> allows users to look at the routing
|
---|
[89ed081] | 161 | policies and change them
|
---|
[81fd230] | 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <para><command>ip route</command> allows users to look at the routing
|
---|
[89ed081] | 165 | table and change routing table rules
|
---|
[81fd230] | 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
[89ed081] | 169 | tunnels and their properties, and change them
|
---|
[81fd230] | 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
[89ed081] | 173 | addresses and their properties, and change them
|
---|
[81fd230] | 174 | </para>
|
---|
| 175 |
|
---|
| 176 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
[89ed081] | 177 | delete the multicast routing
|
---|
[81fd230] | 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <para><command>ip monitor</command> allows users to
|
---|
[89ed081] | 181 | continously monitor the state of devices, addresses and routes
|
---|
[81fd230] | 182 | </para>
|
---|
| 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">
|
---|
| 190 | <term>
|
---|
| 191 | <command>lnstat</command>
|
---|
| 192 | </term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>Provides Linux network statistics. It is a generalized and more
|
---|
| 195 | feature-complete replacement for the old
|
---|
[89ed081] | 196 | <command>rtstat</command> program</para>
|
---|
[46a500e] | 197 | <indexterm zone="ch-system-iproute2 lnstat">
|
---|
[005dc3f] | 198 | <primary sortas="b-lnstat">lnstat</primary>
|
---|
[46a500e] | 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
[81fd230] | 203 | <varlistentry id="nstat">
|
---|
| 204 | <term>
|
---|
| 205 | <command>nstat</command>
|
---|
| 206 | </term>
|
---|
| 207 | <listitem>
|
---|
[89ed081] | 208 | <para>Shows network statistics</para>
|
---|
[81fd230] | 209 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 210 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="routef">
|
---|
| 216 | <term>
|
---|
| 217 | <command>routef</command>
|
---|
| 218 | </term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>A component of <command>ip route</command>. This is for flushing the routing
|
---|
[89ed081] | 221 | tables
|
---|
[81fd230] | 222 | </para>
|
---|
| 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">
|
---|
| 230 | <term>
|
---|
| 231 | <command>routel</command>
|
---|
| 232 | </term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>A component of <command>ip route</command>. This is for listing the routing
|
---|
[89ed081] | 235 | tables
|
---|
[81fd230] | 236 | </para>
|
---|
| 237 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 238 | <primary sortas="b-routel">routel</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
[46a500e] | 243 | <varlistentry id="rtacct">
|
---|
| 244 | <term>
|
---|
| 245 | <command>rtacct</command>
|
---|
| 246 | </term>
|
---|
| 247 | <listitem>
|
---|
[89ed081] | 248 | <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
|
---|
[46a500e] | 249 | <indexterm zone="ch-system-iproute2 rtacct">
|
---|
| 250 | <primary sortas="b-rtacct">rtacct</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
[81fd230] | 255 | <varlistentry id="rtmon">
|
---|
| 256 | <term>
|
---|
| 257 | <command>rtmon</command>
|
---|
| 258 | </term>
|
---|
| 259 | <listitem>
|
---|
[89ed081] | 260 | <para>Route monitoring utility</para>
|
---|
[81fd230] | 261 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 262 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[46a500e] | 267 | <varlistentry id="rtpr">
|
---|
| 268 | <term>
|
---|
| 269 | <command>rtpr</command>
|
---|
| 270 | </term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>Converts the output of <command>ip -o</command> back into a
|
---|
| 273 | readable form</para>
|
---|
| 274 | <indexterm zone="ch-system-iproute2 rtpr">
|
---|
| 275 | <primary sortas="b-rtpr">rtpr</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
[81fd230] | 280 | <varlistentry id="rtstat">
|
---|
| 281 | <term>
|
---|
| 282 | <command>rtstat</command>
|
---|
| 283 | </term>
|
---|
| 284 | <listitem>
|
---|
[89ed081] | 285 | <para>Route status utility</para>
|
---|
[81fd230] | 286 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 287 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
| 292 | <varlistentry id="ss">
|
---|
| 293 | <term>
|
---|
| 294 | <command>ss</command>
|
---|
| 295 | </term>
|
---|
| 296 | <listitem>
|
---|
[89ed081] | 297 | <para>Similar to the <command>netstat</command> command; shows active connections</para>
|
---|
[81fd230] | 298 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 299 | <primary sortas="b-ss">ss</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="tc">
|
---|
| 305 | <term>
|
---|
| 306 | <command>tc</command>
|
---|
| 307 | </term>
|
---|
| 308 | <listitem>
|
---|
| 309 | <para>Traffic Controlling Executable; this is for Quality Of
|
---|
[46a2e9c] | 310 | Service (QOS) and Class Of Service (COS)
|
---|
[81fd230] | 311 | implementations
|
---|
| 312 | </para>
|
---|
| 313 |
|
---|
| 314 | <para><command>tc qdisc</command> allows users to setup the queueing
|
---|
| 315 | discipline
|
---|
| 316 | </para>
|
---|
| 317 |
|
---|
| 318 | <para><command>tc class</command> allows users to setup classes based on
|
---|
| 319 | the queuing discipline scheduling
|
---|
| 320 | </para>
|
---|
| 321 |
|
---|
| 322 | <para><command>tc estimator</command> allows users to estimate the
|
---|
| 323 | network flow into a network
|
---|
| 324 | </para>
|
---|
| 325 |
|
---|
| 326 | <para><command>tc filter</command> allows users to setup the QOS/COS
|
---|
| 327 | packet filtering
|
---|
| 328 | </para>
|
---|
| 329 |
|
---|
| 330 | <para><command>tc policy</command> allows users to setup the QOS/COS
|
---|
| 331 | policies
|
---|
| 332 | </para>
|
---|
| 333 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 334 | <primary sortas="b-tc">tc</primary>
|
---|
| 335 | </indexterm>
|
---|
| 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
| 338 | </variablelist>
|
---|
[a088964] | 339 | </sect2>
|
---|
| 340 | </sect1>
|
---|
[81fd230] | 341 |
|
---|