ping ipv6

Syntax

ping ipv6 [ -a source-ipv6 | -c count | -m interval | -s packet-size | -t timeout | -tos tos ] * host [ -i interface-type interface-number ]

View

Any view

Default level

0: Visit level

Parameters

-a source-ipv6: Specifies the source IPv6 address of an ICMP echo request. It must be a legal IPv6 address configured on the device. If this option is not specified, the source IPv6 address of an ICMP echo request is the address of the outbound interface of the request. The address selection rule is defined by RFC 3484.

-c count: Specifies the number of times that an ICMPv6 echo request is sent, which is in the range of 1 to 4294967295 and defaults to 5.

-m interval: Specifies the interval (in milliseconds) to send an ICMPv6 echo reply, which is in the range of 1 to 65535 and defaults to 200.

-s packet-size: Specifies the length (in bytes) of an ICMPv6 echo request, which is in the range of 20 to 8100 and defaults to 56.

-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.

-tos tos: Specifies the ToS value for an IPv6 echo request, which is in the range of 0 to 255 and defaults to 0.

host: Specifies the IPv6 address or host name of the destination, a string of 1 to 255 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.

Description

Use ping ipv6 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 ipv6 operation, you must configure DNS on the device first. Otherwise, the ping ipv6 operation fails. For more information about DNS, see Layer 3—IP Services Configuration Guide.

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

The "hop limit" field in this prompt information has the same meaning as the "ttl" field in the prompt information displayed by the IPv4 ping command, indicating the TTL value in the ICMPv6 echo request. For a description of other fields, see Table 1.