1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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-md5sum-http "888774accab40217dde927e21979c165">
|
---|
10 | <!ENTITY net-tools-md5sum-ftp "e1e83a4d4cdd72d35bcf90d76a16206f">
|
---|
11 | <!ENTITY net-tools-size "194 KB">
|
---|
12 | <!ENTITY net-tools-buildsize "4.3 MB">
|
---|
13 | <!ENTITY net-tools-time "0.1 SBU">
|
---|
14 | <!ENTITY lfs-coreutils-version "5.93">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
|
---|
18 | <?dbhtml filename="net-tools.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | <keywordset>
|
---|
24 | <keyword role="package">net-tools-&net-tools-version;.tar</keyword>
|
---|
25 | <keyword role="ftpdir">net-tools</keyword>
|
---|
26 | </keywordset>
|
---|
27 | </sect1info>
|
---|
28 |
|
---|
29 | <title>Net-tools-&net-tools-version;</title>
|
---|
30 |
|
---|
31 | <indexterm zone="net-tools">
|
---|
32 | <primary sortas="a-Net-tools">Net-tools</primary>
|
---|
33 | </indexterm>
|
---|
34 |
|
---|
35 | <sect2 role="package">
|
---|
36 | <title>Introduction to Net-tools</title>
|
---|
37 |
|
---|
38 | <para>The <application>Net-tools</application> package is a collection
|
---|
39 | of programs for controlling the network subsystem of the Linux
|
---|
40 | kernel.</para>
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&net-tools-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&net-tools-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum (HTTP): &net-tools-md5sum-http;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download MD5 sum (FTP): &net-tools-md5sum-ftp;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Download size: &net-tools-size;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated disk space required: &net-tools-buildsize;</para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>Estimated build time: &net-tools-time;</para>
|
---|
64 | </listitem>
|
---|
65 | </itemizedlist>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
68 | <itemizedlist spacing="compact">
|
---|
69 | <listitem>
|
---|
70 | <para>Required Patch: <ulink
|
---|
71 | url="&patch-root;/net-tools-&net-tools-version;-gcc34-3.patch"/></para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>Required Patch: <ulink
|
---|
75 | url="&patch-root;/net-tools-&net-tools-version;-kernel_headers-2.patch"/></para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para>Required Patch: <ulink
|
---|
79 | url="&patch-root;/net-tools-&net-tools-version;-mii_ioctl-1.patch"/></para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="installation">
|
---|
86 | <title>Installation of Net-tools</title>
|
---|
87 |
|
---|
88 | <note>
|
---|
89 | <para>The <application>Net-tools</application> package installs a
|
---|
90 | <command>hostname</command> program which will overwrite the existing
|
---|
91 | program installed by <application>Coreutils</application> during a base
|
---|
92 | LFS installation. If, for whatever reason, you need to reinstall the
|
---|
93 | <application>Coreutils</application> package after installing
|
---|
94 | <application>Net-tools</application>, you should apply the
|
---|
95 | <filename>coreutils-&lfs-coreutils-version;-suppress_hostname-1.patch</filename>
|
---|
96 | patch (after the other patches) if you wish to preserve the
|
---|
97 | <application>Net-tools</application> <command>hostname</command>
|
---|
98 | program.</para>
|
---|
99 | </note>
|
---|
100 |
|
---|
101 | <para>The instructions below automate the configuration process by piping
|
---|
102 | <command>yes</command> to the <command>make config</command> command. If
|
---|
103 | you wish to run the interactive configuration process (by changing the
|
---|
104 | instruction to just <command>make config</command>), but you are not sure
|
---|
105 | how to answer all the questions, then just accept the defaults. This will
|
---|
106 | be just fine in the majority of cases. What you're asked here is a bunch of
|
---|
107 | questions about which network protocols you've enabled in your kernel. The
|
---|
108 | default answers will enable the tools from this package to work with the
|
---|
109 | most common protocols: TCP, PPP, and several others. You still need to
|
---|
110 | actually enable these protocols in the kernel—what you do here is
|
---|
111 | merely tell the package to include support for those protocols in its
|
---|
112 | programs, but it's up to the kernel to make the protocols available.</para>
|
---|
113 |
|
---|
114 | <para>Install <application>Net-tools</application> by running the
|
---|
115 | following commands:</para>
|
---|
116 |
|
---|
117 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &&
|
---|
118 | patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &&
|
---|
119 | patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &&
|
---|
120 | yes "" | make config &&
|
---|
121 | sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
|
---|
122 | -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
|
---|
123 | sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
|
---|
124 | -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
|
---|
125 | make</userinput></screen>
|
---|
126 |
|
---|
127 | <para>This package does not come with a test suite.</para>
|
---|
128 |
|
---|
129 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
130 |
|
---|
131 | <screen role='root'><userinput>make update</userinput></screen>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="commands">
|
---|
136 | <title>Command Explanations</title>
|
---|
137 |
|
---|
138 | <para><command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
139 | to <command>make config</command> skips the interactive configuration and
|
---|
140 | accepts the defaults.</para>
|
---|
141 |
|
---|
142 | <para><command>sed -i -e ...</command>: These two <command>sed</command>s
|
---|
143 | change the configuration files to force building the
|
---|
144 | <command>ipmaddr</command>, <command>iptunnel</command> and
|
---|
145 | <command>mii-tool</command> programs.</para>
|
---|
146 |
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | <sect2 role="content">
|
---|
150 | <title>Contents</title>
|
---|
151 |
|
---|
152 | <segmentedlist>
|
---|
153 | <segtitle>Installed Programs</segtitle>
|
---|
154 | <segtitle>Installed Libraries</segtitle>
|
---|
155 | <segtitle>Installed Directories</segtitle>
|
---|
156 |
|
---|
157 | <seglistitem>
|
---|
158 | <seg>arp, dnsdomainname, domainname, hostname,
|
---|
159 | ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
---|
160 | nisdomainname, plipconfig, rarp, route, slattach, and
|
---|
161 | ypdomainname</seg>
|
---|
162 | <seg>None</seg>
|
---|
163 | <seg>None</seg>
|
---|
164 | </seglistitem>
|
---|
165 | </segmentedlist>
|
---|
166 |
|
---|
167 | <variablelist>
|
---|
168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
169 | <?dbfo list-presentation="list"?>
|
---|
170 | <?dbhtml list-presentation="table"?>
|
---|
171 |
|
---|
172 | <varlistentry id="arp">
|
---|
173 | <term><command>arp</command></term>
|
---|
174 | <listitem>
|
---|
175 | <para>is used to manipulate the kernel's ARP cache, usually
|
---|
176 | to add or delete an entry, or to dump the entire cache.</para>
|
---|
177 | <indexterm zone="net-tools arp">
|
---|
178 | <primary sortas="b-arp">arp</primary>
|
---|
179 | </indexterm>
|
---|
180 | </listitem>
|
---|
181 | </varlistentry>
|
---|
182 |
|
---|
183 | <varlistentry id="dnsdomainname">
|
---|
184 | <term><command>dnsdomainname</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>reports the system's DNS domain name.</para>
|
---|
187 | <indexterm zone="net-tools dnsdomainname">
|
---|
188 | <primary sortas="b-dnsdomainname">dnsdomainname</primary>
|
---|
189 | </indexterm>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | <varlistentry id="domainname">
|
---|
194 | <term><command>domainname</command></term>
|
---|
195 | <listitem>
|
---|
196 | <para>reports or sets the system's NIS/YP domain name.</para>
|
---|
197 | <indexterm zone="net-tools domainname">
|
---|
198 | <primary sortas="b-domainname">domainname</primary>
|
---|
199 | </indexterm>
|
---|
200 | </listitem>
|
---|
201 | </varlistentry>
|
---|
202 |
|
---|
203 | <varlistentry id="hostname">
|
---|
204 | <term><command>hostname</command></term>
|
---|
205 | <listitem>
|
---|
206 | <para>reports or sets the name of the current host system.</para>
|
---|
207 | <indexterm zone="net-tools hostname">
|
---|
208 | <primary sortas="b-hostname">hostname</primary>
|
---|
209 | </indexterm>
|
---|
210 | </listitem>
|
---|
211 | </varlistentry>
|
---|
212 |
|
---|
213 | <varlistentry id="ifconfig">
|
---|
214 | <term><command>ifconfig</command></term>
|
---|
215 | <listitem>
|
---|
216 | <para>is the main utility for configuring network interfaces.</para>
|
---|
217 | <indexterm zone="net-tools ifconfig">
|
---|
218 | <primary sortas="b-ifconfig">ifconfig</primary>
|
---|
219 | </indexterm>
|
---|
220 | </listitem>
|
---|
221 | </varlistentry>
|
---|
222 |
|
---|
223 | <varlistentry id="ipmaddr">
|
---|
224 | <term><command>ipmaddr</command></term>
|
---|
225 | <listitem>
|
---|
226 | <para>adds, deletes and shows an interface's multicast addresses.</para>
|
---|
227 | <indexterm zone="net-tools ipmaddr">
|
---|
228 | <primary sortas="b-ipmaddr">ipmaddr</primary>
|
---|
229 | </indexterm>
|
---|
230 | </listitem>
|
---|
231 | </varlistentry>
|
---|
232 |
|
---|
233 | <varlistentry id="iptunnel">
|
---|
234 | <term><command>iptunnel</command></term>
|
---|
235 | <listitem>
|
---|
236 | <para>adds, changes, deletes and shows an interface's tunnels.</para>
|
---|
237 | <indexterm zone="net-tools iptunnel">
|
---|
238 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
239 | </indexterm>
|
---|
240 | </listitem>
|
---|
241 | </varlistentry>
|
---|
242 |
|
---|
243 | <varlistentry id="mii-tool">
|
---|
244 | <term><command>mii-tool</command></term>
|
---|
245 | <listitem>
|
---|
246 | <para>checks or sets the status of a network interface's Media Independent
|
---|
247 | Interface (MII) unit.</para>
|
---|
248 | <indexterm zone="net-tools mii-tool">
|
---|
249 | <primary sortas="b-mii-tool">mii-tool</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="nameif">
|
---|
255 | <term><command>nameif</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>names network interfaces based on MAC addresses.</para>
|
---|
258 | <indexterm zone="net-tools nameif">
|
---|
259 | <primary sortas="b-nameif">nameif</primary>
|
---|
260 | </indexterm>
|
---|
261 | </listitem>
|
---|
262 | </varlistentry>
|
---|
263 |
|
---|
264 | <varlistentry id="netstat">
|
---|
265 | <term><command>netstat</command></term>
|
---|
266 | <listitem>
|
---|
267 | <para>is used to report network connections, routing tables, and interface
|
---|
268 | statistics.</para>
|
---|
269 | <indexterm zone="net-tools netstat">
|
---|
270 | <primary sortas="b-netstat">netstat</primary>
|
---|
271 | </indexterm>
|
---|
272 | </listitem>
|
---|
273 | </varlistentry>
|
---|
274 |
|
---|
275 | <varlistentry id="nisdomainname">
|
---|
276 | <term><command>nisdomainname</command></term>
|
---|
277 | <listitem>
|
---|
278 | <para>does the same as <command>domainname</command>.</para>
|
---|
279 | <indexterm zone="net-tools nisdomainname">
|
---|
280 | <primary sortas="b-nisdomainname">nisdomainname</primary>
|
---|
281 | </indexterm>
|
---|
282 | </listitem>
|
---|
283 | </varlistentry>
|
---|
284 |
|
---|
285 | <varlistentry id="plipconfig">
|
---|
286 | <term><command>plipconfig</command></term>
|
---|
287 | <listitem>
|
---|
288 | <para>is used to fine tune the PLIP device parameters, to
|
---|
289 | improve its performance.</para>
|
---|
290 | <indexterm zone="net-tools plipconfig">
|
---|
291 | <primary sortas="b-plipconfig">plipconfig</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 |
|
---|
296 | <varlistentry id="rarp">
|
---|
297 | <term><command>rarp</command></term>
|
---|
298 | <listitem>
|
---|
299 | <para>is used to manipulate the kernel's RARP table.</para>
|
---|
300 | <indexterm zone="net-tools rarp">
|
---|
301 | <primary sortas="b-rarp">rarp</primary>
|
---|
302 | </indexterm>
|
---|
303 | </listitem>
|
---|
304 | </varlistentry>
|
---|
305 |
|
---|
306 | <varlistentry id="route">
|
---|
307 | <term><command>route</command></term>
|
---|
308 | <listitem>
|
---|
309 | <para>is used to manipulate the IP routing table.</para>
|
---|
310 | <indexterm zone="net-tools route">
|
---|
311 | <primary sortas="b-route">route</primary>
|
---|
312 | </indexterm>
|
---|
313 | </listitem>
|
---|
314 | </varlistentry>
|
---|
315 |
|
---|
316 | <varlistentry id="slattach">
|
---|
317 | <term><command>slattach</command></term>
|
---|
318 | <listitem>
|
---|
319 | <para>attaches a network interface to a serial line. This allows you to use
|
---|
320 | normal terminal lines for point-to-point links to other computers.</para>
|
---|
321 | <indexterm zone="net-tools slattach">
|
---|
322 | <primary sortas="b-slattach">slattach</primary>
|
---|
323 | </indexterm>
|
---|
324 | </listitem>
|
---|
325 | </varlistentry>
|
---|
326 |
|
---|
327 | <varlistentry id="ypdomainname">
|
---|
328 | <term><command>ypdomainname</command></term>
|
---|
329 | <listitem>
|
---|
330 | <para>does the same as <command>domainname</command>.</para>
|
---|
331 | <indexterm zone="net-tools ypdomainname">
|
---|
332 | <primary sortas="b-ypdomainname">ypdomainname</primary>
|
---|
333 | </indexterm>
|
---|
334 | </listitem>
|
---|
335 | </varlistentry>
|
---|
336 |
|
---|
337 | </variablelist>
|
---|
338 |
|
---|
339 | </sect2>
|
---|
340 |
|
---|
341 | </sect1>
|
---|