[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">
|
---|
| 7 | <title>Iproute2-&iproute2-version;</title>
|
---|
[a088964] | 8 | <?dbhtml filename="iproute2.html"?>
|
---|
| 9 | <indexterm zone="ch-system-iproute2">
|
---|
[81fd230] | 10 | <primary sortas="a-iproute2">Iproute2</primary>
|
---|
[a088964] | 11 | </indexterm>
|
---|
| 12 | <sect2 role="package">
|
---|
| 13 | <title/>
|
---|
[81fd230] | 14 | <para>The Iproute2 package contains programs for basic and advanced
|
---|
| 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>
|
---|
| 22 | <seg>.6 MB</seg>
|
---|
| 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">
|
---|
[bce08ef] | 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
|
---|
| 37 | Berkeley DB by applying the patch using the command below. If
|
---|
| 38 | the <command>arpd</command> binary is needed, instructions for
|
---|
| 39 | compiling Berkeley DB can be found in the BLFS Book at <ulink
|
---|
| 40 | url="&blfs-root;view/svn/content/databases.html#db"/>.
|
---|
| 41 | </para>
|
---|
[a088964] | 42 |
|
---|
[1c77153] | 43 | <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-remove_db-1.patch</userinput></screen>
|
---|
[a088964] | 44 |
|
---|
[81fd230] | 45 | <para>The patch below fixes the issue with the newer versions of
|
---|
[41dc476] | 46 | Findutils whose <command>find</command> command will report an error
|
---|
[81fd230] | 47 | message when its options are not in the proper order.</para>
|
---|
[7111666] | 48 |
|
---|
[81fd230] | 49 | <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-find_update-1.patch</userinput></screen>
|
---|
[7111666] | 50 |
|
---|
[81fd230] | 51 |
|
---|
| 52 | <para>Prepare Iproute2 for compilation:</para>
|
---|
[3f0c882] | 53 | <screen><userinput>./configure </userinput></screen>
|
---|
[a088964] | 54 |
|
---|
| 55 | <para>Compile the package:</para>
|
---|
| 56 |
|
---|
[715f65f] | 57 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 58 |
|
---|
[81fd230] | 59 | <para>The meaning of the make option:</para>
|
---|
| 60 |
|
---|
| 61 | <variablelist>
|
---|
| 62 | <varlistentry>
|
---|
| 63 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
| 64 | <listitem><para>This makes sure that the Iproute2 binaries will install into
|
---|
| 65 | <filename class="directory">/sbin</filename>. This is the correct
|
---|
| 66 | location according to the FHS, because some of the Iproute2 binaries are used
|
---|
| 67 | in the bootscripts.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 | </variablelist>
|
---|
| 71 |
|
---|
| 72 | <para>Install the package:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
|
---|
[a088964] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 id="contents-iproute2" role="content">
|
---|
[81fd230] | 78 | <title>Contents of Iproute2</title>
|
---|
| 79 | <segmentedlist>
|
---|
| 80 | <segtitle>Installed programs</segtitle>
|
---|
| 81 | <seglistitem>
|
---|
| 82 | <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
|
---|
| 83 | </seglistitem>
|
---|
| 84 | </segmentedlist>
|
---|
| 85 |
|
---|
| 86 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 87 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 88 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 89 |
|
---|
| 90 | <varlistentry id="ifstat">
|
---|
| 91 | <term>
|
---|
| 92 | <command>ifstat</command>
|
---|
| 93 | </term>
|
---|
| 94 | <listitem>
|
---|
| 95 | <para>Shows the interfaces statistic, including the amount of transmitted
|
---|
| 96 | and received packages by interface.</para>
|
---|
| 97 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 98 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 99 | </indexterm>
|
---|
| 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="ip">
|
---|
| 104 | <term>
|
---|
| 105 | <command>ip</command>
|
---|
| 106 | </term>
|
---|
| 107 | <listitem>
|
---|
| 108 |
|
---|
| 109 | <para>The main executable. It has several different functions:</para>
|
---|
| 110 |
|
---|
| 111 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
| 112 | allows users to look at the state of devices and to make changes.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
| 116 | their properties, add new addresses, and delete old ones.
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <para><command>ip neighbor</command> allows users to look at
|
---|
| 120 | neighbor bindings and their properties, add new
|
---|
| 121 | neighbor entries, and delete old ones.
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <para><command>ip rule</command> allows users to look at the routing
|
---|
| 125 | policies and change them.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <para><command>ip route</command> allows users to look at the routing
|
---|
| 129 | table and change routing table rules.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
| 133 | tunnels and their properties, and change them.
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
| 137 | addresses and their properties, and change them.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
| 141 | delete the multicast routing.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para><command>ip monitor</command> allows users to
|
---|
| 145 | continously monitor the state of devices, addresses and routes.
|
---|
| 146 | </para>
|
---|
| 147 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 148 | <primary sortas="b-ip">ip</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="nstat">
|
---|
| 154 | <term>
|
---|
| 155 | <command>nstat</command>
|
---|
| 156 | </term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Shows network statistics.</para>
|
---|
| 159 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 160 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="routef">
|
---|
| 166 | <term>
|
---|
| 167 | <command>routef</command>
|
---|
| 168 | </term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>A component of <command>ip route</command>. This is for flushing the routing
|
---|
| 171 | tables.
|
---|
| 172 | </para>
|
---|
| 173 | <indexterm zone="ch-system-iproute2 routef">
|
---|
| 174 | <primary sortas="b-routef">routef</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="routel">
|
---|
| 180 | <term>
|
---|
| 181 | <command>routel</command>
|
---|
| 182 | </term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>A component of <command>ip route</command>. This is for listing the routing
|
---|
| 185 | tables.
|
---|
| 186 | </para>
|
---|
| 187 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 188 | <primary sortas="b-routel">routel</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="rtmon">
|
---|
| 194 | <term>
|
---|
| 195 | <command>rtmon</command>
|
---|
| 196 | </term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>Route monitoring utility.</para>
|
---|
| 199 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 200 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="rtstat">
|
---|
| 206 | <term>
|
---|
| 207 | <command>rtstat</command>
|
---|
| 208 | </term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>Route status utility</para>
|
---|
| 211 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 212 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="ss">
|
---|
| 218 | <term>
|
---|
| 219 | <command>ss</command>
|
---|
| 220 | </term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>Similar to the <command>netstat</command> command; shows active connections</para>
|
---|
| 223 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 224 | <primary sortas="b-ss">ss</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
| 229 | <varlistentry id="tc">
|
---|
| 230 | <term>
|
---|
| 231 | <command>tc</command>
|
---|
| 232 | </term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>Traffic Controlling Executable; this is for Quality Of
|
---|
| 235 | Service (QOS) and Class Of Service (COS)
|
---|
| 236 | implementations
|
---|
| 237 | </para>
|
---|
| 238 |
|
---|
| 239 | <para><command>tc qdisc</command> allows users to setup the queueing
|
---|
| 240 | discipline
|
---|
| 241 | </para>
|
---|
| 242 |
|
---|
| 243 | <para><command>tc class</command> allows users to setup classes based on
|
---|
| 244 | the queuing discipline scheduling
|
---|
| 245 | </para>
|
---|
| 246 |
|
---|
| 247 | <para><command>tc estimator</command> allows users to estimate the
|
---|
| 248 | network flow into a network
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
| 251 | <para><command>tc filter</command> allows users to setup the QOS/COS
|
---|
| 252 | packet filtering
|
---|
| 253 | </para>
|
---|
| 254 |
|
---|
| 255 | <para><command>tc policy</command> allows users to setup the QOS/COS
|
---|
| 256 | policies
|
---|
| 257 | </para>
|
---|
| 258 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 259 | <primary sortas="b-tc">tc</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 | </variablelist>
|
---|
[a088964] | 264 | </sect2>
|
---|
| 265 | </sect1>
|
---|
[81fd230] | 266 |
|
---|