[a088964] | 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 | ]>
|
---|
| 6 | <sect1 id="ch-system-iproute2" xreflabel="IProute2" role="wrap">
|
---|
| 7 | <title>Iproute2-&iproute2-version;</title>
|
---|
| 8 | <?dbhtml filename="iproute2.html"?>
|
---|
| 9 | <indexterm zone="ch-system-iproute2">
|
---|
[c0155c7] | 10 | <primary sortas="a-iproute2">iproute2</primary>
|
---|
[a088964] | 11 | </indexterm>
|
---|
| 12 | <sect2 role="package">
|
---|
| 13 | <title/>
|
---|
[c0155c7] | 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>
|
---|
| 25 | <segmentedlist>
|
---|
[c0155c7] | 26 | <segtitle>iproute2 installation depends on</segtitle>
|
---|
[a088964] | 27 | <seglistitem>
|
---|
| 28 | <seg>sed, GCC, Glibc, Make, Linux-Headers</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 | </sect2>
|
---|
| 32 | <sect2 role="installation">
|
---|
[c0155c7] | 33 | <title>Installation of iproute2</title>
|
---|
| 34 | <para>The <command>arpd</command> binary included in this package is
|
---|
| 35 | dependent on Berkeley DB. As <command>arpd</command> is not a very
|
---|
[a088964] | 36 | common requirement on a base Linux system we remove the dependency on
|
---|
[c0155c7] | 37 | Berkeley DB by applying the patch using the command below. If you
|
---|
| 38 | need the <command>arpd</command> binary, then instructions for
|
---|
| 39 | compiling Berkeley DB can be found in the <ulink
|
---|
[a088964] | 40 | url="http://www.linuxfromscratch.org/blfs/view/cvs/content/databases.html#db">BLFS book</ulink>.
|
---|
| 41 | </para>
|
---|
| 42 |
|
---|
[1c77153] | 43 | <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-remove_db-1.patch</userinput></screen>
|
---|
[a088964] | 44 |
|
---|
[7111666] | 45 | <para>The patch below fixes the issue with the newer versions of findutils,
|
---|
| 46 | the issue will give an error message it options are not in the proper order.
|
---|
| 47 | This patch corrects this issue for IPRoute2.</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>patch -Np1 -i ../iproute2-&iproute2-patch-version;-find_update-1.patch</userinput></screen>
|
---|
| 50 |
|
---|
[c0155c7] | 51 | <para>Prepare iproute2 for compilation:</para>
|
---|
[a088964] | 52 | <screen> <userinput>./configure </userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para>Compile the package:</para>
|
---|
| 55 |
|
---|
[715f65f] | 56 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <variablelist>
|
---|
| 59 | <varlistentry>
|
---|
| 60 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
| 61 | <listitem><para>This makes sure that the iproute2 binaries will install into
|
---|
| 62 | <filename class="directory">/sbin</filename>. This is the correct
|
---|
| 63 | location according to the FHS, as some of the iproute2 binaries are used
|
---|
| 64 | in our bootscripts.</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
| 67 | </variablelist>
|
---|
[a088964] | 68 |
|
---|
| 69 | <para>Now install it:</para>
|
---|
| 70 |
|
---|
[715f65f] | 71 | <screen><userinput>make install SBINDIR=/sbin</userinput></screen>
|
---|
[a088964] | 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 id="contents-iproute2" role="content">
|
---|
[c0155c7] | 75 | <title>Contents of iproute2</title>
|
---|
[a088964] | 76 | <segmentedlist>
|
---|
| 77 | <segtitle>Installed programs</segtitle>
|
---|
| 78 | <seglistitem>
|
---|
| 79 | <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
|
---|
| 80 | </seglistitem>
|
---|
| 81 | </segmentedlist>
|
---|
| 82 |
|
---|
| 83 | <variablelist>
|
---|
| 84 | <title>Short descriptions</title>
|
---|
| 85 |
|
---|
| 86 | <varlistentry id="ifstat">
|
---|
| 87 | <term>
|
---|
| 88 | <command>ifstat</command>
|
---|
| 89 | </term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 92 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 93 | </indexterm>
|
---|
| 94 | <para>shows the interfaces statistics. Shows the amount of transmitted
|
---|
| 95 | and received packages by interface</para>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | <varlistentry id="ip">
|
---|
| 100 | <term>
|
---|
| 101 | <command>ip</command>
|
---|
| 102 | </term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 105 | <primary sortas="b-ip">ip</primary>
|
---|
| 106 | </indexterm>
|
---|
| 107 |
|
---|
| 108 | <para>is the main executable. Has several different functions.</para>
|
---|
| 109 |
|
---|
| 110 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
| 111 | allows you to look at the state of devices and to change it.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para><command>ip addr</command> allows you to look at addresses and
|
---|
| 115 | their properties, add new addresses and to delete old ones.
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <para><command>ip neighbor</command> allows you to look at neighbour
|
---|
| 119 | bindings and their properties, add new neighbour entries and to
|
---|
| 120 | delete old ones.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para><command>ip rule</command> allows you to look at the routing
|
---|
| 124 | policies and change them.
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para><command>ip route</command> allows you to look at the routing
|
---|
| 128 | table and change routing table rules.
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para><command>ip tunnel</command> allows you to look at the ip
|
---|
| 132 | tunnels and their properties, and change them.
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <para><command>ip maddr</command> allows you to look at the multicast
|
---|
| 136 | addresses and their properties, and change them.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para><command>ip mroute</command> allows you to set, change, or
|
---|
| 140 | delete the mutlicast routing.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <para><command>ip monitor</command> allows you to monitor the state of
|
---|
| 144 | devices, addresses and routes continuously.
|
---|
| 145 | </para>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="nstat">
|
---|
| 150 | <term>
|
---|
| 151 | <command>nstat</command>
|
---|
| 152 | </term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 155 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | <para>Shows network statistics</para>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="routef">
|
---|
| 162 | <term>
|
---|
| 163 | <command>routef</command>
|
---|
| 164 | </term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <indexterm zone="ch-system-iproute2 routef">
|
---|
| 167 | <primary sortas="b-routef">routef</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | <para>A component of ip route. This is for flushing the routing
|
---|
| 170 | tables.
|
---|
| 171 | </para>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="routel">
|
---|
| 176 | <term>
|
---|
| 177 | <command>routel</command>
|
---|
| 178 | </term>
|
---|
| 179 | <listitem>
|
---|
| 180 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 181 | <primary sortas="b-routel">routel</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | <para>A component of ip route. This is for listing the routing
|
---|
| 184 | tables.
|
---|
| 185 | </para>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="rtmon">
|
---|
| 190 | <term>
|
---|
| 191 | <command>rtmon</command>
|
---|
| 192 | </term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 195 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | <para>Route Monitoring Utility.</para>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="rtstat">
|
---|
| 202 | <term>
|
---|
| 203 | <command>rtstat</command>
|
---|
| 204 | </term>
|
---|
| 205 | <listitem>
|
---|
| 206 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 207 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | <para>Route Status Utility</para>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="ss">
|
---|
| 214 | <term>
|
---|
| 215 | <command>ss</command>
|
---|
| 216 | </term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 219 | <primary sortas="b-ss">ss</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | <para>Similar to the netstat command. Shows active connections.</para>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="tc">
|
---|
| 226 | <term>
|
---|
| 227 | <command>tc</command>
|
---|
| 228 | </term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 231 | <primary sortas="b-tc">tc</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | <para>Traffic Controlling Executable. This is for QOS/COS
|
---|
| 234 | implementations.
|
---|
| 235 | </para>
|
---|
| 236 |
|
---|
| 237 | <para><command>tc qdisc</command> allows you to setup the queueing
|
---|
| 238 | discipline.
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <para><command>tc class</command> allows you to setup classes based on
|
---|
| 242 | the queuing discipline scheduling.
|
---|
| 243 | </para>
|
---|
| 244 |
|
---|
| 245 | <para><command>tc estimator</command> allows you to estimate the
|
---|
| 246 | network flow into a network.
|
---|
| 247 | </para>
|
---|
| 248 |
|
---|
| 249 | <para><command>tc filter</command> allows you to setup the QOS/COS
|
---|
| 250 | packet filtering.
|
---|
| 251 | </para>
|
---|
| 252 |
|
---|
| 253 | <para><command>tc policy</command> allows you to setup the QOS/COS
|
---|
| 254 | policies.
|
---|
| 255 | </para>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 | </variablelist>
|
---|
| 259 | </sect2>
|
---|
| 260 | </sect1>
|
---|