ping mpls sr-policy
Use this command to check the connectivity between ingress and egress of LSP. This command uses MPLS echo request and reply messages, similar to Internet Control Message Protocol (ICMP) echo request and reply messages, to validate an LSP.
Segment routing ping is an extension of the MPLS LSP ping to perform connectivity verification on the segment routing control plane.
You can initiate the segment routing ping operation only when the segment routing control plane is available at the originator.
Command Syntax
ping mpls (protocol-origin (local | pcep) | ) sr-policy SR_POLICY_NAME (| candidate-path CANDIDATE_PATH_ID ({flags | source A.B.C.D | ttl <1-255> | timeout <1-500> | repeat <5-5000> | interval <2-20000> | force-explicit-null | detail}|)
Parameters
local
Locally originated candidate path
pce
PCE originated candidate path
SR_POLICY_NAME
Segment routing policy name
CANDIDATE_PATH_ID
Candidate path identifier
flags
Validate FEC stack
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 4.0.
Example
#ping mpls protocol-origin pcep sr-policy SR_POLICY_1 candidate-path 1
Last modified date: 10/20/2023