
104
View
Any view
Default level
0: Visit level
Parameters
-a
source-ip
: Specifies the source address for the echo request messages to be sent.
-c
count
: Specifies the number of echo request messages to be sent. The
count
parameter ranges from 1
to 4,294,967,295 and defaults to 5.
-exp
exp-value
: Specifies the EXP value for the echo request messages. The
exp-value
parameter ranges
from 0 to 7 and defaults to 0.
-h
ttl-value
: Specifies the TTL value for the echo request messages. The
ttl-value
parameter ranges from 1
to 255 and defaults to 255.
-m
wait-time
: Specifies the interval for sending echo request messages. The
wait-time
parameter ranges
from 1 to 10,000 milliseconds and defaults to 200 milliseconds.
-r
reply-mode
: Specifies the reply mode of the receiver in response to the echo request messages. The
reply-mode
parameter can be 1 or 2, where 1 means “Do not respond” and 2 means “Respond using a
UDP packet.” The default is 2.
-s
packet-size
: Specifies the payload length of the echo request messages. The
packet-size
parameter
ranges from 65 to 8100 bytes and defaults to 100 bytes.
-t
time-out
: Specifies the timeout interval for the response to an echo request message. The
time-out
parameter ranges from 0 to 65,535 milliseconds and defaults to 2000 milliseconds.
-v
: Displays detailed response information.
ipv4
dest-addr
mask-length
: Specifies to check the validity and reachability of the LSPs for a FEC.
dest-
addr
is the destination address of the FEC. The
mask-length
parameter is the length of the FEC destination
address mask and ranges from 0 to 32.
destination-ip-addr-header
: Specifies the destination address in the IP header of MPLS echo request
messages. It can be any address on segment 127.0.0.0/8—any local loopback address.
Examples
# Check the connectivity of the LSP to destination 3.3.3.9/32.
<Sysname> ping lsp ipv4 3.3.3.9 32
LSP Ping FEC: LDP IPV4 PREFIX 3.3.3.9/32 : 100 data bytes, press CTRL_C to break
Reply from 100.1.2.1: bytes=100 Sequence=0 time = 31 ms
Reply from 100.1.2.1: bytes=100 Sequence=1 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=2 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=3 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=4 time = 62 ms
--- FEC: LDP IPV4 PREFIX 3.3.3.9/32 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 31/55/62 ms