1 .\" $NetBSD: ping6.8,v 1.26 2006/05/05 00:03:22 rpaulo Exp $
2 .\" $KAME: ping6.8,v 1.57 2002/05/26 13:18:25 itojun Exp $
4 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the project nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .Tn ICMPv6 ECHO_REQUEST
38 packets to network hosts
41 .\" without IPsec, or new IPsec
44 .\" .Op Fl AdEfnNqRtvwW
77 .Op Fl S Ar sourceaddr
80 .Op Fl s Ar packetsize
93 .Tn ICMP6_ECHO_REQUEST
96 from a host or gateway.
97 .Tn ICMP6_ECHO_REQUEST
98 datagrams (``pings'') have an IPv6 header,
101 header formatted as documented in RFC 2463.
102 The options are as follows:
106 .\" Enables transport-mode IPsec authentication header
107 .\" .Pq experimental .
109 Generate ICMPv6 Node Information Node Addresses query, rather than echo-request.
111 must be a string constructed of the following characters.
112 .Bl -tag -width Ds -compact
114 requests unicast addresses from all of the responder's interfaces.
115 If the character is omitted,
116 only those addresses which belong to the interface which has the
117 responder's address are requests.
119 requests responder's IPv4-compatible and IPv4-mapped addresses.
121 requests responder's global-scope addresses.
123 requests responder's site-local addresses.
125 requests responder's link-local addresses.
127 requests responder's anycast addresses.
128 Without this character, the responder will return unicast addresses only.
129 With this character, the responder will return anycast addresses only.
130 Note that the specification does not specify how to get responder's
132 This is an experimental option.
135 Set socket buffer size.
145 option on the socket being used.
147 .\" Enables transport-mode IPsec encapsulated security payload
148 .\" .Pq experimental .
151 Outputs packets as fast as they come back or one hundred times per second,
157 is printed, while for every
159 received a backspace is printed.
160 This provides a rapid display of how many packets are being dropped.
161 Only the super-user may use this option.
163 This can be very hard on a network and should be used with caution.
168 as the next hop to the destination.
169 The gateway must be a neighbor of the sending node.
171 Specifies to try reverse-lookup of IPv6 addresses.
174 command does not try reverse-lookup unless the option is specified.
176 Set the IPv6 hoplimit.
177 .It Fl I Ar interface
178 Source packets with the given interface address.
179 This flag applies if the ping destination is a multicast address,
180 or link-local/site-local unicast address.
185 .Em between sending each packet .
186 The default is to wait for one second between each packet.
187 This option is incompatible with the
195 sends that many packets as fast as possible before falling into its normal
197 Only the super-user may use this option.
201 asks the kernel to fragment packets to fit into the minimum IPv6 MTU.
203 will suppress the behavior in the following two levels:
204 when the option is specified once, the behavior will be disabled for
206 When the option is specified more than once, it will be disabled for both
207 unicast and multicast packets.
210 No attempt will be made to lookup symbolic names from addresses in the reply.
212 Probe node information multicast group
213 .Pq Li ff02::2:xxxx:xxxx .
215 must be string hostname of the target
216 .Pq must not be a numeric IPv6 address .
217 Node information multicast group will be computed based on given
219 and will be used as the final destination.
220 Since node information multicast group is a link-local multicast group,
221 outgoing interface needs to be specified by
225 You may specify up to 16
227 bytes to fill out the packet you send.
228 This is useful for diagnosing data-dependent problems in a network.
231 will cause the sent packet to be filled with all
236 specifies IPsec policy to be used for the probe.
239 Nothing is displayed except the summary lines at startup time and
242 Make the kernel believe that the target
250 is reachable, by injecting upper-layer reachability confirmation hint.
251 The option is meaningful only if the target
255 .It Fl S Ar sourceaddr
256 Specifies the source address of request packets.
257 The source address must be one of the unicast addresses of the sending node,
259 .It Fl s Ar packetsize
260 Specifies the number of data bytes to be sent.
261 The default is 56, which translates into 64
263 data bytes when combined
267 You may need to specify
269 as well to extend socket buffer size.
271 Generate ICMPv6 Node Information supported query types query,
272 rather than echo-request.
282 that are received are listed.
284 Generate ICMPv6 Node Information DNS Name query, rather than echo-request.
292 but with old packet format based on 03 draft.
293 This option is present for backward compatibility.
299 IPv6 addresses for intermediate nodes,
300 which will be put into type 0 routing header.
302 IPv6 address of the final destination node.
307 for fault isolation, it should first be run on the local host, to verify
308 that the local network interface is up and running.
309 Then, hosts and gateways further and further away should be
311 Round-trip times and packet loss statistics are computed.
312 If duplicate packets are received, they are not included in the packet
313 loss calculation, although the round trip time of these packets is used
314 in calculating the round-trip time statistics.
315 When the specified number of packets have been sent
317 or if the program is terminated with a
319 a brief summary is displayed, showing the number of packets sent and
320 received, and the minimum, maximum, mean, and standard deviation of
321 the round-trip times.
323 This program is intended for use in network testing, measurement and
325 Because of the load it can impose on the network, it is unwise to use
327 during normal operations or from automated scripts.
328 .\" .Sh ICMP PACKET DETAILS
329 .\" An IP header without options is 20 bytes.
333 .\" packet contains an additional 8 bytes worth of
335 .\" header followed by an arbitrary amount of data.
338 .\" is given, this indicated the size of this extra piece of data
339 .\" .Pq the default is 56 .
340 .\" Thus the amount of data received inside of an IP packet of type
343 .\" will always be 8 bytes more than the requested data space
344 .\" .Pq the Tn ICMP header .
346 .\" If the data space is at least eight bytes large,
348 .\" uses the first eight bytes of this space to include a timestamp which
349 .\" it uses in the computation of round trip times.
350 .\" If less than eight bytes of pad are specified, no round trip times are
352 .Sh DUPLICATE AND DAMAGED PACKETS
354 will report duplicate and damaged packets.
355 Duplicate packets should never occur when pinging a unicast address,
356 and seem to be caused by
357 inappropriate link-level retransmissions.
358 Duplicates may occur in many situations and are rarely
360 a good sign, although the presence of low levels of duplicates may not
361 always be cause for alarm.
362 Duplicates are expected when pinging a multicast address,
363 since they are not really duplicates but replies from different hosts
366 Damaged packets are obviously serious cause for alarm and often
367 indicate broken hardware somewhere in the
370 .Pq in the network or in the hosts .
371 .Sh TRYING DIFFERENT DATA PATTERNS
374 layer should never treat packets differently depending on the data
375 contained in the data portion.
376 Unfortunately, data-dependent problems have been known to sneak into
377 networks and remain undetected for long periods of time.
378 In many cases the particular pattern that will have problems is something
379 that does not have sufficient
381 such as all ones or all zeros, or a pattern right at the edge, such as
384 necessarily enough to specify a data pattern of all zeros (for example)
385 on the command line because the pattern that is of interest is
386 at the data link level, and the relationship between what you type and
387 what the controllers transmit can be complicated.
389 This means that if you have a data-dependent problem you will probably
390 have to do a lot of testing to find it.
391 If you are lucky, you may manage to find a file that either
393 be sent across your network or that takes much longer to transfer than
394 other similar length files.
395 You can then examine this file for repeated patterns that you can test
402 exits with 0 on success (the host is alive),
403 and non-zero if the arguments are incorrect or the host is not responding.
409 would work; the following will send ICMPv6 echo request to
411 .Bd -literal -offset indent
415 The following will probe hostnames for all nodes on the network link attached to
420 is named the link-local all-node multicast address, and the packet would
421 reach every node on the network link.
422 .Bd -literal -offset indent
426 The following will probe addresses assigned to the destination node,
428 .Bd -literal -offset indent
429 ping6 -a agl dst.foo.com
444 .%T "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification"
450 .%T "IPv6 Node Information Queries"
451 .%N draft-ietf-ipngwg-icmp-name-lookups-09.txt
453 .%O work in progress material
462 command with IPv6 support first appeared in the WIDE Hydrangea IPv6
467 is intentionally separate from