[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 |
|
---|
[c0155c7] | 45 | <para>Prepare iproute2 for compilation:</para>
|
---|
[a088964] | 46 | <screen> <userinput>./configure </userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Compile the package:</para>
|
---|
| 49 |
|
---|
[715f65f] | 50 | <screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <variablelist>
|
---|
| 53 | <varlistentry>
|
---|
| 54 | <term><parameter>SBINDIR=/sbin</parameter></term>
|
---|
| 55 | <listitem><para>This makes sure that the iproute2 binaries will install into
|
---|
| 56 | <filename class="directory">/sbin</filename>. This is the correct
|
---|
| 57 | location according to the FHS, as some of the iproute2 binaries are used
|
---|
| 58 | in our bootscripts.</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </varlistentry>
|
---|
| 61 | </variablelist>
|
---|
[a088964] | 62 |
|
---|
| 63 | <para>Now install it:</para>
|
---|
| 64 |
|
---|
[715f65f] | 65 | <screen><userinput>make install SBINDIR=/sbin</userinput></screen>
|
---|
[a088964] | 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 id="contents-iproute2" role="content">
|
---|
[c0155c7] | 69 | <title>Contents of iproute2</title>
|
---|
[a088964] | 70 | <segmentedlist>
|
---|
| 71 | <segtitle>Installed programs</segtitle>
|
---|
| 72 | <seglistitem>
|
---|
| 73 | <seg>ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc.</seg>
|
---|
| 74 | </seglistitem>
|
---|
| 75 | </segmentedlist>
|
---|
| 76 |
|
---|
| 77 | <variablelist>
|
---|
| 78 | <title>Short descriptions</title>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="ifstat">
|
---|
| 81 | <term>
|
---|
| 82 | <command>ifstat</command>
|
---|
| 83 | </term>
|
---|
| 84 | <listitem>
|
---|
| 85 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 86 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 87 | </indexterm>
|
---|
| 88 | <para>shows the interfaces statistics. Shows the amount of transmitted
|
---|
| 89 | and received packages by interface</para>
|
---|
| 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
| 92 |
|
---|
| 93 | <varlistentry id="ip">
|
---|
| 94 | <term>
|
---|
| 95 | <command>ip</command>
|
---|
| 96 | </term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 99 | <primary sortas="b-ip">ip</primary>
|
---|
| 100 | </indexterm>
|
---|
| 101 |
|
---|
| 102 | <para>is the main executable. Has several different functions.</para>
|
---|
| 103 |
|
---|
| 104 | <para><command>ip link <replaceable>[device]</replaceable></command>
|
---|
| 105 | allows you to look at the state of devices and to change it.
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <para><command>ip addr</command> allows you to look at addresses and
|
---|
| 109 | their properties, add new addresses and to delete old ones.
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para><command>ip neighbor</command> allows you to look at neighbour
|
---|
| 113 | bindings and their properties, add new neighbour entries and to
|
---|
| 114 | delete old ones.
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <para><command>ip rule</command> allows you to look at the routing
|
---|
| 118 | policies and change them.
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para><command>ip route</command> allows you to look at the routing
|
---|
| 122 | table and change routing table rules.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para><command>ip tunnel</command> allows you to look at the ip
|
---|
| 126 | tunnels and their properties, and change them.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para><command>ip maddr</command> allows you to look at the multicast
|
---|
| 130 | addresses and their properties, and change them.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <para><command>ip mroute</command> allows you to set, change, or
|
---|
| 134 | delete the mutlicast routing.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <para><command>ip monitor</command> allows you to monitor the state of
|
---|
| 138 | devices, addresses and routes continuously.
|
---|
| 139 | </para>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="nstat">
|
---|
| 144 | <term>
|
---|
| 145 | <command>nstat</command>
|
---|
| 146 | </term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 149 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | <para>Shows network statistics</para>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="routef">
|
---|
| 156 | <term>
|
---|
| 157 | <command>routef</command>
|
---|
| 158 | </term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <indexterm zone="ch-system-iproute2 routef">
|
---|
| 161 | <primary sortas="b-routef">routef</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | <para>A component of ip route. This is for flushing the routing
|
---|
| 164 | tables.
|
---|
| 165 | </para>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="routel">
|
---|
| 170 | <term>
|
---|
| 171 | <command>routel</command>
|
---|
| 172 | </term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 175 | <primary sortas="b-routel">routel</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | <para>A component of ip route. This is for listing the routing
|
---|
| 178 | tables.
|
---|
| 179 | </para>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="rtmon">
|
---|
| 184 | <term>
|
---|
| 185 | <command>rtmon</command>
|
---|
| 186 | </term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 189 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | <para>Route Monitoring Utility.</para>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="rtstat">
|
---|
| 196 | <term>
|
---|
| 197 | <command>rtstat</command>
|
---|
| 198 | </term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 201 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | <para>Route Status Utility</para>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="ss">
|
---|
| 208 | <term>
|
---|
| 209 | <command>ss</command>
|
---|
| 210 | </term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 213 | <primary sortas="b-ss">ss</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | <para>Similar to the netstat command. Shows active connections.</para>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
| 219 | <varlistentry id="tc">
|
---|
| 220 | <term>
|
---|
| 221 | <command>tc</command>
|
---|
| 222 | </term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 225 | <primary sortas="b-tc">tc</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | <para>Traffic Controlling Executable. This is for QOS/COS
|
---|
| 228 | implementations.
|
---|
| 229 | </para>
|
---|
| 230 |
|
---|
| 231 | <para><command>tc qdisc</command> allows you to setup the queueing
|
---|
| 232 | discipline.
|
---|
| 233 | </para>
|
---|
| 234 |
|
---|
| 235 | <para><command>tc class</command> allows you to setup classes based on
|
---|
| 236 | the queuing discipline scheduling.
|
---|
| 237 | </para>
|
---|
| 238 |
|
---|
| 239 | <para><command>tc estimator</command> allows you to estimate the
|
---|
| 240 | network flow into a network.
|
---|
| 241 | </para>
|
---|
| 242 |
|
---|
| 243 | <para><command>tc filter</command> allows you to setup the QOS/COS
|
---|
| 244 | packet filtering.
|
---|
| 245 | </para>
|
---|
| 246 |
|
---|
| 247 | <para><command>tc policy</command> allows you to setup the QOS/COS
|
---|
| 248 | policies.
|
---|
| 249 | </para>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 | </variablelist>
|
---|
| 253 | </sect2>
|
---|
| 254 | </sect1>
|
---|