trace mpls generic
Use this command to isolate the failure point of an LSP. This command is used for hop-by-hop fault localization and path tracing. The MPLS LSP traceroute feature relies on the expiration of the Time to Live (TTL) value of the packet that carries the echo request.
Use the trace mpls generic command when an LSP traverses across multiple domains, such as segment routing and LDP domains in case of an SR-LDP interoperability use case.
Command Syntax
trace mpls generic (ipv4 A.B.C.D/M)({reply-mode (2|3)|flags | destination A.B.C.D | source A.B.C.D | ttl <1-255> | timeout <1-500> | repeat <5-5000> | interval <2-20000> | force-explicit-null | detail}|)
Parameters
ipv4
IPv4 address
A.B.C.D/M
IPv4 prefix address
reply-mode
Reply mode
2
Reply via UDP/IP packet (default)
3
Reply via UDP/IP packet with router alert
flags
Validate FEC stack
destination
Destination address
A.B.C.D
IPv4 address of the destination
source
Source address
A.B.C.D
IPv4 address of the source
ttl
Trace packet Time-to-live
<1-255>
Trace packet TTL value
timeout
Time to wait before rejecting the probe as a failure
<1-500>
Timeout in seconds
repeat
Repeat sending of ping packets
<5-5000>
Number of pings to send
interval
Interval between ping packets
<2-20000>
Interval in milliseconds
force-explicit-null
Force Explicit Null label
detail
Print detailed output of the ping
Defaults
Default TTL is 255.
Default timeout is 60 seconds.
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.0.1.
Example
#trace mpls generic ipv4 10.0.1.33/32 destination 127.1.0.1 source 10.0.1.11 detail
Tracing MPLS Label Switched Path to 2.32.0.0, timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
Type 'Ctrl+C' to abort
0 10.11.1.1 [Labels: 4 16500]
R 1 10.0.1.1 [Labels: 16500] 0.97 ms
1 10.11.1.1 [Labels: 4 16500]
! 2 10.0.1.33 3.90 ms
Last modified date: 10/20/2023