source: networking/netprogs/net-tools.xml@ 72592375

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 72592375 was 72592375, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Tags, test suite updates for llvm/valgrind, and a typo fix

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23541 af4574ff-66df-0310-9fd7-8a98e5e911e0

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