trace mpls
Use this command to trace the route traversed by a specified echo request packet in an MPLS protocol. Trace requests can be configured for LDP, RSVP, L2 VC, VPLS, Segment Routing and L3 VPN label switched paths.
trace mpls (6pe default X:X::X:X/M|ldp A.B.C.D/M|rsvp (tunnel-name NAME|egress A.B.C.D)|l3vpn VRFNAME A.B.C.D/M|ipv4 A.B.C.D/M) ({reply-mode (2)|flags|destination A.B.C.D|source A.B.C.D|timeout <1-500>|force-explicit-null|detail}|)
trace mpls (ospf-sr | isis-sr )(ipv4 A.B.C.D/M | sr-policy SR_POLICY_NAME candidate-path CANDIDATE_PATH_ID)({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
6pe
FEC type is 6pe
default
VPN Instance Name (default)
X:X::X:X/M
6pe prefix address
ldp
FEC type is LDP
A.B.C.D/M
LDP prefix address
rsvp
FEC type is RSVP
tunnel-name
RSVP tunnel name
NAME
Tunnel name string
egress
RSVP tunnel egress
A.B.C.D
RSVP tunnel egress address
l3vpn
FEC type is MPLS VPN (L3-VPN)
VRFNAME
VPN instance name
A.B.C.D./M
VPN prefix
ipv4
FEC type generic; use for static/SNMP label switched paths
A.B.C.D/M
IPv4 prefix address
X:X::X:X/M
VPNv6 prefix
Ospf-sr
SR Protocol OSPF
Isis-sr
SR protocol ISIS
Ipv4
IPV4 FEC
A.B.C.D/M
Prefix with mask
Sr-policy
SR policy trace
SR_POLICY_NAME
SR policy name
Candidate-path
candidate path in sr policy
CANDIDATE_PATH_ID
candidate path id
reply-mode
Reply mode, one of
2
Reply via UDP/IP packet (default)
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
timeout
Time to wait before rejecting the probe as a failure, in seconds
<1-500>
Timeout value
force-explicit-null
Force Explicit NULL label
detail
Print detailed output of the trace probe
Defaults
Default timeout value is 60 seconds.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3. The SR trace command was introduced in OcNOS version 4.1.
Examples
#trace mpls ipv4 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls l3vpn vrfa 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls ldp 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls rsvp egress 1.2.3.5 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls rsvp tunnel-name tun1 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
# trace mpls isis-sr ipv4 2.2.2.2/32 detail
# trace mpls ospf-sr ipv4 2.2.2.2/32 detail
# trace mpls isis-sr sr-policy aaa candidate-path 1
# trace mpls ospf-sr sr-policy ABC candidate-path 1
Last modified date: 07/17/2023