2004-07-14 21:49:05 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2006-02-05 13:17:43 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-07-14 21:49:05 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-iproute2" role="wrap">
|
2006-02-05 13:17:43 +00:00
|
|
|
<?dbhtml filename="iproute2.html"?>
|
|
|
|
|
2005-03-19 15:14:59 +00:00
|
|
|
<title>IPRoute2-&iproute2-version;</title>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
<indexterm zone="ch-system-iproute2">
|
2005-04-11 20:06:42 +01:00
|
|
|
<primary sortas="a-IPRoute2">IPRoute2</primary>
|
2004-07-14 21:49:05 +01:00
|
|
|
</indexterm>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
|
|
|
<para>The IPRoute2 package contains programs for basic and advanced IPV4-based
|
|
|
|
networking.</para>
|
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
<seglistitem>
|
2006-04-13 19:45:33 +01:00
|
|
|
<seg>0.2 SBU</seg>
|
|
|
|
<seg>4.8 MB</seg>
|
2004-07-14 21:49:05 +01:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
</sect2>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
<sect2 role="installation">
|
2005-03-19 15:14:59 +00:00
|
|
|
<title>Installation of IPRoute2</title>
|
2004-07-14 21:49:05 +01:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<screen><userinput>make SBINDIR=/sbin</userinput></screen>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<variablelist>
|
2006-02-05 13:17:43 +00:00
|
|
|
<title>The meaning of the make option:</title>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>SBINDIR=/sbin</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>This ensures that the IPRoute2 binaries will install into
|
|
|
|
<filename class="directory">/sbin</filename>. This is the correct
|
|
|
|
location according to the FHS, because some of the IPRoute2 binaries
|
|
|
|
are used by the LFS-Bootscripts package.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
</variablelist>
|
|
|
|
|
2005-12-07 20:46:14 +00:00
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Install the package:</para>
|
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<screen><userinput>make SBINDIR=/sbin install</userinput></screen>
|
|
|
|
|
|
|
|
<para>The <command>arpd</command> binary links against the Berkeley DB
|
|
|
|
libraries that reside in <filename class="directory">/usr</filename> and
|
|
|
|
uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
|
|
|
|
according to the FHS, it must be in <filename
|
|
|
|
class="directory">/usr/sbin</filename>. Move it there:</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
|
|
|
|
<screen><userinput>mv -v /sbin/arpd /usr/sbin</userinput></screen>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-iproute2" role="content">
|
2005-03-19 15:14:59 +00:00
|
|
|
<title>Contents of IPRoute2</title>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<seglistitem>
|
2006-01-06 01:59:08 +00:00
|
|
|
<seg>arpd, ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
|
2006-02-05 13:17:43 +00:00
|
|
|
routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
|
|
|
and tc.</seg>
|
2005-02-19 22:16:42 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2006-01-06 01:59:08 +00:00
|
|
|
<varlistentry id="arpd">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>arpd</command></term>
|
2006-01-06 01:59:08 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Userspace ARP daemon, useful in really large networks, where the
|
|
|
|
kernelspace ARP implementation is insufficient, or when setting up a
|
|
|
|
honeypot</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 arpd">
|
|
|
|
<primary sortas="b-arpd">arpd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-03-13 23:55:35 +00:00
|
|
|
<varlistentry id="ctstat">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>ctstat</command></term>
|
2005-03-13 23:55:35 +00:00
|
|
|
<listitem>
|
2005-04-11 20:06:42 +01:00
|
|
|
<para>Connection status utility</para>
|
2005-03-13 23:55:35 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ctstat">
|
2005-04-13 22:32:36 +01:00
|
|
|
<primary sortas="b-ctstat">ctstat</primary>
|
2005-03-13 23:55:35 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ifcfg">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>ifcfg</command></term>
|
2005-03-13 23:55:35 +00:00
|
|
|
<listitem>
|
2005-04-11 20:06:42 +01:00
|
|
|
<para>A shell script wrapper for the <command>ip</command> command</para>
|
2005-03-13 23:55:35 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ifcfg">
|
|
|
|
<primary sortas="b-ifcfg">ifcfg</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<varlistentry id="ifstat">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>ifstat</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Shows the interface statistics, including the amount of
|
|
|
|
transmitted and received packets by interface</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ifstat">
|
|
|
|
<primary sortas="b-ifstat">ifstat</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ip">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>ip</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
|
|
|
<para>The main executable. It has several different functions:</para>
|
|
|
|
|
2006-04-14 10:37:17 +01:00
|
|
|
<para><command>ip link <replaceable><device></replaceable></command>
|
2006-02-05 13:17:43 +00:00
|
|
|
allows users to look at the state of devices and to make changes</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip addr</command> allows users to look at addresses and
|
2006-02-05 13:17:43 +00:00
|
|
|
their properties, add new addresses, and delete old ones</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<para><command>ip neighbor</command> allows users to look at neighbor
|
|
|
|
bindings and their properties, add new neighbor entries, and delete
|
|
|
|
old ones</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip rule</command> allows users to look at the routing
|
2006-02-05 13:17:43 +00:00
|
|
|
policies and change them</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip route</command> allows users to look at the routing
|
2006-02-05 13:17:43 +00:00
|
|
|
table and change routing table rules</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip tunnel</command> allows users to look at the IP
|
2006-02-05 13:17:43 +00:00
|
|
|
tunnels and their properties, and change them</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip maddr</command> allows users to look at the multicast
|
2006-02-05 13:17:43 +00:00
|
|
|
addresses and their properties, and change them</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>ip mroute</command> allows users to set, change, or
|
2006-02-05 13:17:43 +00:00
|
|
|
delete the multicast routing</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<para><command>ip monitor</command> allows users to continously monitor
|
|
|
|
the state of devices, addresses and routes</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ip">
|
|
|
|
<primary sortas="b-ip">ip</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-03-13 23:55:35 +00:00
|
|
|
<varlistentry id="lnstat">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>lnstat</command></term>
|
2005-03-13 23:55:35 +00:00
|
|
|
<listitem>
|
|
|
|
<para>Provides Linux network statistics. It is a generalized and more
|
2006-02-05 13:17:43 +00:00
|
|
|
feature-complete replacement for the old <command>rtstat</command>
|
|
|
|
program</para>
|
2005-03-13 23:55:35 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 lnstat">
|
2005-04-13 22:32:36 +01:00
|
|
|
<primary sortas="b-lnstat">lnstat</primary>
|
2005-03-13 23:55:35 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<varlistentry id="nstat">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>nstat</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2005-04-11 20:06:42 +01:00
|
|
|
<para>Shows network statistics</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 nstat">
|
|
|
|
<primary sortas="b-nstat">nstat</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="routef">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>routef</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>A component of <command>ip route</command>. This is for flushing
|
|
|
|
the routing tables</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 routef">
|
|
|
|
<primary sortas="b-routef">routef</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="routel">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>routel</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>A component of <command>ip route</command>. This is for listing
|
|
|
|
the routing tables</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 routel">
|
|
|
|
<primary sortas="b-routel">routel</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-03-13 23:55:35 +00:00
|
|
|
<varlistentry id="rtacct">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>rtacct</command></term>
|
2005-03-13 23:55:35 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Displays the contents of
|
|
|
|
<filename>/proc/net/rt_acct</filename></para>
|
2005-03-13 23:55:35 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 rtacct">
|
|
|
|
<primary sortas="b-rtacct">rtacct</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<varlistentry id="rtmon">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>rtmon</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2005-04-11 20:06:42 +01:00
|
|
|
<para>Route monitoring utility</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 rtmon">
|
|
|
|
<primary sortas="b-rtmon">rtmon</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-03-13 23:55:35 +00:00
|
|
|
<varlistentry id="rtpr">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>rtpr</command></term>
|
2005-03-13 23:55:35 +00:00
|
|
|
<listitem>
|
|
|
|
<para>Converts the output of <command>ip -o</command> back into a
|
2006-02-05 13:17:43 +00:00
|
|
|
readable form</para>
|
2005-03-13 23:55:35 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 rtpr">
|
|
|
|
<primary sortas="b-rtpr">rtpr</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<varlistentry id="rtstat">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>rtstat</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2005-04-11 20:06:42 +01:00
|
|
|
<para>Route status utility</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 rtstat">
|
|
|
|
<primary sortas="b-rtstat">rtstat</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ss">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>ss</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Similar to the <command>netstat</command> command; shows active
|
|
|
|
connections</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ss">
|
|
|
|
<primary sortas="b-ss">ss</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="tc">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>tc</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Traffic Controlling Executable; this is for Quality Of Service
|
|
|
|
(QOS) and Class Of Service (COS) implementations</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>tc qdisc</command> allows users to setup the queueing
|
2006-02-05 13:17:43 +00:00
|
|
|
discipline</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<para><command>tc class</command> allows users to setup classes based
|
|
|
|
on the queuing discipline scheduling</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>tc estimator</command> allows users to estimate the
|
2006-02-05 13:17:43 +00:00
|
|
|
network flow into a network</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>tc filter</command> allows users to setup the QOS/COS
|
2006-02-05 13:17:43 +00:00
|
|
|
packet filtering</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<para><command>tc policy</command> allows users to setup the QOS/COS
|
2006-02-05 13:17:43 +00:00
|
|
|
policies</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-iproute2 ss">
|
|
|
|
<primary sortas="b-tc">tc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
</variablelist>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2004-07-14 21:49:05 +01:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect1>
|