source: networking/netprogs/net-tools.xml@ 0f9076d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0f9076d was e7ffe884, checked in by Chris Staub <chris@…>, 13 years ago

hostname now installed by Inetutils, not Coreutils, in LFS

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

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