Commit | Line | Data |
---|---|---|
9aecb40e KM |
1 | .\" Copyright (c) 1985 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
5 | .\" @(#)ping.8 6.1 (Berkeley) %G% | |
6 | .\" | |
7 | .TH PING 8 "" | |
8 | .UC 6 | |
9 | .SH NAME | |
10 | ping \- send ICMP ECHO_REQUEST packets to network hosts | |
11 | .SH SYNOPSIS | |
12 | .B /etc/ping | |
13 | .B host | |
14 | [ | |
15 | .B packetsize | |
16 | ] | |
17 | .SH DESCRIPTION | |
18 | The ARPA InterNet is a large and complex aggregation of | |
19 | network hardware, connected together by gateways. | |
20 | Tracking a single-point hardware or software failure | |
21 | can often be difficult. | |
22 | .I Ping | |
23 | utilizes the mandatory | |
24 | ICMP protocol's ECHO_REQUEST datagram to elicit an | |
25 | ICMP ECHO_RESPONSE from a distant host or gateway. | |
26 | ECHO_REQUEST datagrams (``pings'') have an IP and ICMP header, | |
27 | followed by a \fBstruct timeval\fR, and then an arbitrary number | |
28 | of ``pad'' bytes used to fill out the packet. | |
29 | Default datagram length is 64 bytes, but this may be changed | |
30 | using the command-line option. | |
31 | .PP | |
32 | When using \fIping\fR for fault isolation, | |
33 | it should first be run on the local | |
34 | host, to verify that the local network interface is up and | |
35 | running. Then, hosts and gateways further and further away | |
36 | should be ``pinged''. A lack of output from the \fIping\fR | |
37 | program indicates no response; in normal operation, | |
38 | \fIping\fR sends one datagram per second, and | |
39 | prints one line of output for every ECHO_RESPONSE returned. | |
40 | Round-trip times and packet loss statistics are computed. | |
41 | If the program is terminated with a SIGINT, a brief | |
42 | summary is displayed. | |
43 | .SH AUTHOR | |
44 | Mike Muuss | |
45 | .SH SEE ALSO | |
46 | netstat(8), | |
47 | ifconfig(5) |