2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/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"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>iproute2</productname>
|
|
|
|
<productnumber>&iproute2-version;</productnumber>
|
|
|
|
<address>&iproute2-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
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>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&iproute2-fin-sbu;</seg>
|
|
|
|
<seg>&iproute2-fin-du;</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
|
|
|
|
2016-01-17 18:13:59 +00:00
|
|
|
<para>The <command>arpd</command> program included in this package will not
|
2022-12-11 22:29:49 +00:00
|
|
|
be built since it depends on Berkeley DB, which is not installed in
|
|
|
|
LFS. However, a directory and a man page for <command>arpd</command> will still
|
|
|
|
be installed. Prevent this by running the commands shown below.
|
2009-07-18 13:30:56 +01:00
|
|
|
</para>
|
|
|
|
|
2016-01-17 18:13:59 +00:00
|
|
|
<screen><userinput remap="pre">sed -i /ARPD/d Makefile
|
2017-11-17 21:13:16 +00:00
|
|
|
rm -fv man/man8/arpd.8</userinput></screen>
|
2009-07-18 13:30:56 +01:00
|
|
|
|
2022-01-28 13:04:57 +00:00
|
|
|
<!-- fixed upstream for 5.16.0
|
2021-09-07 21:33:18 +01:00
|
|
|
<para>It is also necessary to disable building two modules that
|
2020-06-12 05:40:07 +01:00
|
|
|
require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
|
2016-04-05 03:00:44 +01:00
|
|
|
|
2018-06-12 19:28:56 +01:00
|
|
|
<screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>
|
2022-01-28 13:04:57 +00:00
|
|
|
-->
|
2004-07-14 21:49:05 +01:00
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
2022-02-27 08:24:47 +00:00
|
|
|
<screen><userinput remap="make">make NETNS_RUN_DIR=/run/netns</userinput></screen>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2016-10-22 20:58:59 +01:00
|
|
|
<para>This package does not have a working test suite.</para>
|
|
|
|
<!-- currently not useful, no tests actually run
|
2010-09-18 01:12:44 +01:00
|
|
|
<para>This package comes with a test suite, but due to assumptions it makes,
|
2007-10-29 22:06:30 +00:00
|
|
|
it is not possible to reliably run these tests from within the chroot
|
|
|
|
environment. If you wish to run these tests after booting into your new LFS
|
2014-07-14 11:11:09 +01:00
|
|
|
system, ensure you enable <filename>/proc/config.gz</filename> support
|
|
|
|
in your kernel ("General setup" -> "Enable access to
|
|
|
|
.config through /proc/config.gz" [CONFIG_IKCONFIG_PROC]), then run
|
2007-10-29 22:06:30 +00:00
|
|
|
'make alltests' from the <filename class="directory">testsuite/</filename>
|
2016-10-22 20:58:59 +01:00
|
|
|
subdirectory.</para>-->
|
2005-12-07 20:46:14 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Install the package:</para>
|
|
|
|
|
2021-06-09 18:49:02 +01:00
|
|
|
<screen><userinput remap="install">make SBINDIR=/usr/sbin install</userinput></screen>
|
2021-05-26 00:20:15 +01:00
|
|
|
|
|
|
|
<para>If desired, install the documentation:</para>
|
|
|
|
|
2021-10-13 21:00:35 +01:00
|
|
|
<screen><userinput remap="install">mkdir -pv /usr/share/doc/iproute2-&iproute2-version;
|
2021-05-26 00:20:15 +01:00
|
|
|
cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;</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>
|
2010-05-23 18:18:52 +01:00
|
|
|
<segtitle>Installed directories</segtitle>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<seglistitem>
|
2022-12-12 12:24:12 +00:00
|
|
|
<seg>bridge, ctstat (link to lnstat), genl, ifstat, ip, lnstat,
|
|
|
|
nstat, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
|
2009-09-24 20:29:25 +01:00
|
|
|
and tc</seg>
|
2021-02-16 05:31:31 +00:00
|
|
|
<seg>/etc/iproute2, /usr/lib/tc, and /usr/share/doc/iproute2-&iproute2-version;
|
2015-07-05 04:04:40 +01:00
|
|
|
</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"?>
|
|
|
|
|
2012-10-15 19:26:20 +01:00
|
|
|
<varlistentry id="bridge">
|
|
|
|
<term><command>bridge</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Configures network bridges</para>
|
|
|
|
<indexterm zone="ch-system-iproute2 bridge">
|
|
|
|
<primary sortas="b-bridge">bridge</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>
|
|
|
|
|
2007-05-12 21:45:29 +01:00
|
|
|
<varlistentry id="genl">
|
|
|
|
<term><command>genl</command></term>
|
|
|
|
<listitem>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>Generic netlink utility front end</para>
|
2007-05-12 21:45:29 +01:00
|
|
|
<indexterm zone="ch-system-iproute2 genl">
|
|
|
|
<primary sortas="b-genl">genl</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>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>Shows interface statistics, including the number of
|
|
|
|
packets transmitted and received, 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>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>The main executable. It has several different functions, including these:</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
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
|
|
|
|
2012-08-29 21:45:23 +01:00
|
|
|
<para><command>ip monitor</command> allows users to continuously monitor
|
2006-02-05 13:17:43 +00:00
|
|
|
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>
|
2015-02-10 21:54:19 +00:00
|
|
|
<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>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>Displays 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="routel">
|
2006-02-05 13:17:43 +00:00
|
|
|
<term><command>routel</command></term>
|
2005-02-19 22:16:42 +00:00
|
|
|
<listitem>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>A component of <command>ip route</command>, for listing
|
2006-02-05 13:17:43 +00:00
|
|
|
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>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>Converts the output of <command>ip -o</command> 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>
|
2022-12-11 22:29:49 +00:00
|
|
|
<para>Traffic control for Quality of Service
|
|
|
|
(QoS) and Class of Service (CoS) implementations</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2022-12-11 22:29:49 +00:00
|
|
|
<para><command>tc qdisc</command> allows users to set up the queueing
|
2006-02-05 13:17:43 +00:00
|
|
|
discipline</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2022-12-11 22:29:49 +00:00
|
|
|
<para><command>tc class</command> allows users to set up classes based
|
2006-02-05 13:17:43 +00:00
|
|
|
on the queuing discipline scheduling</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2022-12-11 22:29:49 +00:00
|
|
|
<para><command>tc filter</command> allows users to set up the QoS/CoS
|
2006-02-05 13:17:43 +00:00
|
|
|
packet filtering</para>
|
2022-12-12 17:48:42 +00:00
|
|
|
|
|
|
|
<para><command>tc monitor</command> can be used to view changes
|
|
|
|
made to Traffic Control in the kernel.</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>
|