2
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
module-name
: Specifies a module by its name. To display the current module name, use the
display
debugging ?
command.
Examples
# Display all enabled debugging functions.
<Sysname> display debugging
DEV debugging switch is on
Related commands
debugging
ping
Use
ping
to verify whether the destination IP address is reachable, and display related statistics.
Syntax
ping
[
ip
] [
-a
source-ip
|
-c
count
|
-f
|
-h
ttl
|
-i
interface-type interface-number
|
-m
interval
|
-n
|
-p
pad
|
-q
|
-r
|
-s
packet-size
|
-t
timeout
|
-tos
tos
|
-v
|
-vpn-instance
vpn-instance-name
] *
host
Views
Any view
Predefined user roles
network-admin
mdc-admin
Parameters
ip
: Distinguishes between a destination host name and the
ping
command keywords if the name of
the destination host is
i
,
ip
,
ipv
,
ipv6
,
l
,
ls
, or
lsp
. For example, you must use the command in the
form of
ping ip ip
instead of
ping ip
if the destination host name is
ip
.
-a
source-ip
: Specifies an IP address of the device as the source IP address of ICMP echo requests.
If this option is not specified, the source IP address of ICMP echo requests is the primary IP address
of the outbound interface.
-c
count
: Specifies the number of ICMP echo requests that are sent to the destination. The value
range is 1 to 4294967295, and the default is 5.
-f
: Sets the "do-not-fragment" bit in the IP header.
-h
ttl
: Specifies the TTL value of ICMP echo requests. The value range is 1 to 255, and the default is
255.
-i
interface-type interface-number
: Specifies the source interface for ICMP echo requests. If you do
not specify this option, the system uses the primary IP address of the matching route's egress
interface as the source interface for ICMP echo requests.