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