< Home

ping ipv6 (upgrade-compatible command)

Function

The ping ipv6 command tests whether an IPv6 network and a host are reachable.

Format

ping ipv6 [ -a source-ip-address | -c count | -m time | -s packetsize | -t timeout | -tc traffic-class-value | vpn6-instance vpn6-instance-name | -h hop-limit-value | -name ] * host [ -i interface-type interface-number ]

Parameters

Parameter Description Value

-a source-ip-address

Specifies a source IPv6 address of the Internet Control Message Protocol (ICMP) ECHO-REQUEST message. If the source IPv6 address is not specified, the IPv6 address of the outbound interface is used as the source IPv6 address of the ICMP ECHO-REQUEST message.

-

-c count

Specifies the number of ICMP Echo-Request messages to be sent.

ping command is run, an ICMP Echo-Request message carrying a sequence number is sent. The sequence number of the ICMP ECHO-REQUEST message starts from 1 and is increased by 1. By default, a maximum of five ICMP ECHO-REQUEST messages are sent. You can set the number of ICMP ECHO-REQUEST messages to be sent through the parameter count. If the destination is reachable, the source can receive five ICMP Echo Reply messages from the destination, with sequence numbers corresponding to those of ICMP ECHO-REQUEST messages.

In the case of a poor network quality, you can set this parameter to a comparatively large value to check the network quality according to the packet loss percentage.

The value is an integer ranging from 1 to 4294967295. The default value is 5.

-m time

Specifies a period for waiting for the next ICMP ECHO-REQUEST message. Each time the source sends an ICMP ECHO-REQUEST message through the ping command, it waits a period of time (500 ms by default) before sending the next ICMP ECHO-REQUEST message. You can set the period for waiting for the next ICMP ECHO-REQUEST message through the parameter time. In the case of poor network condition, the value should be greater than 500, in ms.

The value is an integer ranging from 1 to 10000, in ms. The default value is 500.

-s packetsize

Specifies the length of an ICMP ECHO-REQUEST message, excluding the IP header and ICMP header.

The value is an integer ranging from 20 to 9600, in bytes. The default value is 56.

-t timeout

Specifies the timeout period for waiting for an ICMP Echo Response message after an ICMP ECHO-REQUEST message is sent. After the ping command is run, the source sends an ICMP ECHO-REQUEST message to a destination and then waits for an ICMP Echo Response message. If the destination, after receiving the ICMP ECHO-REQUEST message, returns an ICMP Echo Response message to the source within the period specified by the parameter timeout, it indicates that the destination is reachable. If the destination does not returns an ICMP Echo Response message within the specified period, the source displays that the message times out. Normally, the source receives an ICMP Echo Response message 1 to 10 seconds after sending an ICMP ECHO-REQUEST message. If the transmission speed is not satisfying, you can use this parameter to increase the timeout period for waiting for an ICMP Echo Response message after an ICMP ECHO-REQUEST message is sent.

The value is an integer ranging from 0 to 65535, in ms. The default value is 2000.

-tc traffic-class-value

Specifies a traffic classification in the ICMP ECHO-REQUEST message.

The value is an integer that ranges from 0 to 255. The default value is 0.

-vpn6-instance vpn6-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 characters, spaces not supported.

-h hop-limit-value

Specifies a value of the TTL. Each time if the TTL field is decreased to 0 during message forwarding, the router that the message reaches sends an ICMP timeout message to the source, indicating that the destination is unreachable.

The value is an integer ranging from 1 to 255. The default value is the same as the maximum number of hops specified in the ipv6 nd hop-limit command.

-name

Displays the host name of the destination address.

-

host

Specifies a domain name or an IPv6 address of the destination host.

The value is a string of 1 to 255characters.

NOTE:

If the parameter value is an IP address, set the format of the parameter to X:X:X:X:X:X:X:X.

-i interface-type interface-number

Specifies an interface for sending ICMP ECHO-REQUEST messages.

NOTE:

In the case of the broadcast links (on the Ethernet), the destination address is the next hop address of the ICMP ECHO-REQUEST message.

-

Views

All views

Default Level

0: Visit level

Usage Guidelines

This command is available to aid upgrade compatibility. To run this command, you must enter the complete command.

After the upgrade, this command is no longer supported, and it is replaced by ping ipv6.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic