⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 662-663.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Networking</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=37//-->

<!--PAGES=662-663//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="659-661.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch38/665-667.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077">ping</FONT></H4>

<P>The <TT>ping</TT> (Packet Internet Groper) program is used to query another system and ensure a connection is active. The <TT>ping</TT> program operates by sending a request to the destination machine for a reply. If the destination machine&#146;s IP software receives the request, it issues a reply immediately.</P>

<P>The sending machine continues to send requests until the <TT>ping</TT> program is terminated with a break sequence. After termination, <TT>ping</TT> displays a set of statistics. A sample <TT>ping</TT> session is shown as follows:</P>

<!-- CODE //-->

<PRE>

prudie&gt; ping merlin

PING merlin: 64 data bytes

64 bytes from 142.12.130.12: icmp_seq=0.  time=20. ms

64 bytes from 142.12.130.12: icmp_seq=1.  time=10. ms

64 bytes from 142.12.130.12: icmp_seq=2.  time=10. ms

64 bytes from 142.12.130.12: icmp_seq=3.  time=20. ms

64 bytes from 142.12.130.12: icmp_seq=4.  time=10. ms

64 bytes from 142.12.130.12: icmp_seq=5.  time=10. ms

64 bytes from 142.12.130.12: icmp_seq=6.  time=10. ms

--- merlin PING Statistics ---

7 packets transmitted, 7 packets received, 0% packet loss

round-trip &#150; min/avg/max = 10/12/20

</PRE>

<!-- END CODE //-->

<P>If <TT>ping</TT> was unable to reach the remote machine, it displays error messages. You can also <TT>ping</TT> the <TT>localhost</TT>, which shows if there is an error in the loopback driver configuration files.</P>

<P>The <TT>ping</TT> program is useful because it provides four important pieces of information: whether the TCP/IP software is functioning correctly, whether a local network device can be addressed (validating its address), whether a remote machine can be accessed (again validating the address and testing the routing), and verifying the software on the remote machine.</P>

<H3><A NAME="Heading11"></A><FONT COLOR="#000077">Summary</FONT></H3>

<P>In this chapter, you&#146;ve seen how to install, configure, and test Ethernet connections to your Linux machine. The next chapter looks at the SLIP and PPP protocols used by many Linux boxes to connect to an ISP. The only other networking process usually found on a Linux box uses UUCP (UNIX-to-UNIX Copy), which is described in Chapter 44, &#147;NIS and YP.&#148;

</P>

<P>If you want to install a network to connect several of your machines (assuming you have more than one), you will find it quite easy and useful. If you have two machines, it is fast and efficient to connect a Linux machine and a DOS or Windows machine, as long as the other machine is running TCP/IP. There are shareware versions of TCP/IP for Windows and many commercial implementations for both DOS and Windows.</P>

<P>From here, you can read the next chapter which introduces SLIP and PPP or jump ahead to find out:</P>

<DL>

<DD>How to configure networks for proper security in Chapter 42, &#147;Network Security.&#148;

<DD>How to configure NFS, NIS, and YP in Chapters 43, &#147;NFS,&#148; and 44, &#147;NIS and YP,&#148; respectively.

<DD>How to set up an Internet site with your Linux now-networked system in Chapter 47, &#147;Setting up an Internet Site.&#148;

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="659-661.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch38/665-667.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -