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

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 c628659 was c628659, checked in by Randy McMurchy <randy@…>, 20 years ago

Added patches and modified the build instructions for Net-tools; updated Glossary

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