Tests network connectivity between hosts (IPv6).
The ping6 command is the IPv6 version of the ping utility. It uses ICMPv6 to send Echo Request messages and receive Echo Replies to verify if an IPv6 destination is reachable. To use it successfully, your local environment must be configured for IPv6.
ping6 [options] [destination] [interface]
-a [addrtype]: Generate ICMPv6 Node Information Node Address Queries.
-b [bufsiz]: Set the socket buffer size.
-c [count]: Stop after sending (and receiving) <count> ECHO_RESPONSE packets.
-h [hoplimit]: Set the IPv6 hop limit.
-I [interface]: Send packets via the specified interface.
-i [wait]: Wait <wait> seconds between sending each packet (default is 1 second).
-p [policy]: Specify an IPsec policy for the probe.
Destination: The IPv6 address or hostname of the target host.
$ ping6 -c4 ipw.cn
PING6(56=40+8+8 bytes) 2409:xxxx:xxxx:85c0::2 --> 2409:8c70:3a00:42:3a::1
16 bytes from 2409:8c70:3a00:42:3a::1, icmp_seq=0 hlim=54 time=31.236 ms
...
--- ipw.cn ping6 statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 28.973/29.791/31.236/0.862 ms
::/0).