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>IPRoute2 package has several dependencies not installed yet, but
|
---|
48 | we only need <command>ip</command> utility from the package now.
|
---|
49 | Disable the build of other utilities:</para>
|
---|
50 |
|
---|
51 | <screen><userinput remap="pre">sed '/SUBDIRS/s/=.*/=lib ip/' -i Makefile</userinput></screen>
|
---|
52 |
|
---|
53 | <para>Compile the package:</para>
|
---|
54 |
|
---|
55 | <screen><userinput remap="make">PKG_CONFIG=false make</userinput></screen>
|
---|
56 |
|
---|
57 | <variablelist>
|
---|
58 | <title>The meaning of the environment variable:</title>
|
---|
59 |
|
---|
60 | <varlistentry>
|
---|
61 | <term><parameter>PKG_CONFIG=false</parameter></term>
|
---|
62 | <listitem>
|
---|
63 | <para>The building system attempts to find dependencies with
|
---|
64 | <command>pkg-config</command>, which is not installed yet.
|
---|
65 | We can override it since <command>ip</command> utility does not
|
---|
66 | need these dependencies.</para>
|
---|
67 | </listitem>
|
---|
68 | </varlistentry>
|
---|
69 | </variablelist>
|
---|
70 |
|
---|
71 | <para>It's not needed to install the <command>ip</command> utility now.
|
---|
72 | Just bring up the loopback interface:</para>
|
---|
73 |
|
---|
74 | <screen><userinput remap="install">ip/ip link set lo up</userinput></screen>
|
---|
75 |
|
---|
76 | <para>Verify the result:</para>
|
---|
77 |
|
---|
78 | <screen><userinput remap="install">ip/ip addr</userinput></screen>
|
---|
79 |
|
---|
80 | <para>The command above should show <literal>127.0.0.1/8</literal>
|
---|
81 | as the IPv4 address of <literal>lo</literal>, and
|
---|
82 | <literal>::1/128</literal> as the IPv6 address.</para>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="content">
|
---|
87 | <title/>
|
---|
88 |
|
---|
89 | <para>Details on this package are located in <xref linkend="contents-iproute2" role="."/></para>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 | </sect1>
|
---|