source: basicnet/netprogs/net-tools.xml@ 4273fa7f

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 4273fa7f was 4273fa7f, checked in by Randy McMurchy <randy@…>, 17 years ago

Clarified need for kernel_headers patch in Net-tools instructions

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

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