📄 net-tools.html
字号:
<HTML><HEAD><TITLE>Installing Net-tools-1.60</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Installing basic system software"HREF="../chapter06/chapter06.html"><LINKREL="PREVIOUS"TITLE="Installing Sh-utils-2.0"HREF="../chapter06/sh-utils.html"><LINKREL="NEXT"TITLE="Installing Shadow-20001016"HREF="../chapter06/shadow.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter06/sh-utils.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 6. Installing basic system software</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter06/shadow.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch06-nettools">6.48. Installing Net-tools-1.60</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time: 1 minuteEstimated required disk space: 5 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3503">6.48.1. Installation of Net-tools</A></H2><P>Install Net-tools by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>make &&make update</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3509">6.48.2. Command explanations</A></H2><P><TTCLASS="userinput"><B>make update:</B></TT> This does the same as a<TTCLASS="userinput"><B>make install</B></TT> with the exception that make updatedoesn't make backups of files it's replacing. One of the thingsnet-tools replaces is sh-utils's version of<TTCLASS="filename">/bin/hostname</TT> (net-tools's version is far betterthan sh-utils's version).</P><P>Also, if you decide to reinstall this package at some point in thefuture, a <TTCLASS="userinput"><B>make update</B></TT> won't backup all the filesfrom a previous net-tools installation.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3517">6.48.3. Contents</A></H2><P>The Net-tools package contains the arp, hostname, ifconfig, netstat, plipconfig, rarp, route, and slattach programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3520">6.48.4. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3522">6.48.4.1. arp</A></H3><P>arp is used to manipulate the kernel's ARP cache, usually to addor delete an entry, or to dump the ARP cache.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3525">6.48.4.2. hostname</A></H3><P>hostname, with its symlinks domainname, dnsdomainname, nisdomainname,ypdomainname, and nodename, is used to set or show the system's hostname (orother, depending on the symlink used).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3528">6.48.4.3. ifconfig</A></H3><P>The ifconfig command is the general command used to configure networkinterfaces.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3531">6.48.4.4. netstat</A></H3><P>netstat is a multi-purpose tool used to print the network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3534">6.48.4.5. plipconfig</A></H3><P>plipconfig is used to fine-tune the PLIP device parameters, hopefully making it faster.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3537">6.48.4.6. rarp</A></H3><P>Akin to the arp program, the rarp program manipulates the system's RARP table.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3540">6.48.4.7. route</A></H3><P>route is the general utility which is used to manipulate the IP routing table.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3543">6.48.4.8. slattach</A></H3><P>slattach attaches a network interface to a serial line, i.e.. puts a normal terminal line into one of several "network" modes.</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3546">6.48.5. Dependencies</A></H2><P>Net-tools-1.60 needs the following to be installed:</P><PCLASS="literallayout"><br>bash from the bash package<br>sh from the bash package<br><br>ar from the binutils package<br>as from the binutils package<br>ld from the binutils package<br><br>install from the fileutils package<br>ln from the fileutils package<br>rm from the fileutils package<br><br>msgfmt from the gettext package<br><br>cc from the gcc package<br><br>make from the make package<br><br>basename from the sh-utils package<br>echo from the sh-utils package<br>env from the sh-utils package<br></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter06/sh-utils.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter06/shadow.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Sh-utils-2.0</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter06/chapter06.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing Shadow-20001016</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -