source: networking/netprogs/net-tools.xml@ 45ab6c7

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 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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