[1ea79fd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-tools-lo" role="wrap">
|
---|
| 9 | <?dbhtml filename="lo-iface.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>iproute2</productname>
|
---|
| 13 | <productnumber>&iproute2-version;</productnumber>
|
---|
| 14 | <address>&iproute2-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Setting Up Loopback Network Interface with IPRoute-&iproute2-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-tools-lo">
|
---|
| 20 | <primary sortas="a-IPRoute2">IPRoute2</primary>
|
---|
| 21 | <secondary>tools</secondary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
| 25 | <title/>
|
---|
| 26 |
|
---|
| 27 | <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
|
---|
| 28 | networking. Now we need <command>ip</command> from it to bring up
|
---|
| 29 | loopback network interface, which is expected by the testsuites of
|
---|
| 30 | various packages.</para>
|
---|
| 31 |
|
---|
| 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&buildtime;</segtitle>
|
---|
| 34 | <segtitle>&diskspace;</segtitle>
|
---|
| 35 |
|
---|
| 36 | <seglistitem>
|
---|
| 37 | <seg>&iproute2-tmp-sbu;</seg>
|
---|
| 38 | <seg>&iproute2-tmp-du;</seg>
|
---|
| 39 | </seglistitem>
|
---|
| 40 | </segmentedlist>
|
---|
| 41 |
|
---|
| 42 | </sect2>
|
---|
| 43 |
|
---|
| 44 | <sect2 role="installation">
|
---|
| 45 | <title>Use IPRoute2 to Set Up Loopback Network Interface</title>
|
---|
| 46 |
|
---|
| 47 | <para>Compile the package:</para>
|
---|
| 48 |
|
---|
[426c3a4] | 49 | <screen><userinput remap="make">PKG_CONFIG=false make SUBDIRS='lib ip'</userinput></screen>
|
---|
[1ea79fd] | 50 |
|
---|
| 51 | <variablelist>
|
---|
[426c3a4] | 52 | <title>The meaning of the environment and overriden make
|
---|
| 53 | variables:</title>
|
---|
[1ea79fd] | 54 |
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><parameter>PKG_CONFIG=false</parameter></term>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>The building system attempts to find dependencies with
|
---|
| 59 | <command>pkg-config</command>, which is not installed yet.
|
---|
| 60 | We can override it since <command>ip</command> utility does not
|
---|
| 61 | need these dependencies.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
[426c3a4] | 64 |
|
---|
| 65 | <varlistentry>
|
---|
| 66 | <term><parameter>SUBDIRS='lib ip'</parameter></term>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Only build the <command>ip</command> utility from the
|
---|
| 69 | package and disable the build of other utilities. This is needed
|
---|
| 70 | to prevent a build failure due to the lack of some
|
---|
| 71 | dependencies.</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </varlistentry>
|
---|
[1ea79fd] | 74 | </variablelist>
|
---|
| 75 |
|
---|
| 76 | <para>It's not needed to install the <command>ip</command> utility now.
|
---|
| 77 | Just bring up the loopback interface:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput remap="install">ip/ip link set lo up</userinput></screen>
|
---|
| 80 |
|
---|
| 81 | <para>Verify the result:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="install">ip/ip addr</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <para>The command above should show <literal>127.0.0.1/8</literal>
|
---|
| 86 | as the IPv4 address of <literal>lo</literal>, and
|
---|
| 87 | <literal>::1/128</literal> as the IPv6 address.</para>
|
---|
| 88 |
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="content">
|
---|
| 92 | <title/>
|
---|
| 93 |
|
---|
| 94 | <para>Details on this package are located in <xref linkend="contents-iproute2" role="."/></para>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | </sect1>
|
---|