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