-rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range
is 0 to 7, and the default value is 6.
-s packet-size: Specifies the length (excluding the IP header and UDP header) of an MPLS echo request
packet. The value for the packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.
-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to
65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief
reply information.
dest-addr mask-length: Specifies an FEC by an IPv4 destination address and a mask length. The value
range for the mask-length argument is 0 to 32.
destination: Specifies the destination address in the IP header of MPLS echo requests. The default is
127.0.0.1.
start-address: Specifies the destination address or the start destination address. This address must be an
address on subnet 127.0.0.0/8—a local loopback address. If the start-address argument is specified
without the end-address argument, the start-address is the destination address in the IP header. The
number of MPLS echo requests to be sent is determined by the -c count keyword. If you specify both the
start-address argument and the end-address argument, you specify a range of destination addresses and
the destination addresses increase in turn by the address-increment, starting from the start-address to the
end-address. The number of MPLS echo requests to be sent with each of the destination addresses is
determined by the -c count keyword.
end-address: Specifies the end destination address. This address must be an address on subnet
127.0.0.0/8—a local loopback address.
address-increment: Specifies the increment value by which the destination address in the IP header
increases in turn. The value range is 1 to 16777215 and the default value is 1.
Examples
# Verify the connectivity of LSPs to destination 3.3.3.9/32.
<Sysname> ping mpls ipv4 3.3.3.9 32
MPLS ping FEC 3.3.3.9/32 with 100 bytes of data:
100 bytes from 100.1.2.1: Sequence=1 time=49 ms
100 bytes from 100.1.2.1: Sequence=2 time=44 ms
100 bytes from 100.1.2.1: Sequence=3 time=60 ms
100 bytes from 100.1.2.1: Sequence=4 time=60 ms
100 bytes from 100.1.2.1: Sequence=5 time=76 ms
--- Ping statistics for FEC 3.3.3.9/32 ---
5 packets transmitted, 5 packets received, 0.0% packet loss
Round-trip min/avg/max = 44/57/76 ms
# Verify the connectivity of LSPs to destination 3.3.3.9/32, and specify the following parameters:
Set the number of MPLS echo requests to be sent with the same destination address to 3.
•
Display detailed reply information.
•
Specify the range of destination addresses in IP headers as 127.0.0.1 to 127.0.0.3, and set the
•
destination address increment value to 2. With this configuration, the destination addresses are
127.0.0.1 and 127.0.0.3.
<Sysname> ping mpls –c 3 –v ipv4 3.3.3.9 32 destination 127.0.0.1 127.0.0.3 2
MPLS ping FEC 3.3.3.9/32 with 100 bytes of data:
143