[a088964] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a088964] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[bdea25ce] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-iproute2" role="wrap">
|
---|
[bdea25ce] | 9 | <?dbhtml filename="iproute2.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>iproute2</productname>
|
---|
| 13 | <productnumber>&iproute2-version;</productnumber>
|
---|
| 14 | <address>&iproute2-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[f0d59f2] | 17 | <title>IPRoute2-&iproute2-version;</title>
|
---|
[bdea25ce] | 18 |
|
---|
[a088964] | 19 | <indexterm zone="ch-system-iproute2">
|
---|
[89ed081] | 20 | <primary sortas="a-IPRoute2">IPRoute2</primary>
|
---|
[a088964] | 21 | </indexterm>
|
---|
[bdea25ce] | 22 |
|
---|
[a088964] | 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[bdea25ce] | 25 |
|
---|
| 26 | <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
|
---|
| 27 | networking.</para>
|
---|
| 28 |
|
---|
[a088964] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[bdea25ce] | 32 |
|
---|
[a088964] | 33 | <seglistitem>
|
---|
[fb386e0] | 34 | <seg>&iproute2-fin-sbu;</seg>
|
---|
| 35 | <seg>&iproute2-fin-du;</seg>
|
---|
[a088964] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[bdea25ce] | 38 |
|
---|
[a088964] | 39 | </sect2>
|
---|
[bdea25ce] | 40 |
|
---|
[a088964] | 41 | <sect2 role="installation">
|
---|
[f0d59f2] | 42 | <title>Installation of IPRoute2</title>
|
---|
[a088964] | 43 |
|
---|
[e691c77] | 44 | <para>The <command>arpd</command> program included in this package will not
|
---|
[f07d91ba] | 45 | be built since it depends on Berkeley DB, which is not installed in
|
---|
| 46 | LFS. However, a directory and a man page for <command>arpd</command> will still
|
---|
| 47 | be installed. Prevent this by running the commands shown below.
|
---|
| 48 | (If the <command>arpd</command> program is needed,
|
---|
| 49 | instructions for compiling Berkeley DB can be found in the BLFS book at
|
---|
| 50 | <ulink url="&blfs-book;server/db.html"/>.)
|
---|
[9cccea2] | 51 | </para>
|
---|
| 52 |
|
---|
[e691c77] | 53 | <screen><userinput remap="pre">sed -i /ARPD/d Makefile
|
---|
[31c3309] | 54 | rm -fv man/man8/arpd.8</userinput></screen>
|
---|
[9cccea2] | 55 |
|
---|
[60933b9] | 56 | <!-- fixed upstream for 5.16.0
|
---|
[d672ab7] | 57 | <para>It is also necessary to disable building two modules that
|
---|
[6a156bab] | 58 | require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
|
---|
[6934b62] | 59 |
|
---|
[b30de8f] | 60 | <screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>
|
---|
[60933b9] | 61 | -->
|
---|
[a088964] | 62 | <para>Compile the package:</para>
|
---|
| 63 |
|
---|
[859502b] | 64 | <screen><userinput remap="make">make NETNS_RUN_DIR=/run/netns</userinput></screen>
|
---|
[81fd230] | 65 |
|
---|
[239518f] | 66 | <para>This package does not have a working test suite.</para>
|
---|
| 67 | <!-- currently not useful, no tests actually run
|
---|
[0ebe029b] | 68 | <para>This package comes with a test suite, but due to assumptions it makes,
|
---|
[971be6b] | 69 | it is not possible to reliably run these tests from within the chroot
|
---|
| 70 | environment. If you wish to run these tests after booting into your new LFS
|
---|
[d450151] | 71 | system, ensure you enable <filename>/proc/config.gz</filename> support
|
---|
| 72 | in your kernel ("General setup" -> "Enable access to
|
---|
| 73 | .config through /proc/config.gz" [CONFIG_IKCONFIG_PROC]), then run
|
---|
[971be6b] | 74 | 'make alltests' from the <filename class="directory">testsuite/</filename>
|
---|
[239518f] | 75 | subdirectory.</para>-->
|
---|
[0be3d41] | 76 |
|
---|
[81fd230] | 77 | <para>Install the package:</para>
|
---|
| 78 |
|
---|
[c36301e7] | 79 | <screen><userinput remap="install">make SBINDIR=/usr/sbin install</userinput></screen>
|
---|
[8d5f7c75] | 80 |
|
---|
| 81 | <para>If desired, install the documentation:</para>
|
---|
| 82 |
|
---|
[8fd9f81] | 83 | <screen><userinput remap="install">mkdir -pv /usr/share/doc/iproute2-&iproute2-version;
|
---|
[8d5f7c75] | 84 | cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;</userinput></screen>
|
---|
[bdea25ce] | 85 |
|
---|
[a088964] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 id="contents-iproute2" role="content">
|
---|
[f0d59f2] | 89 | <title>Contents of IPRoute2</title>
|
---|
[bdea25ce] | 90 |
|
---|
[81fd230] | 91 | <segmentedlist>
|
---|
| 92 | <segtitle>Installed programs</segtitle>
|
---|
[fe05b08] | 93 | <segtitle>Installed directories</segtitle>
|
---|
[bdea25ce] | 94 |
|
---|
[81fd230] | 95 | <seglistitem>
|
---|
[c1a6bf9b] | 96 | <seg>bridge, ctstat (link to lnstat), genl, ifstat, ip, lnstat,
|
---|
| 97 | nstat, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
---|
[79f9e00] | 98 | and tc</seg>
|
---|
[8d35535] | 99 | <seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;
|
---|
[0aa4782] | 100 | </seg>
|
---|
[81fd230] | 101 | </seglistitem>
|
---|
| 102 | </segmentedlist>
|
---|
| 103 |
|
---|
[bdea25ce] | 104 | <variablelist>
|
---|
| 105 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 106 | <?dbfo list-presentation="list"?>
|
---|
| 107 | <?dbhtml list-presentation="table"?>
|
---|
| 108 |
|
---|
[ca101ad] | 109 | <varlistentry id="bridge">
|
---|
| 110 | <term><command>bridge</command></term>
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Configures network bridges</para>
|
---|
| 113 | <indexterm zone="ch-system-iproute2 bridge">
|
---|
| 114 | <primary sortas="b-bridge">bridge</primary>
|
---|
| 115 | </indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
[46a500e] | 119 | <varlistentry id="ctstat">
|
---|
[bdea25ce] | 120 | <term><command>ctstat</command></term>
|
---|
[46a500e] | 121 | <listitem>
|
---|
[89ed081] | 122 | <para>Connection status utility</para>
|
---|
[46a500e] | 123 | <indexterm zone="ch-system-iproute2 ctstat">
|
---|
[005dc3f] | 124 | <primary sortas="b-ctstat">ctstat</primary>
|
---|
[46a500e] | 125 | </indexterm>
|
---|
| 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
[2791a8e] | 129 | <varlistentry id="genl">
|
---|
| 130 | <term><command>genl</command></term>
|
---|
| 131 | <listitem>
|
---|
[f07d91ba] | 132 | <para>Generic netlink utility front end</para>
|
---|
[2791a8e] | 133 | <indexterm zone="ch-system-iproute2 genl">
|
---|
| 134 | <primary sortas="b-genl">genl</primary>
|
---|
| 135 | </indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
[81fd230] | 139 | <varlistentry id="ifstat">
|
---|
[bdea25ce] | 140 | <term><command>ifstat</command></term>
|
---|
[81fd230] | 141 | <listitem>
|
---|
[f07d91ba] | 142 | <para>Shows interface statistics, including the number of
|
---|
| 143 | packets transmitted and received, by interface</para>
|
---|
[81fd230] | 144 | <indexterm zone="ch-system-iproute2 ifstat">
|
---|
| 145 | <primary sortas="b-ifstat">ifstat</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
| 150 | <varlistentry id="ip">
|
---|
[bdea25ce] | 151 | <term><command>ip</command></term>
|
---|
[81fd230] | 152 | <listitem>
|
---|
[f07d91ba] | 153 | <para>The main executable. It has several different functions, including these:</para>
|
---|
[81fd230] | 154 |
|
---|
[0090db5] | 155 | <para><command>ip link <replaceable><device></replaceable></command>
|
---|
[bdea25ce] | 156 | allows users to look at the state of devices and to make changes</para>
|
---|
[81fd230] | 157 |
|
---|
| 158 | <para><command>ip addr</command> allows users to look at addresses and
|
---|
[bdea25ce] | 159 | their properties, add new addresses, and delete old ones</para>
|
---|
[81fd230] | 160 |
|
---|
[bdea25ce] | 161 | <para><command>ip neighbor</command> allows users to look at neighbor
|
---|
| 162 | bindings and their properties, add new neighbor entries, and delete
|
---|
| 163 | old ones</para>
|
---|
[81fd230] | 164 |
|
---|
| 165 | <para><command>ip rule</command> allows users to look at the routing
|
---|
[bdea25ce] | 166 | policies and change them</para>
|
---|
[81fd230] | 167 |
|
---|
| 168 | <para><command>ip route</command> allows users to look at the routing
|
---|
[bdea25ce] | 169 | table and change routing table rules</para>
|
---|
[81fd230] | 170 |
|
---|
| 171 | <para><command>ip tunnel</command> allows users to look at the IP
|
---|
[bdea25ce] | 172 | tunnels and their properties, and change them</para>
|
---|
[81fd230] | 173 |
|
---|
| 174 | <para><command>ip maddr</command> allows users to look at the multicast
|
---|
[bdea25ce] | 175 | addresses and their properties, and change them</para>
|
---|
[81fd230] | 176 |
|
---|
| 177 | <para><command>ip mroute</command> allows users to set, change, or
|
---|
[bdea25ce] | 178 | delete the multicast routing</para>
|
---|
[81fd230] | 179 |
|
---|
[cb02946] | 180 | <para><command>ip monitor</command> allows users to continuously monitor
|
---|
[bdea25ce] | 181 | the state of devices, addresses and routes</para>
|
---|
[81fd230] | 182 | <indexterm zone="ch-system-iproute2 ip">
|
---|
| 183 | <primary sortas="b-ip">ip</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
[46a500e] | 188 | <varlistentry id="lnstat">
|
---|
[bdea25ce] | 189 | <term><command>lnstat</command></term>
|
---|
[46a500e] | 190 | <listitem>
|
---|
[7bb9fda] | 191 | <para>Provides Linux network statistics; it is a generalized and more
|
---|
[bdea25ce] | 192 | feature-complete replacement for the old <command>rtstat</command>
|
---|
| 193 | program</para>
|
---|
[46a500e] | 194 | <indexterm zone="ch-system-iproute2 lnstat">
|
---|
[005dc3f] | 195 | <primary sortas="b-lnstat">lnstat</primary>
|
---|
[46a500e] | 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
[81fd230] | 200 | <varlistentry id="nstat">
|
---|
[bdea25ce] | 201 | <term><command>nstat</command></term>
|
---|
[81fd230] | 202 | <listitem>
|
---|
[f07d91ba] | 203 | <para>Displays network statistics</para>
|
---|
[81fd230] | 204 | <indexterm zone="ch-system-iproute2 nstat">
|
---|
| 205 | <primary sortas="b-nstat">nstat</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="routel">
|
---|
[bdea25ce] | 211 | <term><command>routel</command></term>
|
---|
[81fd230] | 212 | <listitem>
|
---|
[f07d91ba] | 213 | <para>A component of <command>ip route</command>, for listing
|
---|
[bdea25ce] | 214 | the routing tables</para>
|
---|
[81fd230] | 215 | <indexterm zone="ch-system-iproute2 routel">
|
---|
| 216 | <primary sortas="b-routel">routel</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
[46a500e] | 221 | <varlistentry id="rtacct">
|
---|
[bdea25ce] | 222 | <term><command>rtacct</command></term>
|
---|
[46a500e] | 223 | <listitem>
|
---|
[bdea25ce] | 224 | <para>Displays the contents of
|
---|
| 225 | <filename>/proc/net/rt_acct</filename></para>
|
---|
[46a500e] | 226 | <indexterm zone="ch-system-iproute2 rtacct">
|
---|
| 227 | <primary sortas="b-rtacct">rtacct</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
[81fd230] | 232 | <varlistentry id="rtmon">
|
---|
[bdea25ce] | 233 | <term><command>rtmon</command></term>
|
---|
[81fd230] | 234 | <listitem>
|
---|
[89ed081] | 235 | <para>Route monitoring utility</para>
|
---|
[81fd230] | 236 | <indexterm zone="ch-system-iproute2 rtmon">
|
---|
| 237 | <primary sortas="b-rtmon">rtmon</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
[46a500e] | 242 | <varlistentry id="rtpr">
|
---|
[bdea25ce] | 243 | <term><command>rtpr</command></term>
|
---|
[46a500e] | 244 | <listitem>
|
---|
[f07d91ba] | 245 | <para>Converts the output of <command>ip -o</command> into a
|
---|
[bdea25ce] | 246 | readable form</para>
|
---|
[46a500e] | 247 | <indexterm zone="ch-system-iproute2 rtpr">
|
---|
| 248 | <primary sortas="b-rtpr">rtpr</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
[81fd230] | 253 | <varlistentry id="rtstat">
|
---|
[bdea25ce] | 254 | <term><command>rtstat</command></term>
|
---|
[81fd230] | 255 | <listitem>
|
---|
[89ed081] | 256 | <para>Route status utility</para>
|
---|
[81fd230] | 257 | <indexterm zone="ch-system-iproute2 rtstat">
|
---|
| 258 | <primary sortas="b-rtstat">rtstat</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="ss">
|
---|
[bdea25ce] | 264 | <term><command>ss</command></term>
|
---|
[81fd230] | 265 | <listitem>
|
---|
[bdea25ce] | 266 | <para>Similar to the <command>netstat</command> command; shows active
|
---|
| 267 | connections</para>
|
---|
[81fd230] | 268 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 269 | <primary sortas="b-ss">ss</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="tc">
|
---|
[bdea25ce] | 275 | <term><command>tc</command></term>
|
---|
[81fd230] | 276 | <listitem>
|
---|
[f07d91ba] | 277 | <para>Traffic control for Quality of Service
|
---|
| 278 | (QoS) and Class of Service (CoS) implementations</para>
|
---|
[81fd230] | 279 |
|
---|
[f07d91ba] | 280 | <para><command>tc qdisc</command> allows users to set up the queueing
|
---|
[bdea25ce] | 281 | discipline</para>
|
---|
[81fd230] | 282 |
|
---|
[f07d91ba] | 283 | <para><command>tc class</command> allows users to set up classes based
|
---|
[bdea25ce] | 284 | on the queuing discipline scheduling</para>
|
---|
[81fd230] | 285 |
|
---|
[f07d91ba] | 286 | <para><command>tc filter</command> allows users to set up the QoS/CoS
|
---|
[bdea25ce] | 287 | packet filtering</para>
|
---|
[258e50e] | 288 |
|
---|
| 289 | <para><command>tc monitor</command> can be used to view changes
|
---|
| 290 | made to Traffic Control in the kernel.</para>
|
---|
| 291 |
|
---|
[81fd230] | 292 | <indexterm zone="ch-system-iproute2 ss">
|
---|
| 293 | <primary sortas="b-tc">tc</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
[bdea25ce] | 297 |
|
---|
[81fd230] | 298 | </variablelist>
|
---|
[bdea25ce] | 299 |
|
---|
[a088964] | 300 | </sect2>
|
---|
[81fd230] | 301 |
|
---|
[bdea25ce] | 302 | </sect1>
|
---|