
6
-t
timeout
: Specifies the timeout value (in milliseconds) of an ICMPv6 echo reply, which is in the range of
0 to 65535 and defaults to 2000.
host
: Specifies the IPv6 address or host name of the destination, a string of 1 to 46 characters.
-i
interface-type interface-number
: Specifies an outbound interface by its type and number. This
parameter can be used only when the destination address is the link local address and the specified
outbound interface must have a link local address. For more information about the configuration of a link
local address, see
Layer 3—IP Services Configuration Guide
. If this parameter is not provided, the ICMP
echo request sending interface is determined by searching the routing table or forwarding table
according to the destination IP address.
-vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN to which the destination belongs, where
vpn-instance-name
is a case-sensitive string of 1 to 31 characters. If the destination is on the public
network, do not specify this option.
Description
Use the
ping ipv6
command to verify whether an IPv6 address is reachable, and display the
corresponding statistics.
To use the name of the destination host to perform the ping operation, you must configure DNS on the
device first. Otherwise, the ping operation fails. For more information about DNS, see
Layer 3—IP
Services Configuration Guide
. You must use the command in the form of
ping ipv6
ipv6
instead of
ping
ipv6
if the destination name is an ipv6 name.
To abort the ping ipv6 operation during the execution of the command, press
Ctrl+C
.
Examples
# Verify whether the IPv6 address 2001::1 is reachable.
<Sysname> ping ipv6 2001::1
PING 2001::2 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 62 ms
Reply from 2001::1
bytes=56 Sequence=2 hop limit=64 time = 26 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 20 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 4 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 16 ms
--- 2001::2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/25/62 ms
# Verify whether the IPv6 address 2001::1 in VPN 1 is reachable.
<Sysname> ping ipv6 –vpn-instance vpn1 2001::1
PING 2001::1 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 62 ms
Reply from 2001::1