xref: /freebsd/sbin/ping/ping.8 (revision 6ba2a0846fe304be8e7aa933fbfd25fb0ae16091)
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.\"
28eaab8826SMark Johnston.Dd September 15, 2023
298fae3551SRodney W. Grimes.Dt PING 8
309fe48c6eSRuslan Ermilov.Os
318fae3551SRodney W. Grimes.Sh NAME
328fae3551SRodney W. Grimes.Nm ping
338fae3551SRodney W. Grimes.Nd send
348eb4df94SJose Luis DuranICMP
353cde9171SAlan Somersor
368eb4df94SJose Luis DuranICMPv6 ECHO_REQUEST
378fae3551SRodney W. Grimespackets to network hosts
388fae3551SRodney W. Grimes.Sh SYNOPSIS
397c7fb079SRuslan Ermilov.Nm
403cde9171SAlan Somers.Op Fl 4AaDdfHnoQqRrv
41d399eb3eSPiotr Pawel Stefaniak.Op Fl .\& Ns Ar chars
4281a6f4c7SRichard Scheffenegger.Op Fl C Ar pcp
438fae3551SRodney W. Grimes.Op Fl c Ar count
449ff95228SGleb Smirnoff.Op Fl G Ar sweepmaxsize
459ff95228SGleb Smirnoff.Op Fl g Ar sweepminsize
469ff95228SGleb Smirnoff.Op Fl h Ar sweepincrsize
478fae3551SRodney W. Grimes.Op Fl i Ar wait
488fae3551SRodney W. Grimes.Op Fl l Ar preload
491bd10ba2SRuslan Ermilov.Op Fl M Cm mask | time
50211bfbd2SRuslan Ermilov.Op Fl m Ar ttl
519a4365d0SYoshinobu Inoue.Op Fl P Ar policy
521f6a4631SRuslan Ermilov.Op Fl p Ar pattern
5399490edeSWarner Losh.Op Fl S Ar src_addr
541f6a4631SRuslan Ermilov.Op Fl s Ar packetsize
55bf113f1bSBill Fumerola.Op Fl t Ar timeout
56d6cd1497SGleb Smirnoff.Op Fl W Ar waittime
570b2f8b3fSMaxim Konovalov.Op Fl z Ar tos
583cde9171SAlan Somers.Ar IPv4-host
591bd10ba2SRuslan Ermilov.Nm
603cde9171SAlan Somers.Op Fl 4AaDdfHLnoQqRrv
61d399eb3eSPiotr Pawel Stefaniak.Op Fl .\& Ns Ar chars
6281a6f4c7SRichard Scheffenegger.Op Fl C Ar pcp
631bd10ba2SRuslan Ermilov.Op Fl c Ar count
641bd10ba2SRuslan Ermilov.Op Fl I Ar iface
651bd10ba2SRuslan Ermilov.Op Fl i Ar wait
661bd10ba2SRuslan Ermilov.Op Fl l Ar preload
671bd10ba2SRuslan Ermilov.Op Fl M Cm mask | time
681bd10ba2SRuslan Ermilov.Op Fl m Ar ttl
691bd10ba2SRuslan Ermilov.Op Fl P Ar policy
701bd10ba2SRuslan Ermilov.Op Fl p Ar pattern
711bd10ba2SRuslan Ermilov.Op Fl S Ar src_addr
721bd10ba2SRuslan Ermilov.Op Fl s Ar packetsize
73f78ac61bSWarner Losh.Op Fl T Ar ttl
741bd10ba2SRuslan Ermilov.Op Fl t Ar timeout
75d6cd1497SGleb Smirnoff.Op Fl W Ar waittime
761bd10ba2SRuslan Ermilov.Op Fl z Ar tos
773cde9171SAlan Somers.Ar IPv4-mcast-group
783cde9171SAlan Somers.Nm
793cde9171SAlan Somers.Op Fl 6AaDdEfHNnOoquvYyZ
80d399eb3eSPiotr Pawel Stefaniak.Op Fl .\& Ns Ar chars
813cde9171SAlan Somers.Op Fl b Ar bufsiz
82a2d13601SDag-Erling Smørgrav.Op Fl C Ar pcp
833cde9171SAlan Somers.Op Fl c Ar count
843cde9171SAlan Somers.Op Fl e Ar gateway
853cde9171SAlan Somers.Op Fl I Ar interface
863cde9171SAlan Somers.Op Fl i Ar wait
873cde9171SAlan Somers.Op Fl k Ar addrtype
883cde9171SAlan Somers.Op Fl l Ar preload
893cde9171SAlan Somers.Op Fl m Ar hoplimit
903cde9171SAlan Somers.Op Fl P Ar policy
913cde9171SAlan Somers.Op Fl p Ar pattern
923cde9171SAlan Somers.Op Fl S Ar sourceaddr
933cde9171SAlan Somers.Op Fl s Ar packetsize
943cde9171SAlan Somers.Op Fl t Ar timeout
953cde9171SAlan Somers.Op Fl W Ar waittime
963cde9171SAlan Somers.Op Ar IPv6-hops ...
973cde9171SAlan Somers.Ar IPv6-host
988fae3551SRodney W. Grimes.Sh DESCRIPTION
99e1205e80SPhilippe CharnierThe
100e1205e80SPhilippe Charnier.Nm
1013cde9171SAlan Somersutility invoked with an IPv4 target
1028eb4df94SJose Luis Duran.Ar ( IPv4-host
1038eb4df94SJose Luis Duranor
1048eb4df94SJose Luis Duran.Ar IPv4-mcast-group )
1053cde9171SAlan Somersuses the
1068eb4df94SJose Luis DuranICMP
10750ceac88SJohn-Mark Gurney.No protocol Ap s mandatory
1088eb4df94SJose Luis DuranECHO_REQUEST
1098fae3551SRodney W. Grimesdatagram to elicit an
1108eb4df94SJose Luis DuranICMP ECHO_RESPONSE
1118fae3551SRodney W. Grimesfrom a host or gateway.
1128eb4df94SJose Luis DuranECHO_REQUEST
11350ceac88SJohn-Mark Gurneydatagrams
11450ceac88SJohn-Mark Gurney.Pq Dq pings
11550ceac88SJohn-Mark Gurneyhave an IP and
1168eb4df94SJose Luis DuranICMP
11750ceac88SJohn-Mark Gurneyheader, followed by a
1188fae3551SRodney W. Grimes.Dq struct timeval
11950ceac88SJohn-Mark Gurneyand then an arbitrary number of
12050ceac88SJohn-Mark Gurney.Dq pad
1211f6a4631SRuslan Ermilovbytes used to fill out the packet.
1223cde9171SAlan Somers.Pp
1233cde9171SAlan SomersWhen invoked with an IPv6 target
1248eb4df94SJose Luis Duran.Ar ( IPv6-host ) ,
1253cde9171SAlan Somersit uses the
1268eb4df94SJose Luis DuranICMPv6
1273cde9171SAlan Somersprotocol's mandatory
1288eb4df94SJose Luis DuranICMP6_ECHO_REQUEST
1293cde9171SAlan Somersdatagram to elicit an
1308eb4df94SJose Luis DuranICMP6_ECHO_REPLY.
1318eb4df94SJose Luis DuranICMP6_ECHO_REQUEST
1323cde9171SAlan Somersdatagrams have an IPv6 header and
1338eb4df94SJose Luis DuranICMPv6
1343cde9171SAlan Somersheader formatted as documented in RFC 2463.
1353cde9171SAlan Somers.Pp
1368eb4df94SJose Luis DuranWhen invoked with a hostname, the version to which the target is resolved first
1378eb4df94SJose Luis Duranis used.
1388eb4df94SJose Luis DuranIn that case, the options and arguments used must be valid for the specific IP
1398eb4df94SJose Luis Duranversion, otherwise
1403cde9171SAlan Somers.Nm
1414ddfc27eSGordon Berglingexits with an error.
1428eb4df94SJose Luis DuranIf the target is resolved to both IPv4 and IPv6, the specific IP version can be
1438eb4df94SJose Luis Duranrequested by
1443cde9171SAlan Somers.Fl 4
1453cde9171SAlan Somersor
1463cde9171SAlan Somers.Fl 6
1473cde9171SAlan Somersoptions, respectively.
148d2624517SAlan SomersFor backwards-compatibility, ICMPv6 can also be selected by invoking the binary
149d2624517SAlan Somersas
150d2624517SAlan Somers.Nm ping6 .
1513cde9171SAlan Somers.Ss Options common to both IPv4 and IPv6 targets
152e345a80dSPhilippe Charnier.Bl -tag -width indent
153d399eb3eSPiotr Pawel Stefaniak.It Fl .\& Ns Ar chars
154d399eb3eSPiotr Pawel StefaniakBy default, for every
1558eb4df94SJose Luis DuranECHO_REQUEST
156d399eb3eSPiotr Pawel Stefaniaksent, a period
157d399eb3eSPiotr Pawel Stefaniak.Dq .\&
158d399eb3eSPiotr Pawel Stefaniakis printed, while for every
1598eb4df94SJose Luis DuranECHO_REPLY
160d399eb3eSPiotr Pawel Stefaniakreceived, a backspace is printed.
161d399eb3eSPiotr Pawel StefaniakThis option takes an optional string argument listing characters
162d399eb3eSPiotr Pawel Stefaniakthat will be printed one by one in the provided order
163d399eb3eSPiotr Pawel Stefaniakinstead of the default period.
164d399eb3eSPiotr Pawel Stefaniak.Pp
165d399eb3eSPiotr Pawel StefaniakExample usage:
166d399eb3eSPiotr Pawel Stefaniak.Bd -literal -offset indent
167d399eb3eSPiotr Pawel Stefaniakping -.0123456789 freebsd.org
168d399eb3eSPiotr Pawel Stefaniak.Ed
169ca517ad8SPoul-Henning Kamp.It Fl A
170ca517ad8SPoul-Henning KampAudible.
17125107197SIan DowseOutput a bell
1728eb4df94SJose Luis Duran(ASCII
173c4d9468eSRuslan Ermilov0x07)
17425107197SIan Dowsecharacter when no packet is received before the next packet
175ca517ad8SPoul-Henning Kampis transmitted.
17625107197SIan DowseTo cater for round-trip times that are longer than the interval
17725107197SIan Dowsebetween transmissions, further missing packets cause a bell only
17825107197SIan Dowseif the maximum number of unreceived packets has increased.
179772dfa72SDaniel O'Callaghan.It Fl a
180ef8f7ac9SSheldon HearnAudible.
181ef8f7ac9SSheldon HearnInclude a bell
1828eb4df94SJose Luis Duran(ASCII
183c4d9468eSRuslan Ermilov0x07)
184ef8f7ac9SSheldon Hearncharacter in the output when any packet is received.
18581a6f4c7SRichard Scheffenegger.It Fl C Ar pcp
18681a6f4c7SRichard ScheffeneggerAdd an 802.1p Ethernet Priority Code Point when sending a packet.
18781a6f4c7SRichard Scheffenegger0..7 uses that specific PCP, -1 uses the interface default PCP (or none).
1888fae3551SRodney W. Grimes.It Fl c Ar count
18950ceac88SJohn-Mark GurneyStop after sending
190c4d9468eSRuslan Ermilov(and receiving)
1918fae3551SRodney W. Grimes.Ar count
1928eb4df94SJose Luis DuranECHO_RESPONSE
1930ed77db8SBruce Evanspackets.
1940ed77db8SBruce EvansIf this option is not specified,
1950ed77db8SBruce Evans.Nm
1960ed77db8SBruce Evanswill operate until interrupted.
1973cde9171SAlan Somers.Pp
1983cde9171SAlan SomersFor an IPv4 target, if this option is specified in conjunction with ping sweeps,
1999ff95228SGleb Smirnoffeach sweep will consist of
2009ff95228SGleb Smirnoff.Ar count
2019ff95228SGleb Smirnoffpackets.
2021f6a4631SRuslan Ermilov.It Fl D
2033cde9171SAlan SomersDisable fragmentation.
2048fae3551SRodney W. Grimes.It Fl d
2058fae3551SRodney W. GrimesSet the
2068fae3551SRodney W. Grimes.Dv SO_DEBUG
2078fae3551SRodney W. Grimesoption on the socket being used.
2088fae3551SRodney W. Grimes.It Fl f
2098fae3551SRodney W. GrimesFlood ping.
2108fae3551SRodney W. GrimesOutputs packets as fast as they come back or one hundred times per second,
2118fae3551SRodney W. Grimeswhichever is more.
212d399eb3eSPiotr Pawel StefaniakImplies
213d399eb3eSPiotr Pawel Stefaniak.Fl .\&
214d399eb3eSPiotr Pawel Stefaniakto print a period for every
2158eb4df94SJose Luis DuranECHO_REQUEST
216d399eb3eSPiotr Pawel Stefaniaksent and a backspace for every
2178eb4df94SJose Luis DuranECHO_REPLY
218d399eb3eSPiotr Pawel Stefaniakreceived.
2198fae3551SRodney W. GrimesThis provides a rapid display of how many packets are being dropped.
2208fae3551SRodney W. GrimesOnly the super-user may use this option.
2218fae3551SRodney W. Grimes.Bf -emphasis
2228fae3551SRodney W. GrimesThis can be very hard on a network and should be used with caution.
2238fae3551SRodney W. Grimes.Ef
22499f13ae1SAlan Somers.It Fl H
22599f13ae1SAlan SomersHostname output.
22699f13ae1SAlan SomersTry to do a reverse DNS lookup when displaying addresses.
227299e2c58SAlan SomersThis is the opposite of the
228299e2c58SAlan Somers.Fl n
229299e2c58SAlan Somersoption.
2301bd10ba2SRuslan Ermilov.It Fl I Ar iface
2313cde9171SAlan SomersFor an IPv4 target,
2323cde9171SAlan Somers.Ar iface
233*6ba2a084SMaxim Konovalovis an IP address identifying an interface from which the packets will be sent.
2344ddfc27eSGordon BerglingThis flag applies only if the ping target is a multicast address.
2353cde9171SAlan Somers.Pp
2363cde9171SAlan SomersFor an IPv6 target,
2373cde9171SAlan Somers.Ar iface
2388eb4df94SJose Luis Duranis a name of an interface (e.g., `em0') from which the packets will be sent.
2398eb4df94SJose Luis DuranThis flag applies if the ping target is a multicast address, or
2408eb4df94SJose Luis Duranlink-local/site-local unicast address.
2418fae3551SRodney W. Grimes.It Fl i Ar wait
2428fae3551SRodney W. GrimesWait
2438fae3551SRodney W. Grimes.Ar wait
2448fae3551SRodney W. Grimesseconds
2458fae3551SRodney W. Grimes.Em between sending each packet .
2460ed77db8SBruce EvansThe default is to wait for one second between each packet.
2470ed77db8SBruce EvansThe wait time may be fractional, but only the super-user may specify
248074ad115SRuslan Ermilovvalues less than 1 second.
2490ed77db8SBruce EvansThis option is incompatible with the
2508fae3551SRodney W. Grimes.Fl f
2518fae3551SRodney W. Grimesoption.
2528fae3551SRodney W. Grimes.It Fl l Ar preload
2538fae3551SRodney W. GrimesIf
2548fae3551SRodney W. Grimes.Ar preload
2558fae3551SRodney W. Grimesis specified,
256e345a80dSPhilippe Charnier.Nm
2578fae3551SRodney W. Grimessends that many packets as fast as possible before falling into its normal
2588fae3551SRodney W. Grimesmode of behavior.
259ee2bf734SWarner LoshOnly the super-user may use this option.
2609b085129SMatthew N. Dodd.It Fl m Ar ttl
2613cde9171SAlan SomersFor an IPv4 target, set the IP Time To Live for outgoing packets.
2629b085129SMatthew N. DoddIf not specified, the kernel uses the value of the
2639b085129SMatthew N. Dodd.Va net.inet.ip.ttl
2649b085129SMatthew N. DoddMIB variable.
2653cde9171SAlan Somers.Pp
2663cde9171SAlan SomersFor an IPv6 target, set the IPv6 hoplimit.
2678fae3551SRodney W. Grimes.It Fl n
2688fae3551SRodney W. GrimesNumeric output only.
2698fae3551SRodney W. GrimesNo attempt will be made to lookup symbolic names for host addresses.
270299e2c58SAlan SomersThis is the opposite of
271299e2c58SAlan Somers.Fl H ,
272299e2c58SAlan Somersand it is the default behavior.
2738025c44bSDima Dorfman.It Fl o
2748025c44bSDima DorfmanExit successfully after receiving one reply packet.
2751f6a4631SRuslan Ermilov.It Fl P Ar policy
2761f6a4631SRuslan Ermilov.Ar policy
2771f6a4631SRuslan Ermilovspecifies IPsec policy for the ping session.
2781f6a4631SRuslan ErmilovFor details please refer to
2791f6a4631SRuslan Ermilov.Xr ipsec 4
2801f6a4631SRuslan Ermilovand
2811f6a4631SRuslan Ermilov.Xr ipsec_set_policy 3 .
2828fae3551SRodney W. Grimes.It Fl p Ar pattern
28350ceac88SJohn-Mark GurneyYou may specify up to 16
28450ceac88SJohn-Mark Gurney.Dq pad
28550ceac88SJohn-Mark Gurneybytes to fill out the packet you send.
2868fae3551SRodney W. GrimesThis is useful for diagnosing data-dependent problems in a network.
2878fae3551SRodney W. GrimesFor example,
2888fae3551SRodney W. Grimes.Dq Li \-p ff
2898fae3551SRodney W. Grimeswill cause the sent packet to be filled with all
2908fae3551SRodney W. Grimesones.
2913cde9171SAlan Somers.It Fl q
2923cde9171SAlan SomersQuiet output.
2933cde9171SAlan SomersNothing is displayed except the summary lines at startup time and
2943cde9171SAlan Somerswhen finished.
2953cde9171SAlan Somers.It Fl S Ar src_addr
2963cde9171SAlan SomersUse the following IP address as the source address in outgoing packets.
2973cde9171SAlan SomersOn hosts with more than one IP address, this option can be used to
2983cde9171SAlan Somersforce the source address to be something other than the IP address
2993cde9171SAlan Somersof the interface the probe packet is sent on.
3003cde9171SAlan Somers.Pp
3013cde9171SAlan SomersFor IPv4, if the IP address is not one of this machine's interface
3023cde9171SAlan Somersaddresses, an error is returned and nothing is sent.
3033cde9171SAlan Somers.Pp
3043cde9171SAlan SomersFor IPv6, the source address must be one of the unicast addresses of
3053cde9171SAlan Somersthe sending node, and must be numeric.
3063cde9171SAlan Somers.It Fl s Ar packetsize
3073cde9171SAlan SomersSpecify the number of data bytes to be sent.
3083cde9171SAlan SomersThe default is 56, which translates into 64
3098eb4df94SJose Luis DuranICMP
3103cde9171SAlan Somersdata bytes when combined
3113cde9171SAlan Somerswith the 8 bytes of
3128eb4df94SJose Luis DuranICMP
3133cde9171SAlan Somersheader data.
3143cde9171SAlan Somers.Pp
315eaab8826SMark JohnstonFor IPv4, only the super-user may specify values more than default.
3163cde9171SAlan SomersThis option cannot be used with ping sweeps.
3173cde9171SAlan Somers.Pp
3183cde9171SAlan SomersFor IPv6, you may need to specify
3193cde9171SAlan Somers.Fl b
3203cde9171SAlan Somersas well to extend socket buffer size.
3213cde9171SAlan Somers.It Fl t Ar timeout
3223cde9171SAlan SomersSpecify a timeout, in seconds, before ping exits regardless of how
3233cde9171SAlan Somersmany packets have been received.
3243cde9171SAlan Somers.It Fl v
3253cde9171SAlan SomersVerbose output.
3268eb4df94SJose Luis DuranICMP
3273cde9171SAlan Somerspackets other than
3288eb4df94SJose Luis DuranECHO_RESPONSE
3293cde9171SAlan Somersthat are received are listed.
3303cde9171SAlan Somers.It Fl W Ar waittime
3313cde9171SAlan SomersTime in milliseconds to wait for a reply for each packet sent.
3323cde9171SAlan SomersIf a reply arrives later, the packet is not printed as replied, but
3333cde9171SAlan Somersconsidered as replied when calculating statistics.
3343cde9171SAlan Somers.El
3353cde9171SAlan Somers.Ss Options only for IPv4 targets
3363cde9171SAlan Somers.Bl -tag -width indent
3373cde9171SAlan Somers.It Fl 4
3383cde9171SAlan SomersUse IPv4 regardless of how the target is resolved.
3393cde9171SAlan Somers.It Fl G Ar sweepmaxsize
3403cde9171SAlan SomersSpecify the maximum size of
3418eb4df94SJose Luis DuranICMP
3423cde9171SAlan Somerspayload when sending sweeping pings.
3433cde9171SAlan SomersThis option is required for ping sweeps.
3443cde9171SAlan Somers.It Fl g Ar sweepminsize
3453cde9171SAlan SomersSpecify the size of
3468eb4df94SJose Luis DuranICMP
3473cde9171SAlan Somerspayload to start with when sending sweeping pings.
3483cde9171SAlan SomersThe default value is 0.
3493cde9171SAlan Somers.It Fl h Ar sweepincrsize
3503cde9171SAlan SomersSpecify the number of bytes to increment the size of
3518eb4df94SJose Luis DuranICMP
3523cde9171SAlan Somerspayload after
3533cde9171SAlan Somerseach sweep when sending sweeping pings.
3543cde9171SAlan SomersThe default value is 1.
3553cde9171SAlan Somers.It Fl L
3563cde9171SAlan SomersSuppress loopback of multicast packets.
3573cde9171SAlan SomersThis flag only applies if the ping destination is a multicast address.
3583cde9171SAlan Somers.It Fl M Cm mask | time
3593cde9171SAlan SomersUse
3603cde9171SAlan Somers.Dv ICMP_MASKREQ
3613cde9171SAlan Somersor
3623cde9171SAlan Somers.Dv ICMP_TSTAMP
3633cde9171SAlan Somersinstead of
3643cde9171SAlan Somers.Dv ICMP_ECHO .
3653cde9171SAlan SomersFor
3663cde9171SAlan Somers.Cm mask ,
3673cde9171SAlan Somersprint the netmask of the remote machine.
3683cde9171SAlan SomersSet the
3693cde9171SAlan Somers.Va net.inet.icmp.maskrepl
3703cde9171SAlan SomersMIB variable to enable
3713cde9171SAlan Somers.Dv ICMP_MASKREPLY
3723cde9171SAlan Somersand
3733cde9171SAlan Somers.Va net.inet.icmp.maskfake
3743cde9171SAlan Somersif you want to override the netmask in the response.
3753cde9171SAlan SomersFor
3763cde9171SAlan Somers.Cm time ,
3773cde9171SAlan Somersprint the origination, reception and transmission timestamps.
3783cde9171SAlan SomersSet the
3793cde9171SAlan Somers.Va net.inet.icmp.tstamprepl
3803cde9171SAlan SomersMIB variable to enable or disable
3813cde9171SAlan Somers.Dv ICMP_TSTAMPREPLY .
382ef9e6dc7SBill Fenner.It Fl Q
383ef9e6dc7SBill FennerSomewhat quiet output.
38450ceac88SJohn-Mark Gurney.No Don Ap t
38550ceac88SJohn-Mark Gurneydisplay ICMP error messages that are in response to our query messages.
386ef9e6dc7SBill FennerOriginally, the
387ef9e6dc7SBill Fenner.Fl v
388ef9e6dc7SBill Fennerflag was required to display such errors, but
389ef9e6dc7SBill Fenner.Fl v
3901f6a4631SRuslan Ermilovdisplays all ICMP error messages.
3911f6a4631SRuslan ErmilovOn a busy machine, this output can be overbearing.
3921f6a4631SRuslan ErmilovWithout the
393ef9e6dc7SBill Fenner.Fl Q
394ef9e6dc7SBill Fennerflag,
395ef9e6dc7SBill Fenner.Nm
396ef9e6dc7SBill Fennerprints out any ICMP error messages caused by its own ECHO_REQUEST
397ef9e6dc7SBill Fennermessages.
3988fae3551SRodney W. Grimes.It Fl R
3998fae3551SRodney W. GrimesRecord route.
4008fae3551SRodney W. GrimesIncludes the
4018eb4df94SJose Luis DuranRECORD_ROUTE
4028fae3551SRodney W. Grimesoption in the
4038eb4df94SJose Luis DuranECHO_REQUEST
4048fae3551SRodney W. Grimespacket and displays
4058fae3551SRodney W. Grimesthe route buffer on returned packets.
40643470e3bSGarrett WollmanNote that the IP header is only large enough for nine such routes;
40743470e3bSGarrett Wollmanthe
40843470e3bSGarrett Wollman.Xr traceroute 8
40943470e3bSGarrett Wollmancommand is usually better at determining the route packets take to a
41043470e3bSGarrett Wollmanparticular destination.
411c03e877aSWarner LoshIf more routes come back than should, such as due to an illegal spoofed
412c03e877aSWarner Loshpacket, ping will print the route list and then truncate it at the correct
413c03e877aSWarner Loshspot.
41443470e3bSGarrett WollmanMany hosts ignore or discard the
4158eb4df94SJose Luis DuranRECORD_ROUTE
41643470e3bSGarrett Wollmanoption.
4178fae3551SRodney W. Grimes.It Fl r
4188fae3551SRodney W. GrimesBypass the normal routing tables and send directly to a host on an attached
4198fae3551SRodney W. Grimesnetwork.
4208fae3551SRodney W. GrimesIf the host is not on a directly-attached network, an error is returned.
4218fae3551SRodney W. GrimesThis option can be used to ping a local host through an interface
42250ceac88SJohn-Mark Gurneythat has no route through it
423c4d9468eSRuslan Ermilov(e.g., after the interface was dropped by
424c4d9468eSRuslan Ermilov.Xr routed 8 ) .
42585456935SBill Fenner.It Fl T Ar ttl
42685456935SBill FennerSet the IP Time To Live for multicasted packets.
42785456935SBill FennerThis flag only applies if the ping destination is a multicast address.
4280b2f8b3fSMaxim Konovalov.It Fl z Ar tos
4290b2f8b3fSMaxim KonovalovUse the specified type of service.
4303cde9171SAlan Somers.It Ar IPv4-host
4313cde9171SAlan Somershostname or IPv4 address of the final destination node.
4323cde9171SAlan Somers.It Ar IPv4-mcast-group
4333cde9171SAlan SomersIPv4 multicast address of the final destination nodes.
4343cde9171SAlan Somers.El
4353cde9171SAlan Somers.Ss Options only for IPv6 targets
4363cde9171SAlan Somers.Bl -tag -width indent
4373cde9171SAlan Somers.It Fl 6
4383cde9171SAlan SomersUse IPv6 regardless of how the target is resolved.
4393cde9171SAlan Somers.It Fl b Ar bufsiz
4403cde9171SAlan SomersSet socket buffer size.
4413cde9171SAlan Somers.It Fl e Ar gateway
4423cde9171SAlan SomersSpecifies to use
4433cde9171SAlan Somers.Ar gateway
4443cde9171SAlan Somersas the next hop to the destination.
4453cde9171SAlan SomersThe gateway must be a neighbor of the sending node.
4463cde9171SAlan Somers.It Fl k Ar addrtype
4473cde9171SAlan SomersGenerate ICMPv6 Node Information Node Addresses query, rather than echo-request.
4483cde9171SAlan Somers.Ar addrtype
4493cde9171SAlan Somersmust be a string constructed of the following characters.
4503cde9171SAlan Somers.Bl -tag -width Ds -compact
4513cde9171SAlan Somers.It Ic a
4523cde9171SAlan Somersrequests unicast addresses from all of the responder's interfaces.
4533cde9171SAlan SomersIf the character is omitted,
4543cde9171SAlan Somersonly those addresses which belong to the interface which has the
4553cde9171SAlan Somersresponder's address are requests.
4563cde9171SAlan Somers.It Ic c
4573cde9171SAlan Somersrequests responder's IPv4-compatible and IPv4-mapped addresses.
4583cde9171SAlan Somers.It Ic g
4593cde9171SAlan Somersrequests responder's global-scope addresses.
4603cde9171SAlan Somers.It Ic s
4613cde9171SAlan Somersrequests responder's site-local addresses.
4623cde9171SAlan Somers.It Ic l
4633cde9171SAlan Somersrequests responder's link-local addresses.
4643cde9171SAlan Somers.It Ic A
4653cde9171SAlan Somersrequests responder's anycast addresses.
4663cde9171SAlan SomersWithout this character, the responder will return unicast addresses only.
4673cde9171SAlan SomersWith this character, the responder will return anycast addresses only.
4683cde9171SAlan SomersNote that the specification does not specify how to get responder's
4693cde9171SAlan Somersanycast addresses.
4703cde9171SAlan SomersThis is an experimental option.
4713cde9171SAlan Somers.El
4723cde9171SAlan Somers.It Fl N
4733cde9171SAlan SomersProbe node information multicast group address
4743cde9171SAlan Somers.Pq Li ff02::2:ffxx:xxxx .
4753cde9171SAlan Somers.Ar host
4763cde9171SAlan Somersmust be string hostname of the target
4773cde9171SAlan Somers(must not be a numeric IPv6 address).
4783cde9171SAlan SomersNode information multicast group will be computed based on given
4793cde9171SAlan Somers.Ar host ,
4803cde9171SAlan Somersand will be used as the final destination.
4813cde9171SAlan SomersSince node information multicast group is a link-local multicast group,
4823cde9171SAlan Somersoutgoing interface needs to be specified by
4833cde9171SAlan Somers.Fl I
4843cde9171SAlan Somersoption.
4853cde9171SAlan Somers.Pp
4863cde9171SAlan SomersWhen specified twice, the address
4873cde9171SAlan Somers.Pq Li ff02::2:xxxx:xxxx
4883cde9171SAlan Somersis used instead.
4893cde9171SAlan SomersThe former is in RFC 4620, the latter is in an old Internet Draft
4903cde9171SAlan Somersdraft-ietf-ipngwg-icmp-name-lookup.
4913cde9171SAlan SomersNote that KAME-derived implementations including
4923cde9171SAlan Somers.Fx
4933cde9171SAlan Somersuse the latter.
4943cde9171SAlan Somers.It Fl O
4953cde9171SAlan SomersGenerate ICMPv6 Node Information supported query types query,
4963cde9171SAlan Somersrather than echo-request.
4973cde9171SAlan Somers.Fl s
4983cde9171SAlan Somershas no effect if
4993cde9171SAlan Somers.Fl O
5003cde9171SAlan Somersis specified.
5013cde9171SAlan Somers.It Fl u
5023cde9171SAlan SomersBy default,
5033cde9171SAlan Somers.Nm
5043cde9171SAlan Somersasks the kernel to fragment packets to fit into the minimum IPv6 MTU.
5053cde9171SAlan SomersThe
5063cde9171SAlan Somers.Fl u
5073cde9171SAlan Somersoption
5083cde9171SAlan Somerswill suppress the behavior in the following two levels:
5093cde9171SAlan Somerswhen the option is specified once, the behavior will be disabled for
5103cde9171SAlan Somersunicast packets.
5113cde9171SAlan SomersWhen the option is more than once, it will be disabled for both
5123cde9171SAlan Somersunicast and multicast packets.
5133cde9171SAlan Somers.It Fl Y
5143cde9171SAlan SomersSame as
5153cde9171SAlan Somers.Fl y ,
5163cde9171SAlan Somersbut with old packet format based on 03 draft.
5173cde9171SAlan SomersThis option is present for backward compatibility.
5183cde9171SAlan Somers.Fl s
5193cde9171SAlan Somershas no effect if
5203cde9171SAlan Somers.Fl y
5213cde9171SAlan Somersis specified.
5223cde9171SAlan Somers.It Fl y
5233cde9171SAlan SomersGenerate ICMPv6 Node Information DNS Name query, rather than echo-request.
5243cde9171SAlan Somers.Fl s
5253cde9171SAlan Somershas no effect if
5263cde9171SAlan Somers.Fl y
5273cde9171SAlan Somersis specified.
5283cde9171SAlan Somers.It Ar IPv6-hops
5293cde9171SAlan SomersIPv6 addresses for intermediate nodes,
5303cde9171SAlan Somerswhich will be put into type 0 routing header.
5313cde9171SAlan Somers.It Ar IPv6-host
5323cde9171SAlan SomersIPv6 address of the final destination node.
5333cde9171SAlan Somers.El
5343cde9171SAlan Somers.Ss Experimental options only for IPv6 target
5353cde9171SAlan Somers.Bl -tag -width indent
5363cde9171SAlan Somers.It Fl E
5373cde9171SAlan SomersEnables transport-mode IPsec encapsulated security payload.
5383cde9171SAlan Somers.It Fl Z
5393cde9171SAlan SomersEnables transport-mode IPsec authentication header.
5408fae3551SRodney W. Grimes.El
5418fae3551SRodney W. Grimes.Pp
5428fae3551SRodney W. GrimesWhen using
54350ceac88SJohn-Mark Gurney.Nm
5448fae3551SRodney W. Grimesfor fault isolation, it should first be run on the local host, to verify
5458fae3551SRodney W. Grimesthat the local network interface is up and running.
54650ceac88SJohn-Mark GurneyThen, hosts and gateways further and further away should be
54750ceac88SJohn-Mark Gurney.Dq pinged .
5488fae3551SRodney W. GrimesRound-trip times and packet loss statistics are computed.
5498fae3551SRodney W. GrimesIf duplicate packets are received, they are not included in the packet
5508fae3551SRodney W. Grimesloss calculation, although the round trip time of these packets is used
5513109a910SGarrett Wollmanin calculating the round-trip time statistics.
55250ceac88SJohn-Mark GurneyWhen the specified number of packets have been sent
553c4d9468eSRuslan Ermilov(and received)
55450ceac88SJohn-Mark Gurneyor if the program is terminated with a
5558fae3551SRodney W. Grimes.Dv SIGINT ,
5563109a910SGarrett Wollmana brief summary is displayed, showing the number of packets sent and
557605af08dSMaxim Konovalovreceived, and the minimum, mean, maximum, and standard deviation of
5583109a910SGarrett Wollmanthe round-trip times.
5598fae3551SRodney W. Grimes.Pp
560605af08dSMaxim KonovalovIf
561605af08dSMaxim Konovalov.Nm
562605af08dSMaxim Konovalovreceives a
563605af08dSMaxim Konovalov.Dv SIGINFO
564605af08dSMaxim Konovalov(see the
565605af08dSMaxim Konovalov.Cm status
566605af08dSMaxim Konovalovargument for
567605af08dSMaxim Konovalov.Xr stty 1 )
568605af08dSMaxim Konovalovsignal, the current number of packets sent and received, and the
5693cde9171SAlan Somersminimum, mean, maximum, and standard deviation of the round-trip times
5703cde9171SAlan Somerswill be written to the standard output.
571605af08dSMaxim Konovalov.Pp
5728fae3551SRodney W. GrimesThis program is intended for use in network testing, measurement and
5738fae3551SRodney W. Grimesmanagement.
5748fae3551SRodney W. GrimesBecause of the load it can impose on the network, it is unwise to use
57550ceac88SJohn-Mark Gurney.Nm
5768fae3551SRodney W. Grimesduring normal operations or from automated scripts.
5778fae3551SRodney W. Grimes.Sh ICMP PACKET DETAILS
5788fae3551SRodney W. GrimesAn IP header without options is 20 bytes.
5798fae3551SRodney W. GrimesAn
5808eb4df94SJose Luis DuranICMP
5818eb4df94SJose Luis DuranECHO_REQUEST
58250ceac88SJohn-Mark Gurneypacket contains an additional 8 bytes worth of
5838eb4df94SJose Luis DuranICMP
5848fae3551SRodney W. Grimesheader followed by an arbitrary amount of data.
5858fae3551SRodney W. GrimesWhen a
5868fae3551SRodney W. Grimes.Ar packetsize
58750ceac88SJohn-Mark Gurneyis given, this indicated the size of this extra piece of data
588c4d9468eSRuslan Ermilov(the default is 56).
5898fae3551SRodney W. GrimesThus the amount of data received inside of an IP packet of type
5908eb4df94SJose Luis DuranICMP
5918eb4df94SJose Luis DuranECHO_REPLY
5928fae3551SRodney W. Grimeswill always be 8 bytes more than the requested data space
593c4d9468eSRuslan Ermilov(the
5948eb4df94SJose Luis DuranICMP
595c4d9468eSRuslan Ermilovheader).
5968fae3551SRodney W. Grimes.Pp
5978fae3551SRodney W. GrimesIf the data space is at least eight bytes large,
59850ceac88SJohn-Mark Gurney.Nm
5998fae3551SRodney W. Grimesuses the first eight bytes of this space to include a timestamp which
6008fae3551SRodney W. Grimesit uses in the computation of round trip times.
6018fae3551SRodney W. GrimesIf less than eight bytes of pad are specified, no round trip times are
6028fae3551SRodney W. Grimesgiven.
6038fae3551SRodney W. Grimes.Sh DUPLICATE AND DAMAGED PACKETS
604e1205e80SPhilippe CharnierThe
605e1205e80SPhilippe Charnier.Nm
606e1205e80SPhilippe Charnierutility will report duplicate and damaged packets.
60785456935SBill FennerDuplicate packets should never occur when pinging a unicast address,
60885456935SBill Fennerand seem to be caused by
6098fae3551SRodney W. Grimesinappropriate link-level retransmissions.
61050ceac88SJohn-Mark GurneyDuplicates may occur in many situations and are rarely
611c4d9468eSRuslan Ermilov(if ever)
61250ceac88SJohn-Mark Gurneya good sign, although the presence of low levels of duplicates may not
6138fae3551SRodney W. Grimesalways be cause for alarm.
61485456935SBill FennerDuplicates are expected when pinging a broadcast or multicast address,
61585456935SBill Fennersince they are not really duplicates but replies from different hosts
61685456935SBill Fennerto the same request.
6178fae3551SRodney W. Grimes.Pp
6188fae3551SRodney W. GrimesDamaged packets are obviously serious cause for alarm and often
6198fae3551SRodney W. Grimesindicate broken hardware somewhere in the
620e345a80dSPhilippe Charnier.Nm
6213109a910SGarrett Wollmanpacket's path (in the network or in the hosts).
6228fae3551SRodney W. Grimes.Sh TRYING DIFFERENT DATA PATTERNS
62350ceac88SJohn-Mark GurneyThe
6243109a910SGarrett Wollman(inter)network
62550ceac88SJohn-Mark Gurneylayer should never treat packets differently depending on the data
62650ceac88SJohn-Mark Gurneycontained in the data portion.
6278fae3551SRodney W. GrimesUnfortunately, data-dependent problems have been known to sneak into
6288fae3551SRodney W. Grimesnetworks and remain undetected for long periods of time.
6298fae3551SRodney W. GrimesIn many cases the particular pattern that will have problems is something
6303109a910SGarrett Wollmanthat does not have sufficient
63150ceac88SJohn-Mark Gurney.Dq transitions ,
63250ceac88SJohn-Mark Gurneysuch as all ones or all zeros, or a pattern right at the edge, such as
63350ceac88SJohn-Mark Gurneyalmost all zeros.
6343109a910SGarrett WollmanIt is not
6353109a910SGarrett Wollmannecessarily enough to specify a data pattern of all zeros (for example)
63650ceac88SJohn-Mark Gurneyon the command line because the pattern that is of interest is
6378fae3551SRodney W. Grimesat the data link level, and the relationship between what you type and
6388fae3551SRodney W. Grimeswhat the controllers transmit can be complicated.
6398fae3551SRodney W. Grimes.Pp
6408fae3551SRodney W. GrimesThis means that if you have a data-dependent problem you will probably
6418fae3551SRodney W. Grimeshave to do a lot of testing to find it.
64250ceac88SJohn-Mark GurneyIf you are lucky, you may manage to find a file that either
6433109a910SGarrett Wollmancannot
64450ceac88SJohn-Mark Gurneybe sent across your network or that takes much longer to transfer than
64550ceac88SJohn-Mark Gurneyother similar length files.
6468fae3551SRodney W. GrimesYou can then examine this file for repeated patterns that you can test
6478fae3551SRodney W. Grimesusing the
6488fae3551SRodney W. Grimes.Fl p
6498fae3551SRodney W. Grimesoption of
6507c7fb079SRuslan Ermilov.Nm .
6513cde9171SAlan Somers.Sh IPv4 TTL DETAILS
6528fae3551SRodney W. GrimesThe
6538eb4df94SJose Luis DuranTTL
6548fae3551SRodney W. Grimesvalue of an IP packet represents the maximum number of IP routers
6558fae3551SRodney W. Grimesthat the packet can go through before being thrown away.
6568fae3551SRodney W. GrimesIn current practice you can expect each router in the Internet to decrement
6578fae3551SRodney W. Grimesthe
6588eb4df94SJose Luis DuranTTL
6598fae3551SRodney W. Grimesfield by exactly one.
6608fae3551SRodney W. Grimes.Pp
6618fae3551SRodney W. GrimesThe
6628eb4df94SJose Luis DuranTCP/IP
663a70dc556SRuslan Ermilovspecification recommends setting the
6648eb4df94SJose Luis DuranTTL
6658fae3551SRodney W. Grimesfield for
6668eb4df94SJose Luis DuranIP
6678eb4df94SJose Luis Duranpackets to 64.
6688fae3551SRodney W. Grimes.Pp
6698eb4df94SJose Luis DuranThe maximum possible value of this field is 255, and some
670e345a80dSPhilippe Charnier.Ux
671e345a80dSPhilippe Charniersystems set
6728fae3551SRodney W. Grimesthe
6738eb4df94SJose Luis DuranTTL
6748fae3551SRodney W. Grimesfield of
6758eb4df94SJose Luis DuranICMP ECHO_REQUEST
6768fae3551SRodney W. Grimespackets to 255.
67750ceac88SJohn-Mark GurneyThis is why you will find you can
67850ceac88SJohn-Mark Gurney.Dq ping
67950ceac88SJohn-Mark Gurneysome hosts, but not reach them with
6808fae3551SRodney W. Grimes.Xr telnet 1
6818fae3551SRodney W. Grimesor
6828fae3551SRodney W. Grimes.Xr ftp 1 .
6838fae3551SRodney W. Grimes.Pp
684e345a80dSPhilippe CharnierIn normal operation
685e345a80dSPhilippe Charnier.Nm
686e345a80dSPhilippe Charnierprints the ttl value from the packet it receives.
6878fae3551SRodney W. GrimesWhen a remote system receives a ping packet, it can do one of three things
6888fae3551SRodney W. Grimeswith the
6898eb4df94SJose Luis DuranTTL
6908fae3551SRodney W. Grimesfield in its response:
6918fae3551SRodney W. Grimes.Bl -bullet
6928fae3551SRodney W. Grimes.It
693e345a80dSPhilippe CharnierNot change it; this is what
694e345a80dSPhilippe Charnier.Bx
695e345a80dSPhilippe Charniersystems did before the
6968fae3551SRodney W. Grimes.Bx 4.3 tahoe
6978fae3551SRodney W. Grimesrelease.
6988fae3551SRodney W. GrimesIn this case the
6998eb4df94SJose Luis DuranTTL
7008fae3551SRodney W. Grimesvalue in the received packet will be 255 minus the
7018fae3551SRodney W. Grimesnumber of routers in the round-trip path.
7028fae3551SRodney W. Grimes.It
7038eb4df94SJose Luis DuranSet it to 64; this is what current
7048eb4df94SJose Luis Duran.Fx
7053109a910SGarrett Wollmansystems do.
7068fae3551SRodney W. GrimesIn this case the
7078eb4df94SJose Luis DuranTTL
7088eb4df94SJose Luis Duranvalue in the received packet will be 64 minus the
7098fae3551SRodney W. Grimesnumber of routers in the path
71050ceac88SJohn-Mark Gurney.Em from
7118fae3551SRodney W. Grimesthe remote system
7128fae3551SRodney W. Grimes.Em to
7138fae3551SRodney W. Grimesthe
71450ceac88SJohn-Mark Gurney.Nm Ns Em ing
7158fae3551SRodney W. Grimeshost.
7168fae3551SRodney W. Grimes.It
7178fae3551SRodney W. GrimesSet it to some other value.
7188fae3551SRodney W. GrimesSome machines use the same value for
7198eb4df94SJose Luis DuranICMP
7208fae3551SRodney W. Grimespackets that they use for
7218eb4df94SJose Luis DuranTCP
7228fae3551SRodney W. Grimespackets, for example either 30 or 60.
7238fae3551SRodney W. GrimesOthers may use completely wild values.
7248fae3551SRodney W. Grimes.El
7250c868e90SDaniel Gerzo.Sh EXIT STATUS
72643470e3bSGarrett WollmanThe
72750ceac88SJohn-Mark Gurney.Nm
7287f220ecfSDaniel Gerzoutility exits with one of the following values:
7297f220ecfSDaniel Gerzo.Bl -tag -width indent
7307f220ecfSDaniel Gerzo.It 0
7317f220ecfSDaniel GerzoAt least one response was heard from the specified
7327f220ecfSDaniel Gerzo.Ar host .
7337f220ecfSDaniel Gerzo.It 2
7347f220ecfSDaniel GerzoThe transmission was successful but no responses were received.
7357f220ecfSDaniel Gerzo.It any other value
7367f220ecfSDaniel GerzoAn error occurred.
7377f220ecfSDaniel Gerzo.El
7383cde9171SAlan Somers.Sh EXAMPLES
7393cde9171SAlan SomersThe following will send ICMPv6 echo request to
7408eb4df94SJose Luis Duran.Li dst.example.com .
7413cde9171SAlan Somers.Bd -literal -offset indent
7428eb4df94SJose Luis Duranping -6 -n dst.example.com
7433cde9171SAlan Somers.Ed
7443cde9171SAlan Somers.Pp
7453cde9171SAlan SomersThe following will probe hostnames for all nodes on the network link attached to
7463cde9171SAlan Somers.Li wi0
7473cde9171SAlan Somersinterface.
7483cde9171SAlan SomersThe address
7493cde9171SAlan Somers.Li ff02::1
7503cde9171SAlan Somersis named the link-local all-node multicast address, and the packet would
7513cde9171SAlan Somersreach every node on the network link.
7523cde9171SAlan Somers.Bd -literal -offset indent
7533cde9171SAlan Somersping -6 -y ff02::1%wi0
7543cde9171SAlan Somers.Ed
7553cde9171SAlan Somers.Pp
7563cde9171SAlan SomersThe following will probe addresses assigned to the destination node,
7578eb4df94SJose Luis Duran.Li dst.example.com .
7583cde9171SAlan Somers.Bd -literal -offset indent
7598eb4df94SJose Luis Duranping -6 -k agl dst.example.com
7603cde9171SAlan Somers.Ed
76143470e3bSGarrett Wollman.Sh SEE ALSO
76243470e3bSGarrett Wollman.Xr netstat 1 ,
7633c32812bSMaxim Konovalov.Xr icmp 4 ,
7643cde9171SAlan Somers.Xr icmp6 4 ,
7653cde9171SAlan Somers.Xr inet6 4 ,
7663cde9171SAlan Somers.Xr ip6 4 ,
76743470e3bSGarrett Wollman.Xr ifconfig 8 ,
76843470e3bSGarrett Wollman.Xr routed 8 ,
769ea0dd3caSGordon Bergling.Xr traceroute 8 ,
7703cde9171SAlan Somers.Xr traceroute6 8
7713cde9171SAlan Somers.Rs
7723cde9171SAlan Somers.%A A. Conta
7733cde9171SAlan Somers.%A S. Deering
7743cde9171SAlan Somers.%T "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification"
7753cde9171SAlan Somers.%N RFC 2463
7763cde9171SAlan Somers.%D December 1998
7773cde9171SAlan Somers.Re
7783cde9171SAlan Somers.Rs
7793cde9171SAlan Somers.%A Matt Crawford
7803cde9171SAlan Somers.%T "IPv6 Node Information Queries"
7813cde9171SAlan Somers.%N draft-ietf-ipngwg-icmp-name-lookups-09.txt
7823cde9171SAlan Somers.%D May 2002
7833cde9171SAlan Somers.%O work in progress material
7843cde9171SAlan Somers.Re
78543470e3bSGarrett Wollman.Sh HISTORY
78643470e3bSGarrett WollmanThe
78743470e3bSGarrett Wollman.Nm
788e1205e80SPhilippe Charnierutility appeared in
78943470e3bSGarrett Wollman.Bx 4.3 .
7903cde9171SAlan SomersThe
7913cde9171SAlan Somers.Nm ping6
7923cde9171SAlan Somersutility with IPv6 support first appeared in the WIDE Hydrangea IPv6
7933cde9171SAlan Somersprotocol stack kit.
7943cde9171SAlan Somers.Pp
7953cde9171SAlan SomersIPv6 and IPsec support based on the KAME Project
79683e66677SWolfram Schneider.Pq Pa https://www.kame.net/
7973cde9171SAlan Somersstack was initially integrated into
7983cde9171SAlan Somers.Fx 4.0 .
7993cde9171SAlan Somers.Pp
8003cde9171SAlan SomersThe
8013cde9171SAlan Somers.Nm ping6
8023cde9171SAlan Somersutility was merged to
8033cde9171SAlan Somers.Nm
8043cde9171SAlan Somersin Google Summer of Code 2019.
80543470e3bSGarrett Wollman.Sh AUTHORS
80643470e3bSGarrett WollmanThe original
80743470e3bSGarrett Wollman.Nm
808e1205e80SPhilippe Charnierutility was written by
80968085a0eSPhilippe Charnier.An Mike Muuss
81068085a0eSPhilippe Charnierwhile at the US Army Ballistics
81143470e3bSGarrett WollmanResearch Laboratory.
8128fae3551SRodney W. Grimes.Sh BUGS
8133cde9171SAlan SomersMany Hosts and Gateways ignore the IPv4
8148eb4df94SJose Luis DuranRECORD_ROUTE
8158fae3551SRodney W. Grimesoption.
8168fae3551SRodney W. Grimes.Pp
8178fae3551SRodney W. GrimesThe maximum IP header length is too small for options like
8188eb4df94SJose Luis DuranRECORD_ROUTE
81950ceac88SJohn-Mark Gurneyto be completely useful.
82050ceac88SJohn-Mark Gurney.No There Ap s
82150ceac88SJohn-Mark Gurneynot much that can be done about this, however.
8228fae3551SRodney W. Grimes.Pp
8238fae3551SRodney W. GrimesFlood pinging is not recommended in general, and flood pinging the
8248fae3551SRodney W. Grimesbroadcast address should only be done under very controlled conditions.
825ef9e6dc7SBill Fenner.Pp
826ef9e6dc7SBill FennerThe
827ef9e6dc7SBill Fenner.Fl v
828ef9e6dc7SBill Fenneroption is not worth much on busy hosts.
829