[6aaa1b0] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[752f4e5] | 6 | <sect1 id="ch-system-iproute2" role="wrap">
|
---|
[6aaa1b0] | 7 | <title>Iproute2-&iproute2-version;</title>
|
---|
| 8 | <?dbhtml filename="iproute2.html"?>
|
---|
| 9 | <indexterm zone="ch-system-iproute2">
|
---|
[76c5c80] | 10 | <primary sortas="a-iproute2">Iproute2</primary>
|
---|
[6aaa1b0] | 11 | </indexterm>
|
---|
| 12 | <sect2 role="package">
|
---|
| 13 | <title/>
|
---|
[76c5c80] | 14 | <para>The Iproute2 package contains programs for basic and advanced
|
---|
[84988c0] | 15 | IPV4-based networking.
|
---|
| 16 | </para>
|
---|
[6aaa1b0] | 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>
|
---|
| 25 | <segmentedlist>
|
---|
[69993f4] | 26 | <segtitle>Iproute2 installation depends on</segtitle>
|
---|
[6aaa1b0] | 27 | <seglistitem>
|
---|
[69993f4] | 28 | <seg>GCC, Glibc, Make, Linux-Headers, and Sed</seg>
|
---|
[6aaa1b0] | 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 | </sect2>
|
---|
| 32 | <sect2 role="installation">
|
---|
[69993f4] | 33 | <title>Installation of Iproute2</title>
|
---|
[84988c0] | 34 | <para>The <command>arpd</command> binary included in this package is
|
---|
[69993f4] | 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
|
---|
[76c5c80] | 39 | compiling Berkeley DB can be found in the BLFS Book at <ulink
|
---|
[3f6be93] | 40 | url="&blfs-root;view/svn/content/databases.html#db"/>.
|
---|
[6aaa1b0] | 41 | </para>
|
---|
| 42 |
|
---|
[97c1b52b] | 43 | <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-remove_db-1.patch</userinput></screen>
|
---|
[6aaa1b0] | 44 |
|
---|
[76c5c80] | 45 | <para>Prepare Iproute2 for compilation:</para>
|
---|
[ef13657] | 46 | <screen><userinput>./configure </userinput></screen>
|
---|
[6aaa1b0] | 47 |
|
---|
| 48 | <para>Compile the package:</para>
|
---|
| 49 |
|
---|
[fff7530] | 50 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 51 |
|
---|
[ef13657] | 52 | <para>The meaning of the make option:</para>
|
---|
| 53 |
|
---|
[fff7530] | 54 | <variablelist>
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
[76c5c80] | 57 | <listitem><para>This makes sure that the Iproute2 binaries will install into
|
---|
[fff7530] | 58 | <filename class="directory">/sbin</filename>. This is the correct
|
---|
[76c5c80] | 59 | location according to the FHS, because some of the Iproute2 binaries are used
|
---|
[69993f4] | 60 | in the bootscripts.</para>
|
---|
[fff7530] | 61 | </listitem>
|
---|
| 62 | </varlistentry>
|
---|
| 63 | </variablelist>
|
---|
[6aaa1b0] | 64 |
|
---|
[ef13657] | 65 | <para>Install the package:</para>
|
---|
[6aaa1b0] | 66 |
|
---|
[fff7530] | 67 | <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
|
---|
[0e9a9e2] | 68 | <beginpage/>
|
---|
[6aaa1b0] | 69 | </sect2>
|
---|
| 70 |
|
---|
[287a4e78] | 71 | <sect2 id="contents-iproute2" role="content">
|
---|
[69993f4] | 72 | <title>Contents of Iproute2</title>
|
---|
[6aaa1b0] | 73 | <segmentedlist>
|
---|
| 74 | <segtitle>Installed programs</segtitle>
|
---|
| 75 | <seglistitem>
|
---|
| 76 | <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
|
---|
| 77 | </seglistitem>
|
---|
| 78 | </segmentedlist>
|
---|
| 79 |
|
---|
[2256873] | 80 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 81 | <?dbfo list-presentation="list"?>
|
---|
[6aaa1b0] | 82 |
|
---|
| 83 | <varlistentry id="ifstat">
|
---|
| 84 | <term>
|
---|
| 85 | <command>ifstat</command>
|
---|
| 86 | </term>
|
---|
| 87 | <listitem>
|
---|
[2256873] | 88 | <para>Shows the interfaces statistic, including the amount of transmitted
|
---|
[3ed279f] | 89 | and received packages by interface.</para>
|
---|
[6aaa1b0] | 90 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 91 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="ip">
|
---|
| 97 | <term>
|
---|
| 98 | <command>ip</command>
|
---|
| 99 | </term>
|
---|
| 100 | <listitem>
|
---|
| 101 |
|
---|
[69993f4] | 102 | <para>The main executable. It has several different functions:</para>
|
---|
[6aaa1b0] | 103 |
|
---|
| 104 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
[69993f4] | 105 | allows users to look at the state of devices and to make changes.
|
---|
[6aaa1b0] | 106 | </para>
|
---|
| 107 |
|
---|
[69993f4] | 108 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
| 109 | their properties, add new addresses, and delete old ones.
|
---|
[6aaa1b0] | 110 | </para>
|
---|
| 111 |
|
---|
[69993f4] | 112 | <para><command>ip neighbor</command> allows users to look at
|
---|
| 113 | neighbor bindings and their properties, add new
|
---|
| 114 | neighbor entries, and delete old ones.
|
---|
[6aaa1b0] | 115 | </para>
|
---|
| 116 |
|
---|
[69993f4] | 117 | <para><command>ip rule</command> allows users to look at the routing
|
---|
[6aaa1b0] | 118 | policies and change them.
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
[69993f4] | 121 | <para><command>ip route</command> allows users to look at the routing
|
---|
[6aaa1b0] | 122 | table and change routing table rules.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[9535071] | 125 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
[6aaa1b0] | 126 | tunnels and their properties, and change them.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[69993f4] | 129 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
[6aaa1b0] | 130 | addresses and their properties, and change them.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
[69993f4] | 133 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
| 134 | delete the multicast routing.
|
---|
[6aaa1b0] | 135 | </para>
|
---|
| 136 |
|
---|
[69993f4] | 137 | <para><command>ip monitor</command> allows users to
|
---|
| 138 | continously monitor the state of devices, addresses and routes.
|
---|
[6aaa1b0] | 139 | </para>
|
---|
[3ed279f] | 140 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 141 | <primary sortas="b-ip">ip</primary>
|
---|
| 142 | </indexterm>
|
---|
[6aaa1b0] | 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="nstat">
|
---|
| 147 | <term>
|
---|
| 148 | <command>nstat</command>
|
---|
| 149 | </term>
|
---|
| 150 | <listitem>
|
---|
[2256873] | 151 | <para>Shows network statistics.</para>
|
---|
[6aaa1b0] | 152 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 153 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="routef">
|
---|
| 159 | <term>
|
---|
| 160 | <command>routef</command>
|
---|
| 161 | </term>
|
---|
| 162 | <listitem>
|
---|
[2256873] | 163 | <para>A component of <command>ip route</command>. This is for flushing the routing
|
---|
[6aaa1b0] | 164 | tables.
|
---|
| 165 | </para>
|
---|
[3ed279f] | 166 | <indexterm zone="ch-system-iproute2 routef">
|
---|
| 167 | <primary sortas="b-routef">routef</primary>
|
---|
| 168 | </indexterm>
|
---|
[6aaa1b0] | 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="routel">
|
---|
| 173 | <term>
|
---|
| 174 | <command>routel</command>
|
---|
| 175 | </term>
|
---|
| 176 | <listitem>
|
---|
[2256873] | 177 | <para>A component of <command>ip route</command>. This is for listing the routing
|
---|
[6aaa1b0] | 178 | tables.
|
---|
| 179 | </para>
|
---|
[3ed279f] | 180 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 181 | <primary sortas="b-routel">routel</primary>
|
---|
| 182 | </indexterm>
|
---|
[6aaa1b0] | 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="rtmon">
|
---|
| 187 | <term>
|
---|
| 188 | <command>rtmon</command>
|
---|
| 189 | </term>
|
---|
| 190 | <listitem>
|
---|
[2256873] | 191 | <para>Route monitoring utility.</para>
|
---|
[6aaa1b0] | 192 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 193 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="rtstat">
|
---|
| 199 | <term>
|
---|
| 200 | <command>rtstat</command>
|
---|
| 201 | </term>
|
---|
| 202 | <listitem>
|
---|
[2256873] | 203 | <para>Route status utility</para>
|
---|
[6aaa1b0] | 204 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 205 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="ss">
|
---|
| 211 | <term>
|
---|
| 212 | <command>ss</command>
|
---|
| 213 | </term>
|
---|
| 214 | <listitem>
|
---|
[2256873] | 215 | <para>Similar to the <command>netstat</command> command; shows active connections</para>
|
---|
[6aaa1b0] | 216 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 217 | <primary sortas="b-ss">ss</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="tc">
|
---|
| 223 | <term>
|
---|
| 224 | <command>tc</command>
|
---|
| 225 | </term>
|
---|
| 226 | <listitem>
|
---|
[2256873] | 227 | <para>Traffic Controlling Executable; this is for Quality Of
|
---|
[69993f4] | 228 | Service (QOS) and Class Of Service (COS)
|
---|
[2256873] | 229 | implementations
|
---|
[6aaa1b0] | 230 | </para>
|
---|
| 231 |
|
---|
[69993f4] | 232 | <para><command>tc qdisc</command> allows users to setup the queueing
|
---|
[2256873] | 233 | discipline
|
---|
[6aaa1b0] | 234 | </para>
|
---|
| 235 |
|
---|
[69993f4] | 236 | <para><command>tc class</command> allows users to setup classes based on
|
---|
[2256873] | 237 | the queuing discipline scheduling
|
---|
[6aaa1b0] | 238 | </para>
|
---|
| 239 |
|
---|
[69993f4] | 240 | <para><command>tc estimator</command> allows users to estimate the
|
---|
[2256873] | 241 | network flow into a network
|
---|
[6aaa1b0] | 242 | </para>
|
---|
| 243 |
|
---|
[69993f4] | 244 | <para><command>tc filter</command> allows users to setup the QOS/COS
|
---|
[2256873] | 245 | packet filtering
|
---|
[6aaa1b0] | 246 | </para>
|
---|
| 247 |
|
---|
[69993f4] | 248 | <para><command>tc policy</command> allows users to setup the QOS/COS
|
---|
[2256873] | 249 | policies
|
---|
[6aaa1b0] | 250 | </para>
|
---|
[3ed279f] | 251 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 252 | <primary sortas="b-tc">tc</primary>
|
---|
| 253 | </indexterm>
|
---|
[6aaa1b0] | 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 | </variablelist>
|
---|
| 257 | </sect2>
|
---|
| 258 | </sect1>
|
---|
[ef13657] | 259 |
|
---|