1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY net-tools-download-http "http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-&net-tools-version;.tar.bz2">
|
---|
8 | <!ENTITY net-tools-download-ftp "ftp://ftp.ibiblio.org/pub/Linux/distributions/rootlinux/rootlinux-1.3/source/base/net-tools/net-tools-&net-tools-version;.tar.gz">
|
---|
9 | <!ENTITY net-tools-size "194 KB">
|
---|
10 | <!ENTITY net-tools-buildsize "4.3 MB">
|
---|
11 | <!ENTITY net-tools-time "0.10 SBU">
|
---|
12 | <!ENTITY lfs-coreutils-version "5.2.1">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="net-tools.html"?>
|
---|
21 | <title>Net-tools-&net-tools-version;</title>
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Introduction to <application>Net-tools</application></title>
|
---|
25 |
|
---|
26 | <para>The <application>Net-tools</application> package is a collection
|
---|
27 | of programs for controlling the network subsystem of the Linux
|
---|
28 | kernel.</para>
|
---|
29 |
|
---|
30 | <sect3><title>Package information</title>
|
---|
31 | <itemizedlist spacing='compact'>
|
---|
32 | <listitem><para>Download (HTTP): <ulink url="&net-tools-download-http;"/></para></listitem>
|
---|
33 | <listitem><para>Download (FTP): <ulink url="&net-tools-download-ftp;"/></para></listitem>
|
---|
34 | <listitem><para>Download size: &net-tools-size;</para></listitem>
|
---|
35 | <listitem><para>Estimated Disk space required: &net-tools-buildsize;</para></listitem>
|
---|
36 | <listitem><para>Estimated build time: &net-tools-time;</para></listitem></itemizedlist>
|
---|
37 | </sect3>
|
---|
38 |
|
---|
39 | <sect3><title>Additional downloads</title>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem><para>Required Patch (if compiled using
|
---|
42 | <application>GCC</application>-3.4.x): <ulink
|
---|
43 | url="&patch-root;/net-tools-&net-tools-version;-gcc34-3.patch"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem><para>Required Patch: <ulink
|
---|
46 | url="&patch-root;/net-tools-&net-tools-version;-kernel_headers-2.patch"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem><para>Required Patch: <ulink
|
---|
49 | url="&patch-root;/net-tools-&net-tools-version;-mii_ioctl-1.patch"/></para>
|
---|
50 | </listitem></itemizedlist>
|
---|
51 | </sect3>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|
55 | <sect2>
|
---|
56 | <title>Installation of <application>Net-tools</application></title>
|
---|
57 |
|
---|
58 | <note><para>The <application>Net-tools</application> package installs a
|
---|
59 | <command>hostname</command> program which will overwrite the existing program
|
---|
60 | installed by <application>Coreutils</application> during a base
|
---|
61 | <acronym>LFS</acronym> installation. If, for whatever reason, you need to
|
---|
62 | reinstall the <application>Coreutils</application> package after installing
|
---|
63 | <application>Net-tools</application>, you should use the
|
---|
64 | <filename>coreutils-&lfs-coreutils-version;-suppress_hostname_uptime_kill_su-1.patch</filename>
|
---|
65 | patch if you wish to preserve the <application>Net-tools</application>
|
---|
66 | <command>hostname</command> program.</para></note>
|
---|
67 |
|
---|
68 | <para>If you don't know what to answer to all the questions asked during
|
---|
69 | the <command>make config</command> phase below, then just accept the
|
---|
70 | defaults (the build command below automates this). This will be just fine
|
---|
71 | in the majority of cases. What you're
|
---|
72 | asked here is a bunch of questions about which network protocols you've
|
---|
73 | enabled in your kernel. The default answers will enable the tools from
|
---|
74 | this package to work with the most common protocols:
|
---|
75 | <acronym>TCP</acronym>, <acronym>PPP</acronym>, and several others. You
|
---|
76 | still need to actually enable these protocols in the kernel—what you
|
---|
77 | do here is merely telling the package to include support for those
|
---|
78 | protocols in its programs, but it's up to the kernel to make the
|
---|
79 | protocols available.</para>
|
---|
80 |
|
---|
81 | <para>Install <application>Net-tools</application> by running the
|
---|
82 | following commands:</para>
|
---|
83 |
|
---|
84 | <screen><userinput><command>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &&
|
---|
85 | patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &&
|
---|
86 | patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &&
|
---|
87 | yes "" | make config &&
|
---|
88 | sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
|
---|
89 | -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
|
---|
90 | sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
|
---|
91 | -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
|
---|
92 | make &&
|
---|
93 | make update</command></userinput></screen>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2>
|
---|
98 | <title>Command explanations</title>
|
---|
99 |
|
---|
100 | <para><command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
101 | to <command>make config</command> skips the interactive configuration and
|
---|
102 | accepts the defaults.</para>
|
---|
103 |
|
---|
104 | <para><command>sed -i -e ...</command>: These two <command>sed</command>s
|
---|
105 | change the configuration files to force building the
|
---|
106 | <command>ipmaddr</command>, <command>iptunnel</command> and
|
---|
107 | <command>mii-tool</command> programs.</para>
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2>
|
---|
111 | <title>Contents</title>
|
---|
112 |
|
---|
113 | <para>The <application>Net-tools</application> package contains
|
---|
114 | <command>arp</command>,
|
---|
115 | <command>dnsdomainname</command>,
|
---|
116 | <command>domainname</command>,
|
---|
117 | <command>hostname</command>,
|
---|
118 | <command>ifconfig</command>,
|
---|
119 | <command>ipmaddr</command>,
|
---|
120 | <command>iptunnel</command>,
|
---|
121 | <command>mii-tool</command>,
|
---|
122 | <command>nameif</command>,
|
---|
123 | <command>netstat</command>,
|
---|
124 | <command>nisdomainname</command>,
|
---|
125 | <command>plipconfig</command>,
|
---|
126 | <command>rarp</command>,
|
---|
127 | <command>route</command>,
|
---|
128 | <command>slattach</command> and
|
---|
129 | <command>ypdomainname</command>.</para>
|
---|
130 |
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2><title>Description</title>
|
---|
134 |
|
---|
135 | <sect3><title>arp</title>
|
---|
136 | <para><command>arp</command>
|
---|
137 | is used to manipulate the kernel's <acronym>ARP</acronym> cache, usually
|
---|
138 | to add or delete an entry, or to dump the entire cache.
|
---|
139 | </para></sect3>
|
---|
140 |
|
---|
141 | <sect3><title>dnsdomainname</title>
|
---|
142 | <para><command>dnsdomainname</command>
|
---|
143 | reports the system's <acronym>DNS</acronym> domain name.
|
---|
144 | </para></sect3>
|
---|
145 |
|
---|
146 | <sect3><title>domainname</title>
|
---|
147 | <para><command>domainname</command>
|
---|
148 | reports or sets the system's
|
---|
149 | <acronym>NIS</acronym>/<acronym>YP</acronym> domain name.
|
---|
150 | </para></sect3>
|
---|
151 |
|
---|
152 | <sect3><title>hostname</title>
|
---|
153 | <para><command>hostname</command>
|
---|
154 | reports or sets the name of the current host system.
|
---|
155 | </para></sect3>
|
---|
156 |
|
---|
157 | <sect3><title>ifconfig</title>
|
---|
158 | <para><command>ifconfig</command>
|
---|
159 | is the main utility for configuring network interfaces.
|
---|
160 | </para></sect3>
|
---|
161 |
|
---|
162 | <sect3><title>ipmaddr</title>
|
---|
163 | <para><command>ipmaddr</command>
|
---|
164 | adds, deletes and shows an interface's multicast addresses.
|
---|
165 | </para></sect3>
|
---|
166 |
|
---|
167 | <sect3><title>iptunnel</title>
|
---|
168 | <para><command>iptunnel</command>
|
---|
169 | adds, changes, deletes and shows an interface's tunnels.
|
---|
170 | </para></sect3>
|
---|
171 |
|
---|
172 | <sect3><title>mii-tool</title>
|
---|
173 | <para><command>mii-tool</command>
|
---|
174 | checks or sets the status of a network interface's Media Independent
|
---|
175 | Interface (<acronym>MII</acronym>) unit.
|
---|
176 | </para></sect3>
|
---|
177 |
|
---|
178 | <sect3><title>nameif</title>
|
---|
179 | <para><command>nameif</command>
|
---|
180 | names network interfaces based on <acronym>MAC</acronym> addresses.
|
---|
181 | </para></sect3>
|
---|
182 |
|
---|
183 | <sect3><title>netstat</title>
|
---|
184 | <para><command>netstat</command>
|
---|
185 | is used to report network connections, routing tables, and interface
|
---|
186 | statistics.
|
---|
187 | </para></sect3>
|
---|
188 |
|
---|
189 | <sect3><title>nisdomainname</title>
|
---|
190 | <para><command>nisdomainname</command>
|
---|
191 | does the same as <command>domainname</command>.
|
---|
192 | </para></sect3>
|
---|
193 |
|
---|
194 | <sect3><title>plipconfig</title>
|
---|
195 | <para><command>plipconfig</command>
|
---|
196 | is used to fine tune the <acronym>PLIP</acronym> device parameters, to
|
---|
197 | improve its performance.
|
---|
198 | </para></sect3>
|
---|
199 |
|
---|
200 | <sect3><title>rarp</title>
|
---|
201 | <para><command>rarp</command>
|
---|
202 | is used to manipulate the kernel's <acronym>RARP</acronym> table.
|
---|
203 | </para></sect3>
|
---|
204 |
|
---|
205 | <sect3><title>route</title>
|
---|
206 | <para><command>route</command>
|
---|
207 | is used to manipulate the <acronym>IP</acronym> routing table.
|
---|
208 | </para></sect3>
|
---|
209 |
|
---|
210 | <sect3><title>slattach</title>
|
---|
211 | <para><command>slattach</command>
|
---|
212 | attaches a network interface to a serial line. This allows you to use
|
---|
213 | normal terminal lines for point-to-point links to other computers.
|
---|
214 | </para></sect3>
|
---|
215 |
|
---|
216 | <sect3><title>ypdomainname</title>
|
---|
217 | <para><command>ypdomainname</command>
|
---|
218 | does the same as <command>domainname</command>.
|
---|
219 | </para></sect3>
|
---|
220 |
|
---|
221 | </sect2>
|
---|
222 |
|
---|
223 | </sect1>
|
---|