Usage guidelines
The periodic MPLS traceroute function automatically traces an LSP tunnel at a specific interval. It locates
errors on the LSP tunnel, verifies the consistency of the data plane and control plane, and records the
detected errors into system logs. You can check the logs to monitor LSP connectivity.
If both BFD and periodic MPLS traceroute are configured for an LSP and the periodic traceroute function
detects a data plane and control plane inconsistency, the device deletes the BFD session for the LSP and
reestablishes the BFD session based on the control plane.
Examples
# Enable periodic traceroute for LSPs to destination 1 1.1 1.1.1/32.
<Sysname> system-view
[Sysname] mpls periodic-tracert 11.11.1.1 32
Related commands
mpls bfd (for LSP)
ping mpls ipv4
Use ping mpls ipv4 to verify MPLS LSP connectivity for an IPv4 prefix.
Syntax
ping mpls [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -rtos
tos-value | -s packet-size | -t time-out | -v ] * ipv4 dest-addr mask-length [ destination start-address
[ end-address [ address-increment ] ] ]
Views
Any view
Predefined user roles
network-admin
mdc-admin
Parameters
-a source-ip: Specifies the source address for MPLS echo request packets. If you do not specify this option,
the device uses the primary IP address of the outgoing interface as the source address for MPLS echo
requests.
-c count: Specifies the number of MPLS echo request packets to be sent with the same destination address
in the IP header. The value range is 1 to 4294967295. The default is 5.
-exp exp-value: Specifies the EXP value for MPLS echo request packets, in the range of 0 to 7. The default
is 0.
-h ttl-value: Specifies the TTL value for MPLS echo request packets, in the range of 1 to 255. The default
is 255.
-m wait-time: Specifies the interval for sending MPLS echo request packets, in the range of 1 to 10000
milliseconds. The default is 200 milliseconds.
-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The
reply-mode argument can be 1, 2, or 3. 1 means "Do not reply," 2 means "Reply by using a UDP
packet," and 3 means "Reply by using a UDP packet that carries the Router Alert option." The default is
2.
142