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