source: basicnet/netprogs/net-tools.xml@ f5f7f9d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 f5f7f9d was f5f7f9d, checked in by Randy McMurchy <randy@…>, 19 years ago

Added md5sums to Chapter 18 package instructions

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

  • Property mode set to 100644
File size: 8.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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.10 SBU">
14 <!ENTITY lfs-coreutils-version "5.2.1">
15]>
16
17<sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
18<sect1info>
19<othername>$LastChangedBy$</othername>
20<date>$Date$</date>
21</sect1info>
22<?dbhtml filename="net-tools.html"?>
23<title>Net-tools-&net-tools-version;</title>
24
25<sect2>
26<title>Introduction to <application>Net-tools</application></title>
27
28<para>The <application>Net-tools</application> package is a collection
29of programs for controlling the network subsystem of the Linux
30kernel.</para>
31
32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP):
35<ulink url="&net-tools-download-http;"/></para></listitem>
36<listitem><para>Download (FTP):
37<ulink url="&net-tools-download-ftp;"/></para></listitem>
38<listitem><para>Download MD5 sum (HTTP):
39&net-tools-md5sum-http;</para></listitem>
40<listitem><para>Download MD5 sum (FTP):
41&net-tools-md5sum-ftp;</para></listitem>
42<listitem><para>Download size: &net-tools-size;</para></listitem>
43<listitem><para>Estimated disk space required:
44&net-tools-buildsize;</para></listitem>
45<listitem><para>Estimated build time:
46&net-tools-time;</para></listitem></itemizedlist>
47</sect3>
48
49<sect3><title>Additional downloads</title>
50<itemizedlist spacing="compact">
51<listitem><para>Required Patch (if compiled using
52<application>GCC</application>-3.4.x): <ulink
53url="&patch-root;/net-tools-&net-tools-version;-gcc34-3.patch"/></para>
54</listitem>
55<listitem><para>Required Patch: <ulink
56url="&patch-root;/net-tools-&net-tools-version;-kernel_headers-2.patch"/></para>
57</listitem>
58<listitem><para>Required Patch: <ulink
59url="&patch-root;/net-tools-&net-tools-version;-mii_ioctl-1.patch"/></para>
60</listitem></itemizedlist>
61</sect3>
62
63</sect2>
64
65<sect2>
66<title>Installation of <application>Net-tools</application></title>
67
68<note><para>The <application>Net-tools</application> package installs a
69<command>hostname</command> program which will overwrite the existing program
70installed by <application>Coreutils</application> during a base
71<acronym>LFS</acronym> installation. If, for whatever reason, you need to
72reinstall the <application>Coreutils</application> package after installing
73<application>Net-tools</application>, you should use the
74<filename>coreutils-&lfs-coreutils-version;-suppress_hostname_uptime_kill_su-1.patch</filename>
75patch if you wish to preserve the <application>Net-tools</application>
76<command>hostname</command> program.</para></note>
77
78<para>If you don't know what to answer to all the questions asked during
79the <command>make config</command> phase below, then just accept the
80defaults (the build command below automates this). This will be just fine
81in the majority of cases. What you're
82asked here is a bunch of questions about which network protocols you've
83enabled in your kernel. The default answers will enable the tools from
84this package to work with the most common protocols:
85<acronym>TCP</acronym>, <acronym>PPP</acronym>, and several others. You
86still need to actually enable these protocols in the kernel&mdash;what you
87do here is merely telling the package to include support for those
88protocols in its programs, but it's up to the kernel to make the
89protocols available.</para>
90
91<para>Install <application>Net-tools</application> by running the
92following commands:</para>
93
94<screen><userinput><command>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &amp;&amp;
95patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &amp;&amp;
96patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &amp;&amp;
97yes "" | make config &amp;&amp;
98sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
99 -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &amp;&amp;
100sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
101 -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &amp;&amp;
102make &amp;&amp;
103make update</command></userinput></screen>
104
105</sect2>
106
107<sect2>
108<title>Command explanations</title>
109
110<para><command>yes "" | make config</command>: Piping <command>yes</command>
111to <command>make config</command> skips the interactive configuration and
112accepts the defaults.</para>
113
114<para><command>sed -i -e ...</command>: These two <command>sed</command>s
115change the configuration files to force building the
116<command>ipmaddr</command>, <command>iptunnel</command> and
117<command>mii-tool</command> programs.</para>
118</sect2>
119
120<sect2>
121<title>Contents</title>
122
123<para>The <application>Net-tools</application> package contains
124<command>arp</command>,
125<command>dnsdomainname</command>,
126<command>domainname</command>,
127<command>hostname</command>,
128<command>ifconfig</command>,
129<command>ipmaddr</command>,
130<command>iptunnel</command>,
131<command>mii-tool</command>,
132<command>nameif</command>,
133<command>netstat</command>,
134<command>nisdomainname</command>,
135<command>plipconfig</command>,
136<command>rarp</command>,
137<command>route</command>,
138<command>slattach</command> and
139<command>ypdomainname</command>.</para>
140
141</sect2>
142
143<sect2><title>Description</title>
144
145<sect3><title>arp</title>
146<para><command>arp</command>
147is used to manipulate the kernel's <acronym>ARP</acronym> cache, usually
148to add or delete an entry, or to dump the entire cache.
149</para></sect3>
150
151<sect3><title>dnsdomainname</title>
152<para><command>dnsdomainname</command>
153reports the system's <acronym>DNS</acronym> domain name.
154</para></sect3>
155
156<sect3><title>domainname</title>
157<para><command>domainname</command>
158reports or sets the system's
159<acronym>NIS</acronym>/<acronym>YP</acronym> domain name.
160</para></sect3>
161
162<sect3><title>hostname</title>
163<para><command>hostname</command>
164reports or sets the name of the current host system.
165</para></sect3>
166
167<sect3><title>ifconfig</title>
168<para><command>ifconfig</command>
169is the main utility for configuring network interfaces.
170</para></sect3>
171
172<sect3><title>ipmaddr</title>
173<para><command>ipmaddr</command>
174adds, deletes and shows an interface's multicast addresses.
175</para></sect3>
176
177<sect3><title>iptunnel</title>
178<para><command>iptunnel</command>
179adds, changes, deletes and shows an interface's tunnels.
180</para></sect3>
181
182<sect3><title>mii-tool</title>
183<para><command>mii-tool</command>
184checks or sets the status of a network interface's Media Independent
185Interface (<acronym>MII</acronym>) unit.
186</para></sect3>
187
188<sect3><title>nameif</title>
189<para><command>nameif</command>
190names network interfaces based on <acronym>MAC</acronym> addresses.
191</para></sect3>
192
193<sect3><title>netstat</title>
194<para><command>netstat</command>
195is used to report network connections, routing tables, and interface
196statistics.
197</para></sect3>
198
199<sect3><title>nisdomainname</title>
200<para><command>nisdomainname</command>
201does the same as <command>domainname</command>.
202</para></sect3>
203
204<sect3><title>plipconfig</title>
205<para><command>plipconfig</command>
206is used to fine tune the <acronym>PLIP</acronym> device parameters, to
207improve its performance.
208</para></sect3>
209
210<sect3><title>rarp</title>
211<para><command>rarp</command>
212is used to manipulate the kernel's <acronym>RARP</acronym> table.
213</para></sect3>
214
215<sect3><title>route</title>
216<para><command>route</command>
217is used to manipulate the <acronym>IP</acronym> routing table.
218</para></sect3>
219
220<sect3><title>slattach</title>
221<para><command>slattach</command>
222attaches a network interface to a serial line. This allows you to use
223normal terminal lines for point-to-point links to other computers.
224</para></sect3>
225
226<sect3><title>ypdomainname</title>
227<para><command>ypdomainname</command>
228does the same as <command>domainname</command>.
229</para></sect3>
230
231</sect2>
232
233</sect1>
Note: See TracBrowser for help on using the repository browser.