xref: /freebsd/sbin/ping/ping.8 (revision 83e6667726ded12b3abce63bf15641cd8a94a47c)
18fae3551SRodney W. Grimes.\" Copyright (c) 1985, 1991, 1993
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
68fae3551SRodney W. Grimes.\" are met:
78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
88fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
108fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
118fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
138fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
148fae3551SRodney W. Grimes.\"    without specific prior written permission.
158fae3551SRodney W. Grimes.\"
168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
198fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
268fae3551SRodney W. Grimes.\" SUCH DAMAGE.
278fae3551SRodney W. Grimes.\"
288fae3551SRodney W. Grimes.\"     @(#)ping.8	8.2 (Berkeley) 12/11/93
297f3dea24SPeter Wemm.\" $FreeBSD$
308fae3551SRodney W. Grimes.\"
31d2624517SAlan Somers.Dd November 26, 2020
328fae3551SRodney W. Grimes.Dt PING 8
339fe48c6eSRuslan Ermilov.Os
348fae3551SRodney W. Grimes.Sh NAME
358fae3551SRodney W. Grimes.Nm ping
368fae3551SRodney W. Grimes.Nd send
373cde9171SAlan Somers.Tn ICMP
383cde9171SAlan Somersor
393cde9171SAlan Somers.Tn ICMPv6 ECHO_REQUEST
408fae3551SRodney W. Grimespackets to network hosts
418fae3551SRodney W. Grimes.Sh SYNOPSIS
427c7fb079SRuslan Ermilov.Nm
433cde9171SAlan Somers.Op Fl 4AaDdfHnoQqRrv
4481a6f4c7SRichard Scheffenegger.Op Fl C Ar pcp
458fae3551SRodney W. Grimes.Op Fl c Ar count
469ff95228SGleb Smirnoff.Op Fl G Ar sweepmaxsize
479ff95228SGleb Smirnoff.Op Fl g Ar sweepminsize
489ff95228SGleb Smirnoff.Op Fl h Ar sweepincrsize
498fae3551SRodney W. Grimes.Op Fl i Ar wait
508fae3551SRodney W. Grimes.Op Fl l Ar preload
511bd10ba2SRuslan Ermilov.Op Fl M Cm mask | time
52211bfbd2SRuslan Ermilov.Op Fl m Ar ttl
539a4365d0SYoshinobu Inoue.Op Fl P Ar policy
541f6a4631SRuslan Ermilov.Op Fl p Ar pattern
5599490edeSWarner Losh.Op Fl S Ar src_addr
561f6a4631SRuslan Ermilov.Op Fl s Ar packetsize
57bf113f1bSBill Fumerola.Op Fl t Ar timeout
58d6cd1497SGleb Smirnoff.Op Fl W Ar waittime
590b2f8b3fSMaxim Konovalov.Op Fl z Ar tos
603cde9171SAlan Somers.Ar IPv4-host
611bd10ba2SRuslan Ermilov.Nm
623cde9171SAlan Somers.Op Fl 4AaDdfHLnoQqRrv
6381a6f4c7SRichard Scheffenegger.Op Fl C Ar pcp
641bd10ba2SRuslan Ermilov.Op Fl c Ar count
651bd10ba2SRuslan Ermilov.Op Fl I Ar iface
661bd10ba2SRuslan Ermilov.Op Fl i Ar wait
671bd10ba2SRuslan Ermilov.Op Fl l Ar preload
681bd10ba2SRuslan Ermilov.Op Fl M Cm mask | time
691bd10ba2SRuslan Ermilov.Op Fl m Ar ttl
701bd10ba2SRuslan Ermilov.Op Fl P Ar policy
711bd10ba2SRuslan Ermilov.Op Fl p Ar pattern
721bd10ba2SRuslan Ermilov.Op Fl S Ar src_addr
731bd10ba2SRuslan Ermilov.Op Fl s Ar packetsize
74f78ac61bSWarner Losh.Op Fl T Ar ttl
751bd10ba2SRuslan Ermilov.Op Fl t Ar timeout
76d6cd1497SGleb Smirnoff.Op Fl W Ar waittime
771bd10ba2SRuslan Ermilov.Op Fl z Ar tos
783cde9171SAlan Somers.Ar IPv4-mcast-group
793cde9171SAlan Somers.Nm
803cde9171SAlan Somers.Op Fl 6AaDdEfHNnOoquvYyZ
813cde9171SAlan Somers.Op Fl b Ar bufsiz
823cde9171SAlan Somers.Op Fl c Ar count
833cde9171SAlan Somers.Op Fl e Ar gateway
843cde9171SAlan Somers.Op Fl I Ar interface
853cde9171SAlan Somers.Op Fl i Ar wait
863cde9171SAlan Somers.Op Fl k Ar addrtype
873cde9171SAlan Somers.Op Fl l Ar preload
883cde9171SAlan Somers.Op Fl m Ar hoplimit
893cde9171SAlan Somers.Op Fl P Ar policy
903cde9171SAlan Somers.Op Fl p Ar pattern
913cde9171SAlan Somers.Op Fl S Ar sourceaddr
923cde9171SAlan Somers.Op Fl s Ar packetsize
933cde9171SAlan Somers.Op Fl t Ar timeout
943cde9171SAlan Somers.Op Fl W Ar waittime
953cde9171SAlan Somers.Op Ar IPv6-hops ...
963cde9171SAlan Somers.Ar IPv6-host
978fae3551SRodney W. Grimes.Sh DESCRIPTION
98e1205e80SPhilippe CharnierThe
99e1205e80SPhilippe Charnier.Nm
1003cde9171SAlan Somersutility invoked with an IPv4 target
1013cde9171SAlan Somers.Ns ( Ar IPv4-host No or Ar IPv4-mcast-group Ns )
1023cde9171SAlan Somersuses the
1038fae3551SRodney W. Grimes.Tn ICMP
10450ceac88SJohn-Mark Gurney.No protocol Ap s mandatory
1058fae3551SRodney W. Grimes.Tn ECHO_REQUEST
1068fae3551SRodney W. Grimesdatagram to elicit an
1078fae3551SRodney W. Grimes.Tn ICMP ECHO_RESPONSE
1088fae3551SRodney W. Grimesfrom a host or gateway.
1098fae3551SRodney W. Grimes.Tn ECHO_REQUEST
11050ceac88SJohn-Mark Gurneydatagrams
11150ceac88SJohn-Mark Gurney.Pq Dq pings
11250ceac88SJohn-Mark Gurneyhave an IP and
1138fae3551SRodney W. Grimes.Tn ICMP
11450ceac88SJohn-Mark Gurneyheader, followed by a
1158fae3551SRodney W. Grimes.Dq struct timeval
11650ceac88SJohn-Mark Gurneyand then an arbitrary number of
11750ceac88SJohn-Mark Gurney.Dq pad
1181f6a4631SRuslan Ermilovbytes used to fill out the packet.
1193cde9171SAlan Somers.Pp
1203cde9171SAlan SomersWhen invoked with an IPv6 target
1213cde9171SAlan Somers.Ns ( Ar IPv6-host Ns ) Ns ,
1223cde9171SAlan Somersit uses the
1233cde9171SAlan Somers.Tn ICMPv6
1243cde9171SAlan Somersprotocol's mandatory
1253cde9171SAlan Somers.Tn ICMP6_ECHO_REQUEST
1263cde9171SAlan Somersdatagram to elicit an
1273cde9171SAlan Somers.Tn ICMP6_ECHO_REPLY
1283cde9171SAlan Somers.Ns .
1293cde9171SAlan Somers.Tn ICMP6_ECHO_REQUEST
1303cde9171SAlan Somersdatagrams have an IPv6 header and
1313cde9171SAlan Somers.Tn ICMPv6
1323cde9171SAlan Somersheader formatted as documented in RFC 2463.
1333cde9171SAlan Somers.Pp
1344ddfc27eSGordon BerglingWhen invoked with a hostname, the version to which the target is resolved first is used.
1354ddfc27eSGordon BerglingIn that case, the options and arguments used must be valid for the specific IP version, otherwise
1363cde9171SAlan Somers.Nm
1374ddfc27eSGordon Berglingexits with an error.
1384ddfc27eSGordon BerglingIf the target is resolved to both IPv4 and IPv6, the specific IP version can be requested by
1393cde9171SAlan Somers.Fl 4
1403cde9171SAlan Somersor
1413cde9171SAlan Somers.Fl 6
1423cde9171SAlan Somersoptions, respectively.
143d2624517SAlan SomersFor backwards-compatibility, ICMPv6 can also be selected by invoking the binary
144d2624517SAlan Somersas
145d2624517SAlan Somers.Nm ping6 .
1463cde9171SAlan Somers.Ss Options common to both IPv4 and IPv6 targets
147e345a80dSPhilippe Charnier.Bl -tag -width indent
148ca517ad8SPoul-Henning Kamp.It Fl A
149ca517ad8SPoul-Henning KampAudible.
15025107197SIan DowseOutput a bell
151c4d9468eSRuslan Ermilov.Tn ( ASCII
152c4d9468eSRuslan Ermilov0x07)
15325107197SIan Dowsecharacter when no packet is received before the next packet
154ca517ad8SPoul-Henning Kampis transmitted.
15525107197SIan DowseTo cater for round-trip times that are longer than the interval
15625107197SIan Dowsebetween transmissions, further missing packets cause a bell only
15725107197SIan Dowseif the maximum number of unreceived packets has increased.
158772dfa72SDaniel O'Callaghan.It Fl a
159ef8f7ac9SSheldon HearnAudible.
160ef8f7ac9SSheldon HearnInclude a bell
161c4d9468eSRuslan Ermilov.Tn ( ASCII
162c4d9468eSRuslan Ermilov0x07)
163ef8f7ac9SSheldon Hearncharacter in the output when any packet is received.
16481a6f4c7SRichard Scheffenegger.It Fl C Ar pcp
16581a6f4c7SRichard ScheffeneggerAdd an 802.1p Ethernet Priority Code Point when sending a packet.
16681a6f4c7SRichard Scheffenegger0..7 uses that specific PCP, -1 uses the interface default PCP (or none).
1678fae3551SRodney W. Grimes.It Fl c Ar count
16850ceac88SJohn-Mark GurneyStop after sending
169c4d9468eSRuslan Ermilov(and receiving)
1708fae3551SRodney W. Grimes.Ar count
1718fae3551SRodney W. Grimes.Tn ECHO_RESPONSE
1720ed77db8SBruce Evanspackets.
1730ed77db8SBruce EvansIf this option is not specified,
1740ed77db8SBruce Evans.Nm
1750ed77db8SBruce Evanswill operate until interrupted.
1763cde9171SAlan Somers.Pp
1773cde9171SAlan SomersFor an IPv4 target, if this option is specified in conjunction with ping sweeps,
1789ff95228SGleb Smirnoffeach sweep will consist of
1799ff95228SGleb Smirnoff.Ar count
1809ff95228SGleb Smirnoffpackets.
1811f6a4631SRuslan Ermilov.It Fl D
1823cde9171SAlan SomersDisable fragmentation.
1838fae3551SRodney W. Grimes.It Fl d
1848fae3551SRodney W. GrimesSet the
1858fae3551SRodney W. Grimes.Dv SO_DEBUG
1868fae3551SRodney W. Grimesoption on the socket being used.
1878fae3551SRodney W. Grimes.It Fl f
1888fae3551SRodney W. GrimesFlood ping.
1898fae3551SRodney W. GrimesOutputs packets as fast as they come back or one hundred times per second,
1908fae3551SRodney W. Grimeswhichever is more.
1918fae3551SRodney W. GrimesFor every
1928fae3551SRodney W. Grimes.Tn ECHO_REQUEST
19350ceac88SJohn-Mark Gurneysent a period
1941252c1bbSRuslan Ermilov.Dq .\&
19550ceac88SJohn-Mark Gurneyis printed, while for every
1968fae3551SRodney W. Grimes.Tn ECHO_REPLY
1970ed77db8SBruce Evansreceived a backspace is printed.
1988fae3551SRodney W. GrimesThis provides a rapid display of how many packets are being dropped.
1998fae3551SRodney W. GrimesOnly the super-user may use this option.
2008fae3551SRodney W. Grimes.Bf -emphasis
2018fae3551SRodney W. GrimesThis can be very hard on a network and should be used with caution.
2028fae3551SRodney W. Grimes.Ef
20399f13ae1SAlan Somers.It Fl H
20499f13ae1SAlan SomersHostname output.
20599f13ae1SAlan SomersTry to do a reverse DNS lookup when displaying addresses.
206299e2c58SAlan SomersThis is the opposite of the
207299e2c58SAlan Somers.Fl n
208299e2c58SAlan Somersoption.
2091bd10ba2SRuslan Ermilov.It Fl I Ar iface
2103cde9171SAlan SomersFor an IPv4 target,
2113cde9171SAlan Somers.Ar iface
2124ddfc27eSGordon Berglingis an IP address indentifying an interface from which the packets will be sent.
2134ddfc27eSGordon BerglingThis flag applies only if the ping target is a multicast address.
2143cde9171SAlan Somers.Pp
2153cde9171SAlan SomersFor an IPv6 target,
2163cde9171SAlan Somers.Ar iface
2174ddfc27eSGordon Berglingis a name of an interface (e.g. `em0') from which the packets will be sent.
2184ddfc27eSGordon BerglingThis flag applies if the ping target is a multicast address, or link-local/site-local
2194ddfc27eSGordon Berglingunicast address.
2208fae3551SRodney W. Grimes.It Fl i Ar wait
2218fae3551SRodney W. GrimesWait
2228fae3551SRodney W. Grimes.Ar wait
2238fae3551SRodney W. Grimesseconds
2248fae3551SRodney W. Grimes.Em between sending each packet .
2250ed77db8SBruce EvansThe default is to wait for one second between each packet.
2260ed77db8SBruce EvansThe wait time may be fractional, but only the super-user may specify
227074ad115SRuslan Ermilovvalues less than 1 second.
2280ed77db8SBruce EvansThis option is incompatible with the
2298fae3551SRodney W. Grimes.Fl f
2308fae3551SRodney W. Grimesoption.
2318fae3551SRodney W. Grimes.It Fl l Ar preload
2328fae3551SRodney W. GrimesIf
2338fae3551SRodney W. Grimes.Ar preload
2348fae3551SRodney W. Grimesis specified,
235e345a80dSPhilippe Charnier.Nm
2368fae3551SRodney W. Grimessends that many packets as fast as possible before falling into its normal
2378fae3551SRodney W. Grimesmode of behavior.
238ee2bf734SWarner LoshOnly the super-user may use this option.
2399b085129SMatthew N. Dodd.It Fl m Ar ttl
2403cde9171SAlan SomersFor an IPv4 target, set the IP Time To Live for outgoing packets.
2419b085129SMatthew N. DoddIf not specified, the kernel uses the value of the
2429b085129SMatthew N. Dodd.Va net.inet.ip.ttl
2439b085129SMatthew N. DoddMIB variable.
2443cde9171SAlan Somers.Pp
2453cde9171SAlan SomersFor an IPv6 target, set the IPv6 hoplimit.
2468fae3551SRodney W. Grimes.It Fl n
2478fae3551SRodney W. GrimesNumeric output only.
2488fae3551SRodney W. GrimesNo attempt will be made to lookup symbolic names for host addresses.
249299e2c58SAlan SomersThis is the opposite of
250299e2c58SAlan Somers.Fl H ,
251299e2c58SAlan Somersand it is the default behavior.
2528025c44bSDima Dorfman.It Fl o
2538025c44bSDima DorfmanExit successfully after receiving one reply packet.
2541f6a4631SRuslan Ermilov.It Fl P Ar policy
2551f6a4631SRuslan Ermilov.Ar policy
2561f6a4631SRuslan Ermilovspecifies IPsec policy for the ping session.
2571f6a4631SRuslan ErmilovFor details please refer to
2581f6a4631SRuslan Ermilov.Xr ipsec 4
2591f6a4631SRuslan Ermilovand
2601f6a4631SRuslan Ermilov.Xr ipsec_set_policy 3 .
2618fae3551SRodney W. Grimes.It Fl p Ar pattern
26250ceac88SJohn-Mark GurneyYou may specify up to 16
26350ceac88SJohn-Mark Gurney.Dq pad
26450ceac88SJohn-Mark Gurneybytes to fill out the packet you send.
2658fae3551SRodney W. GrimesThis is useful for diagnosing data-dependent problems in a network.
2668fae3551SRodney W. GrimesFor example,
2678fae3551SRodney W. Grimes.Dq Li \-p ff
2688fae3551SRodney W. Grimeswill cause the sent packet to be filled with all
2698fae3551SRodney W. Grimesones.
2703cde9171SAlan Somers.It Fl q
2713cde9171SAlan SomersQuiet output.
2723cde9171SAlan SomersNothing is displayed except the summary lines at startup time and
2733cde9171SAlan Somerswhen finished.
2743cde9171SAlan Somers.It Fl S Ar src_addr
2753cde9171SAlan SomersUse the following IP address as the source address in outgoing packets.
2763cde9171SAlan SomersOn hosts with more than one IP address, this option can be used to
2773cde9171SAlan Somersforce the source address to be something other than the IP address
2783cde9171SAlan Somersof the interface the probe packet is sent on.
2793cde9171SAlan Somers.Pp
2803cde9171SAlan SomersFor IPv4, if the IP address is not one of this machine's interface
2813cde9171SAlan Somersaddresses, an error is returned and nothing is sent.
2823cde9171SAlan Somers.Pp
2833cde9171SAlan SomersFor IPv6, the source address must be one of the unicast addresses of
2843cde9171SAlan Somersthe sending node, and must be numeric.
2853cde9171SAlan Somers.It Fl s Ar packetsize
2863cde9171SAlan SomersSpecify the number of data bytes to be sent.
2873cde9171SAlan SomersThe default is 56, which translates into 64
2883cde9171SAlan Somers.Tn ICMP
2893cde9171SAlan Somersdata bytes when combined
2903cde9171SAlan Somerswith the 8 bytes of
2913cde9171SAlan Somers.Tn ICMP
2923cde9171SAlan Somersheader data.
2933cde9171SAlan Somers.Pp
2943cde9171SAlan SomersFor IPv4, only the super-user may specify values more than default.
2953cde9171SAlan SomersThis option cannot be used with ping sweeps.
2963cde9171SAlan Somers.Pp
2973cde9171SAlan SomersFor IPv6, you may need to specify
2983cde9171SAlan Somers.Fl b
2993cde9171SAlan Somersas well to extend socket buffer size.
3003cde9171SAlan Somers.It Fl t Ar timeout
3013cde9171SAlan SomersSpecify a timeout, in seconds, before ping exits regardless of how
3023cde9171SAlan Somersmany packets have been received.
3033cde9171SAlan Somers.It Fl v
3043cde9171SAlan SomersVerbose output.
3053cde9171SAlan Somers.Tn ICMP
3063cde9171SAlan Somerspackets other than
3073cde9171SAlan Somers.Tn ECHO_RESPONSE
3083cde9171SAlan Somersthat are received are listed.
3093cde9171SAlan Somers.It Fl W Ar waittime
3103cde9171SAlan SomersTime in milliseconds to wait for a reply for each packet sent.
3113cde9171SAlan SomersIf a reply arrives later, the packet is not printed as replied, but
3123cde9171SAlan Somersconsidered as replied when calculating statistics.
3133cde9171SAlan Somers.El
3143cde9171SAlan Somers.Ss Options only for IPv4 targets
3153cde9171SAlan Somers.Bl -tag -width indent
3163cde9171SAlan Somers.It Fl 4
3173cde9171SAlan SomersUse IPv4 regardless of how the target is resolved.
3183cde9171SAlan Somers.It Fl G Ar sweepmaxsize
3193cde9171SAlan SomersSpecify the maximum size of
3203cde9171SAlan Somers.Tn ICMP
3213cde9171SAlan Somerspayload when sending sweeping pings.
3223cde9171SAlan SomersThis option is required for ping sweeps.
3233cde9171SAlan Somers.It Fl g Ar sweepminsize
3243cde9171SAlan SomersSpecify the size of
3253cde9171SAlan Somers.Tn ICMP
3263cde9171SAlan Somerspayload to start with when sending sweeping pings.
3273cde9171SAlan SomersThe default value is 0.
3283cde9171SAlan Somers.It Fl h Ar sweepincrsize
3293cde9171SAlan SomersSpecify the number of bytes to increment the size of
3303cde9171SAlan Somers.Tn ICMP
3313cde9171SAlan Somerspayload after
3323cde9171SAlan Somerseach sweep when sending sweeping pings.
3333cde9171SAlan SomersThe default value is 1.
3343cde9171SAlan Somers.It Fl L
3353cde9171SAlan SomersSuppress loopback of multicast packets.
3363cde9171SAlan SomersThis flag only applies if the ping destination is a multicast address.
3373cde9171SAlan Somers.It Fl M Cm mask | time
3383cde9171SAlan SomersUse
3393cde9171SAlan Somers.Dv ICMP_MASKREQ
3403cde9171SAlan Somersor
3413cde9171SAlan Somers.Dv ICMP_TSTAMP
3423cde9171SAlan Somersinstead of
3433cde9171SAlan Somers.Dv ICMP_ECHO .
3443cde9171SAlan SomersFor
3453cde9171SAlan Somers.Cm mask ,
3463cde9171SAlan Somersprint the netmask of the remote machine.
3473cde9171SAlan SomersSet the
3483cde9171SAlan Somers.Va net.inet.icmp.maskrepl
3493cde9171SAlan SomersMIB variable to enable
3503cde9171SAlan Somers.Dv ICMP_MASKREPLY
3513cde9171SAlan Somersand
3523cde9171SAlan Somers.Va net.inet.icmp.maskfake
3533cde9171SAlan Somersif you want to override the netmask in the response.
3543cde9171SAlan SomersFor
3553cde9171SAlan Somers.Cm time ,
3563cde9171SAlan Somersprint the origination, reception and transmission timestamps.
3573cde9171SAlan SomersSet the
3583cde9171SAlan Somers.Va net.inet.icmp.tstamprepl
3593cde9171SAlan SomersMIB variable to enable or disable
3603cde9171SAlan Somers.Dv ICMP_TSTAMPREPLY .
361ef9e6dc7SBill Fenner.It Fl Q
362ef9e6dc7SBill FennerSomewhat quiet output.
36350ceac88SJohn-Mark Gurney.No Don Ap t
36450ceac88SJohn-Mark Gurneydisplay ICMP error messages that are in response to our query messages.
365ef9e6dc7SBill FennerOriginally, the
366ef9e6dc7SBill Fenner.Fl v
367ef9e6dc7SBill Fennerflag was required to display such errors, but
368ef9e6dc7SBill Fenner.Fl v
3691f6a4631SRuslan Ermilovdisplays all ICMP error messages.
3701f6a4631SRuslan ErmilovOn a busy machine, this output can be overbearing.
3711f6a4631SRuslan ErmilovWithout the
372ef9e6dc7SBill Fenner.Fl Q
373ef9e6dc7SBill Fennerflag,
374ef9e6dc7SBill Fenner.Nm
375ef9e6dc7SBill Fennerprints out any ICMP error messages caused by its own ECHO_REQUEST
376ef9e6dc7SBill Fennermessages.
3778fae3551SRodney W. Grimes.It Fl R
3788fae3551SRodney W. GrimesRecord route.
3798fae3551SRodney W. GrimesIncludes the
3808fae3551SRodney W. Grimes.Tn RECORD_ROUTE
3818fae3551SRodney W. Grimesoption in the
3828fae3551SRodney W. Grimes.Tn ECHO_REQUEST
3838fae3551SRodney W. Grimespacket and displays
3848fae3551SRodney W. Grimesthe route buffer on returned packets.
38543470e3bSGarrett WollmanNote that the IP header is only large enough for nine such routes;
38643470e3bSGarrett Wollmanthe
38743470e3bSGarrett Wollman.Xr traceroute 8
38843470e3bSGarrett Wollmancommand is usually better at determining the route packets take to a
38943470e3bSGarrett Wollmanparticular destination.
390c03e877aSWarner LoshIf more routes come back than should, such as due to an illegal spoofed
391c03e877aSWarner Loshpacket, ping will print the route list and then truncate it at the correct
392c03e877aSWarner Loshspot.
39343470e3bSGarrett WollmanMany hosts ignore or discard the
39443470e3bSGarrett Wollman.Tn RECORD_ROUTE
39543470e3bSGarrett Wollmanoption.
3968fae3551SRodney W. Grimes.It Fl r
3978fae3551SRodney W. GrimesBypass the normal routing tables and send directly to a host on an attached
3988fae3551SRodney W. Grimesnetwork.
3998fae3551SRodney W. GrimesIf the host is not on a directly-attached network, an error is returned.
4008fae3551SRodney W. GrimesThis option can be used to ping a local host through an interface
40150ceac88SJohn-Mark Gurneythat has no route through it
402c4d9468eSRuslan Ermilov(e.g., after the interface was dropped by
403c4d9468eSRuslan Ermilov.Xr routed 8 ) .
40485456935SBill Fenner.It Fl T Ar ttl
40585456935SBill FennerSet the IP Time To Live for multicasted packets.
40685456935SBill FennerThis flag only applies if the ping destination is a multicast address.
4070b2f8b3fSMaxim Konovalov.It Fl z Ar tos
4080b2f8b3fSMaxim KonovalovUse the specified type of service.
4093cde9171SAlan Somers.It Ar IPv4-host
4103cde9171SAlan Somershostname or IPv4 address of the final destination node.
4113cde9171SAlan Somers.It Ar IPv4-mcast-group
4123cde9171SAlan SomersIPv4 multicast address of the final destination nodes.
4133cde9171SAlan Somers.El
4143cde9171SAlan Somers.Ss Options only for IPv6 targets
4153cde9171SAlan Somers.Bl -tag -width indent
4163cde9171SAlan Somers.It Fl 6
4173cde9171SAlan SomersUse IPv6 regardless of how the target is resolved.
4183cde9171SAlan Somers.It Fl b Ar bufsiz
4193cde9171SAlan SomersSet socket buffer size.
4203cde9171SAlan Somers.It Fl e Ar gateway
4213cde9171SAlan SomersSpecifies to use
4223cde9171SAlan Somers.Ar gateway
4233cde9171SAlan Somersas the next hop to the destination.
4243cde9171SAlan SomersThe gateway must be a neighbor of the sending node.
4253cde9171SAlan Somers.It Fl k Ar addrtype
4263cde9171SAlan SomersGenerate ICMPv6 Node Information Node Addresses query, rather than echo-request.
4273cde9171SAlan Somers.Ar addrtype
4283cde9171SAlan Somersmust be a string constructed of the following characters.
4293cde9171SAlan Somers.Bl -tag -width Ds -compact
4303cde9171SAlan Somers.It Ic a
4313cde9171SAlan Somersrequests unicast addresses from all of the responder's interfaces.
4323cde9171SAlan SomersIf the character is omitted,
4333cde9171SAlan Somersonly those addresses which belong to the interface which has the
4343cde9171SAlan Somersresponder's address are requests.
4353cde9171SAlan Somers.It Ic c
4363cde9171SAlan Somersrequests responder's IPv4-compatible and IPv4-mapped addresses.
4373cde9171SAlan Somers.It Ic g
4383cde9171SAlan Somersrequests responder's global-scope addresses.
4393cde9171SAlan Somers.It Ic s
4403cde9171SAlan Somersrequests responder's site-local addresses.
4413cde9171SAlan Somers.It Ic l
4423cde9171SAlan Somersrequests responder's link-local addresses.
4433cde9171SAlan Somers.It Ic A
4443cde9171SAlan Somersrequests responder's anycast addresses.
4453cde9171SAlan SomersWithout this character, the responder will return unicast addresses only.
4463cde9171SAlan SomersWith this character, the responder will return anycast addresses only.
4473cde9171SAlan SomersNote that the specification does not specify how to get responder's
4483cde9171SAlan Somersanycast addresses.
4493cde9171SAlan SomersThis is an experimental option.
4503cde9171SAlan Somers.El
4513cde9171SAlan Somers.It Fl N
4523cde9171SAlan SomersProbe node information multicast group address
4533cde9171SAlan Somers.Pq Li ff02::2:ffxx:xxxx .
4543cde9171SAlan Somers.Ar host
4553cde9171SAlan Somersmust be string hostname of the target
4563cde9171SAlan Somers(must not be a numeric IPv6 address).
4573cde9171SAlan SomersNode information multicast group will be computed based on given
4583cde9171SAlan Somers.Ar host ,
4593cde9171SAlan Somersand will be used as the final destination.
4603cde9171SAlan SomersSince node information multicast group is a link-local multicast group,
4613cde9171SAlan Somersoutgoing interface needs to be specified by
4623cde9171SAlan Somers.Fl I
4633cde9171SAlan Somersoption.
4643cde9171SAlan Somers.Pp
4653cde9171SAlan SomersWhen specified twice, the address
4663cde9171SAlan Somers.Pq Li ff02::2:xxxx:xxxx
4673cde9171SAlan Somersis used instead.
4683cde9171SAlan SomersThe former is in RFC 4620, the latter is in an old Internet Draft
4693cde9171SAlan Somersdraft-ietf-ipngwg-icmp-name-lookup.
4703cde9171SAlan SomersNote that KAME-derived implementations including
4713cde9171SAlan Somers.Fx
4723cde9171SAlan Somersuse the latter.
4733cde9171SAlan Somers.It Fl O
4743cde9171SAlan SomersGenerate ICMPv6 Node Information supported query types query,
4753cde9171SAlan Somersrather than echo-request.
4763cde9171SAlan Somers.Fl s
4773cde9171SAlan Somershas no effect if
4783cde9171SAlan Somers.Fl O
4793cde9171SAlan Somersis specified.
4803cde9171SAlan Somers.It Fl u
4813cde9171SAlan SomersBy default,
4823cde9171SAlan Somers.Nm
4833cde9171SAlan Somersasks the kernel to fragment packets to fit into the minimum IPv6 MTU.
4843cde9171SAlan SomersThe
4853cde9171SAlan Somers.Fl u
4863cde9171SAlan Somersoption
4873cde9171SAlan Somerswill suppress the behavior in the following two levels:
4883cde9171SAlan Somerswhen the option is specified once, the behavior will be disabled for
4893cde9171SAlan Somersunicast packets.
4903cde9171SAlan SomersWhen the option is more than once, it will be disabled for both
4913cde9171SAlan Somersunicast and multicast packets.
4923cde9171SAlan Somers.It Fl Y
4933cde9171SAlan SomersSame as
4943cde9171SAlan Somers.Fl y ,
4953cde9171SAlan Somersbut with old packet format based on 03 draft.
4963cde9171SAlan SomersThis option is present for backward compatibility.
4973cde9171SAlan Somers.Fl s
4983cde9171SAlan Somershas no effect if
4993cde9171SAlan Somers.Fl y
5003cde9171SAlan Somersis specified.
5013cde9171SAlan Somers.It Fl y
5023cde9171SAlan SomersGenerate ICMPv6 Node Information DNS Name query, rather than echo-request.
5033cde9171SAlan Somers.Fl s
5043cde9171SAlan Somershas no effect if
5053cde9171SAlan Somers.Fl y
5063cde9171SAlan Somersis specified.
5073cde9171SAlan Somers.It Ar IPv6-hops
5083cde9171SAlan SomersIPv6 addresses for intermediate nodes,
5093cde9171SAlan Somerswhich will be put into type 0 routing header.
5103cde9171SAlan Somers.It Ar IPv6-host
5113cde9171SAlan SomersIPv6 address of the final destination node.
5123cde9171SAlan Somers.El
5133cde9171SAlan Somers.Ss Experimental options only for IPv6 target
5143cde9171SAlan Somers.Bl -tag -width indent
5153cde9171SAlan Somers.It Fl E
5163cde9171SAlan SomersEnables transport-mode IPsec encapsulated security payload.
5173cde9171SAlan Somers.It Fl Z
5183cde9171SAlan SomersEnables transport-mode IPsec authentication header.
5198fae3551SRodney W. Grimes.El
5208fae3551SRodney W. Grimes.Pp
5218fae3551SRodney W. GrimesWhen using
52250ceac88SJohn-Mark Gurney.Nm
5238fae3551SRodney W. Grimesfor fault isolation, it should first be run on the local host, to verify
5248fae3551SRodney W. Grimesthat the local network interface is up and running.
52550ceac88SJohn-Mark GurneyThen, hosts and gateways further and further away should be
52650ceac88SJohn-Mark Gurney.Dq pinged .
5278fae3551SRodney W. GrimesRound-trip times and packet loss statistics are computed.
5288fae3551SRodney W. GrimesIf duplicate packets are received, they are not included in the packet
5298fae3551SRodney W. Grimesloss calculation, although the round trip time of these packets is used
5303109a910SGarrett Wollmanin calculating the round-trip time statistics.
53150ceac88SJohn-Mark GurneyWhen the specified number of packets have been sent
532c4d9468eSRuslan Ermilov(and received)
53350ceac88SJohn-Mark Gurneyor if the program is terminated with a
5348fae3551SRodney W. Grimes.Dv SIGINT ,
5353109a910SGarrett Wollmana brief summary is displayed, showing the number of packets sent and
536605af08dSMaxim Konovalovreceived, and the minimum, mean, maximum, and standard deviation of
5373109a910SGarrett Wollmanthe round-trip times.
5388fae3551SRodney W. Grimes.Pp
539605af08dSMaxim KonovalovIf
540605af08dSMaxim Konovalov.Nm
541605af08dSMaxim Konovalovreceives a
542605af08dSMaxim Konovalov.Dv SIGINFO
543605af08dSMaxim Konovalov(see the
544605af08dSMaxim Konovalov.Cm status
545605af08dSMaxim Konovalovargument for
546605af08dSMaxim Konovalov.Xr stty 1 )
547605af08dSMaxim Konovalovsignal, the current number of packets sent and received, and the
5483cde9171SAlan Somersminimum, mean, maximum, and standard deviation of the round-trip times
5493cde9171SAlan Somerswill be written to the standard output.
550605af08dSMaxim Konovalov.Pp
5518fae3551SRodney W. GrimesThis program is intended for use in network testing, measurement and
5528fae3551SRodney W. Grimesmanagement.
5538fae3551SRodney W. GrimesBecause of the load it can impose on the network, it is unwise to use
55450ceac88SJohn-Mark Gurney.Nm
5558fae3551SRodney W. Grimesduring normal operations or from automated scripts.
5568fae3551SRodney W. Grimes.Sh ICMP PACKET DETAILS
5578fae3551SRodney W. GrimesAn IP header without options is 20 bytes.
5588fae3551SRodney W. GrimesAn
5598fae3551SRodney W. Grimes.Tn ICMP
5608fae3551SRodney W. Grimes.Tn ECHO_REQUEST
56150ceac88SJohn-Mark Gurneypacket contains an additional 8 bytes worth of
5628fae3551SRodney W. Grimes.Tn ICMP
5638fae3551SRodney W. Grimesheader followed by an arbitrary amount of data.
5648fae3551SRodney W. GrimesWhen a
5658fae3551SRodney W. Grimes.Ar packetsize
56650ceac88SJohn-Mark Gurneyis given, this indicated the size of this extra piece of data
567c4d9468eSRuslan Ermilov(the default is 56).
5688fae3551SRodney W. GrimesThus the amount of data received inside of an IP packet of type
5698fae3551SRodney W. Grimes.Tn ICMP
5708fae3551SRodney W. Grimes.Tn ECHO_REPLY
5718fae3551SRodney W. Grimeswill always be 8 bytes more than the requested data space
572c4d9468eSRuslan Ermilov(the
573c4d9468eSRuslan Ermilov.Tn ICMP
574c4d9468eSRuslan Ermilovheader).
5758fae3551SRodney W. Grimes.Pp
5768fae3551SRodney W. GrimesIf the data space is at least eight bytes large,
57750ceac88SJohn-Mark Gurney.Nm
5788fae3551SRodney W. Grimesuses the first eight bytes of this space to include a timestamp which
5798fae3551SRodney W. Grimesit uses in the computation of round trip times.
5808fae3551SRodney W. GrimesIf less than eight bytes of pad are specified, no round trip times are
5818fae3551SRodney W. Grimesgiven.
5828fae3551SRodney W. Grimes.Sh DUPLICATE AND DAMAGED PACKETS
583e1205e80SPhilippe CharnierThe
584e1205e80SPhilippe Charnier.Nm
585e1205e80SPhilippe Charnierutility will report duplicate and damaged packets.
58685456935SBill FennerDuplicate packets should never occur when pinging a unicast address,
58785456935SBill Fennerand seem to be caused by
5888fae3551SRodney W. Grimesinappropriate link-level retransmissions.
58950ceac88SJohn-Mark GurneyDuplicates may occur in many situations and are rarely
590c4d9468eSRuslan Ermilov(if ever)
59150ceac88SJohn-Mark Gurneya good sign, although the presence of low levels of duplicates may not
5928fae3551SRodney W. Grimesalways be cause for alarm.
59385456935SBill FennerDuplicates are expected when pinging a broadcast or multicast address,
59485456935SBill Fennersince they are not really duplicates but replies from different hosts
59585456935SBill Fennerto the same request.
5968fae3551SRodney W. Grimes.Pp
5978fae3551SRodney W. GrimesDamaged packets are obviously serious cause for alarm and often
5988fae3551SRodney W. Grimesindicate broken hardware somewhere in the
599e345a80dSPhilippe Charnier.Nm
6003109a910SGarrett Wollmanpacket's path (in the network or in the hosts).
6018fae3551SRodney W. Grimes.Sh TRYING DIFFERENT DATA PATTERNS
60250ceac88SJohn-Mark GurneyThe
6033109a910SGarrett Wollman(inter)network
60450ceac88SJohn-Mark Gurneylayer should never treat packets differently depending on the data
60550ceac88SJohn-Mark Gurneycontained in the data portion.
6068fae3551SRodney W. GrimesUnfortunately, data-dependent problems have been known to sneak into
6078fae3551SRodney W. Grimesnetworks and remain undetected for long periods of time.
6088fae3551SRodney W. GrimesIn many cases the particular pattern that will have problems is something
6093109a910SGarrett Wollmanthat does not have sufficient
61050ceac88SJohn-Mark Gurney.Dq transitions ,
61150ceac88SJohn-Mark Gurneysuch as all ones or all zeros, or a pattern right at the edge, such as
61250ceac88SJohn-Mark Gurneyalmost all zeros.
6133109a910SGarrett WollmanIt is not
6143109a910SGarrett Wollmannecessarily enough to specify a data pattern of all zeros (for example)
61550ceac88SJohn-Mark Gurneyon the command line because the pattern that is of interest is
6168fae3551SRodney W. Grimesat the data link level, and the relationship between what you type and
6178fae3551SRodney W. Grimeswhat the controllers transmit can be complicated.
6188fae3551SRodney W. Grimes.Pp
6198fae3551SRodney W. GrimesThis means that if you have a data-dependent problem you will probably
6208fae3551SRodney W. Grimeshave to do a lot of testing to find it.
62150ceac88SJohn-Mark GurneyIf you are lucky, you may manage to find a file that either
6223109a910SGarrett Wollmancannot
62350ceac88SJohn-Mark Gurneybe sent across your network or that takes much longer to transfer than
62450ceac88SJohn-Mark Gurneyother similar length files.
6258fae3551SRodney W. GrimesYou can then examine this file for repeated patterns that you can test
6268fae3551SRodney W. Grimesusing the
6278fae3551SRodney W. Grimes.Fl p
6288fae3551SRodney W. Grimesoption of
6297c7fb079SRuslan Ermilov.Nm .
6303cde9171SAlan Somers.Sh IPv4 TTL DETAILS
6318fae3551SRodney W. GrimesThe
6328fae3551SRodney W. Grimes.Tn TTL
6338fae3551SRodney W. Grimesvalue of an IP packet represents the maximum number of IP routers
6348fae3551SRodney W. Grimesthat the packet can go through before being thrown away.
6358fae3551SRodney W. GrimesIn current practice you can expect each router in the Internet to decrement
6368fae3551SRodney W. Grimesthe
6378fae3551SRodney W. Grimes.Tn TTL
6388fae3551SRodney W. Grimesfield by exactly one.
6398fae3551SRodney W. Grimes.Pp
6408fae3551SRodney W. GrimesThe
6418fae3551SRodney W. Grimes.Tn TCP/IP
642a70dc556SRuslan Ermilovspecification recommends setting the
6438fae3551SRodney W. Grimes.Tn TTL
6448fae3551SRodney W. Grimesfield for
645a70dc556SRuslan Ermilov.Tn IP
646a70dc556SRuslan Ermilovpackets to 64, but many systems use smaller values
647c4d9468eSRuslan Ermilov.No ( Bx 4.3
6483109a910SGarrett Wollmanuses 30,
6493109a910SGarrett Wollman.Bx 4.2
650c4d9468eSRuslan Ermilovused 15).
6518fae3551SRodney W. Grimes.Pp
652e345a80dSPhilippe CharnierThe maximum possible value of this field is 255, and most
653e345a80dSPhilippe Charnier.Ux
654e345a80dSPhilippe Charniersystems set
6558fae3551SRodney W. Grimesthe
6568fae3551SRodney W. Grimes.Tn TTL
6578fae3551SRodney W. Grimesfield of
6588fae3551SRodney W. Grimes.Tn ICMP ECHO_REQUEST
6598fae3551SRodney W. Grimespackets to 255.
66050ceac88SJohn-Mark GurneyThis is why you will find you can
66150ceac88SJohn-Mark Gurney.Dq ping
66250ceac88SJohn-Mark Gurneysome hosts, but not reach them with
6638fae3551SRodney W. Grimes.Xr telnet 1
6648fae3551SRodney W. Grimesor
6658fae3551SRodney W. Grimes.Xr ftp 1 .
6668fae3551SRodney W. Grimes.Pp
667e345a80dSPhilippe CharnierIn normal operation
668e345a80dSPhilippe Charnier.Nm
669e345a80dSPhilippe Charnierprints the ttl value from the packet it receives.
6708fae3551SRodney W. GrimesWhen a remote system receives a ping packet, it can do one of three things
6718fae3551SRodney W. Grimeswith the
6728fae3551SRodney W. Grimes.Tn TTL
6738fae3551SRodney W. Grimesfield in its response:
6748fae3551SRodney W. Grimes.Bl -bullet
6758fae3551SRodney W. Grimes.It
676e345a80dSPhilippe CharnierNot change it; this is what
677e345a80dSPhilippe Charnier.Bx
678e345a80dSPhilippe Charniersystems did before the
6798fae3551SRodney W. Grimes.Bx 4.3 tahoe
6808fae3551SRodney W. Grimesrelease.
6818fae3551SRodney W. GrimesIn this case the
6828fae3551SRodney W. Grimes.Tn TTL
6838fae3551SRodney W. Grimesvalue in the received packet will be 255 minus the
6848fae3551SRodney W. Grimesnumber of routers in the round-trip path.
6858fae3551SRodney W. Grimes.It
6863109a910SGarrett WollmanSet it to 255; this is what current
687e345a80dSPhilippe Charnier.Bx
6883109a910SGarrett Wollmansystems do.
6898fae3551SRodney W. GrimesIn this case the
6908fae3551SRodney W. Grimes.Tn TTL
6918fae3551SRodney W. Grimesvalue in the received packet will be 255 minus the
6928fae3551SRodney W. Grimesnumber of routers in the path
69350ceac88SJohn-Mark Gurney.Em from
6948fae3551SRodney W. Grimesthe remote system
6958fae3551SRodney W. Grimes.Em to
6968fae3551SRodney W. Grimesthe
69750ceac88SJohn-Mark Gurney.Nm Ns Em ing
6988fae3551SRodney W. Grimeshost.
6998fae3551SRodney W. Grimes.It
7008fae3551SRodney W. GrimesSet it to some other value.
7018fae3551SRodney W. GrimesSome machines use the same value for
7028fae3551SRodney W. Grimes.Tn ICMP
7038fae3551SRodney W. Grimespackets that they use for
7048fae3551SRodney W. Grimes.Tn TCP
7058fae3551SRodney W. Grimespackets, for example either 30 or 60.
7068fae3551SRodney W. GrimesOthers may use completely wild values.
7078fae3551SRodney W. Grimes.El
7080c868e90SDaniel Gerzo.Sh EXIT STATUS
70943470e3bSGarrett WollmanThe
71050ceac88SJohn-Mark Gurney.Nm
7117f220ecfSDaniel Gerzoutility exits with one of the following values:
7127f220ecfSDaniel Gerzo.Bl -tag -width indent
7137f220ecfSDaniel Gerzo.It 0
7147f220ecfSDaniel GerzoAt least one response was heard from the specified
7157f220ecfSDaniel Gerzo.Ar host .
7167f220ecfSDaniel Gerzo.It 2
7177f220ecfSDaniel GerzoThe transmission was successful but no responses were received.
7187f220ecfSDaniel Gerzo.It any other value
7197f220ecfSDaniel GerzoAn error occurred.
7207f220ecfSDaniel Gerzo.El
7213cde9171SAlan Somers.Sh EXAMPLES
7223cde9171SAlan SomersThe following will send ICMPv6 echo request to
7233cde9171SAlan Somers.Li dst.foo.com .
7243cde9171SAlan Somers.Bd -literal -offset indent
7253cde9171SAlan Somersping -6 -n dst.foo.com
7263cde9171SAlan Somers.Ed
7273cde9171SAlan Somers.Pp
7283cde9171SAlan SomersThe following will probe hostnames for all nodes on the network link attached to
7293cde9171SAlan Somers.Li wi0
7303cde9171SAlan Somersinterface.
7313cde9171SAlan SomersThe address
7323cde9171SAlan Somers.Li ff02::1
7333cde9171SAlan Somersis named the link-local all-node multicast address, and the packet would
7343cde9171SAlan Somersreach every node on the network link.
7353cde9171SAlan Somers.Bd -literal -offset indent
7363cde9171SAlan Somersping -6 -y ff02::1%wi0
7373cde9171SAlan Somers.Ed
7383cde9171SAlan Somers.Pp
7393cde9171SAlan SomersThe following will probe addresses assigned to the destination node,
7403cde9171SAlan Somers.Li dst.foo.com .
7413cde9171SAlan Somers.Bd -literal -offset indent
7423cde9171SAlan Somersping -6 -k agl dst.foo.com
7433cde9171SAlan Somers.Ed
74443470e3bSGarrett Wollman.Sh SEE ALSO
74543470e3bSGarrett Wollman.Xr netstat 1 ,
7463c32812bSMaxim Konovalov.Xr icmp 4 ,
7473cde9171SAlan Somers.Xr icmp6 4 ,
7483cde9171SAlan Somers.Xr inet6 4 ,
7493cde9171SAlan Somers.Xr ip6 4 ,
75043470e3bSGarrett Wollman.Xr ifconfig 8 ,
75143470e3bSGarrett Wollman.Xr routed 8 ,
752ea0dd3caSGordon Bergling.Xr traceroute 8 ,
7533cde9171SAlan Somers.Xr traceroute6 8
7543cde9171SAlan Somers.Rs
7553cde9171SAlan Somers.%A A. Conta
7563cde9171SAlan Somers.%A S. Deering
7573cde9171SAlan Somers.%T "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification"
7583cde9171SAlan Somers.%N RFC 2463
7593cde9171SAlan Somers.%D December 1998
7603cde9171SAlan Somers.Re
7613cde9171SAlan Somers.Rs
7623cde9171SAlan Somers.%A Matt Crawford
7633cde9171SAlan Somers.%T "IPv6 Node Information Queries"
7643cde9171SAlan Somers.%N draft-ietf-ipngwg-icmp-name-lookups-09.txt
7653cde9171SAlan Somers.%D May 2002
7663cde9171SAlan Somers.%O work in progress material
7673cde9171SAlan Somers.Re
76843470e3bSGarrett Wollman.Sh HISTORY
76943470e3bSGarrett WollmanThe
77043470e3bSGarrett Wollman.Nm
771e1205e80SPhilippe Charnierutility appeared in
77243470e3bSGarrett Wollman.Bx 4.3 .
7733cde9171SAlan SomersThe
7743cde9171SAlan Somers.Nm ping6
7753cde9171SAlan Somersutility with IPv6 support first appeared in the WIDE Hydrangea IPv6
7763cde9171SAlan Somersprotocol stack kit.
7773cde9171SAlan Somers.Pp
7783cde9171SAlan SomersIPv6 and IPsec support based on the KAME Project
779*83e66677SWolfram Schneider.Pq Pa https://www.kame.net/
7803cde9171SAlan Somersstack was initially integrated into
7813cde9171SAlan Somers.Fx 4.0 .
7823cde9171SAlan Somers.Pp
7833cde9171SAlan SomersThe
7843cde9171SAlan Somers.Nm ping6
7853cde9171SAlan Somersutility was merged to
7863cde9171SAlan Somers.Nm
7873cde9171SAlan Somersin Google Summer of Code 2019.
78843470e3bSGarrett Wollman.Sh AUTHORS
78943470e3bSGarrett WollmanThe original
79043470e3bSGarrett Wollman.Nm
791e1205e80SPhilippe Charnierutility was written by
79268085a0eSPhilippe Charnier.An Mike Muuss
79368085a0eSPhilippe Charnierwhile at the US Army Ballistics
79443470e3bSGarrett WollmanResearch Laboratory.
7958fae3551SRodney W. Grimes.Sh BUGS
7963cde9171SAlan SomersMany Hosts and Gateways ignore the IPv4
7978fae3551SRodney W. Grimes.Tn RECORD_ROUTE
7988fae3551SRodney W. Grimesoption.
7998fae3551SRodney W. Grimes.Pp
8008fae3551SRodney W. GrimesThe maximum IP header length is too small for options like
8018fae3551SRodney W. Grimes.Tn RECORD_ROUTE
80250ceac88SJohn-Mark Gurneyto be completely useful.
80350ceac88SJohn-Mark Gurney.No There Ap s
80450ceac88SJohn-Mark Gurneynot much that can be done about this, however.
8058fae3551SRodney W. Grimes.Pp
8068fae3551SRodney W. GrimesFlood pinging is not recommended in general, and flood pinging the
8078fae3551SRodney W. Grimesbroadcast address should only be done under very controlled conditions.
808ef9e6dc7SBill Fenner.Pp
809ef9e6dc7SBill FennerThe
810ef9e6dc7SBill Fenner.Fl v
811ef9e6dc7SBill Fenneroption is not worth much on busy hosts.
812