OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing Commands
Segment Routing Commands
This chapter describes each segment routing command.
adjacency-sid
Use this command to add a adjacency segment identifier (adjacency-SID) to the primary address of an interface.
You can only configure adjacency-SIDs for point-to-point links and not for broadcast links.
Use the no form of this command to remove an adjacency-SID.
Command Syntax
adjacency-sid (absolute <16-1048575>|index <0-1048575>)
no adjacency-sid
Parameters
<16-1048575>
Absolute adjacency-SID allocated from the Segment Routing Local Block (SRLB).
<0-1048575>
Index adjacency-SID if SRLB values are different across segment routing nodes.
Defaults
N/A
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 6.1.0.
Examples
#configure terminal
(config)#interface ce4
(config-if)#ip address 16.0.0.20/24
(config-if)#label-switching
(config-if)#ip ospf network point-to-point
(config-if)#adjacency-sid index 1000
(config-if)#commit
(config-if)#exit
 
clear mpls counters isis-segment-routing
Use this command to clear traffic statistics for isis-segment-routing FTNs and ILMs.
Command Syntax
clear mpls counters isis-segment-routing (ftn (|A.B.C.D/M) | ilm (|A.B.C.D/M))
Parameters
isis-segment-routing
isis segment-routing ftn's/ilm statistics
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#clear mpls counters isis-segment-routing ftn
#clear mpls counters isis-segment-routing ilm
 
 
clear mpls counters ospf-segment-routing
Use this command to clear traffic statistics for ospf-segment-routing FTNs and ILMs.
Command Syntax
clear mpls counters ospf-segment-routing (ftn (|A.B.C.D/M) | ilm (|A.B.C.D/M))
Parameters
ospf-segment-routing
ospf segment-routing ftn's/ilm statistics
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#clear mpls counters ospf-segment-routing ftn
#clear mpls counters ospf-segment-routing ilm
 
 
 
 
 
clear mpls counters sr-policy
Use this command to clear traffic statistics for sr-policy.
Command Syntax
clear mpls counters sr-policy ((policy-name NAME) |)
Parameters
policy-name
segment-routing policy name
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#clear mpls counters sr-policy
#clear mpls counters sr-policy policy-name p1
 
debug ip ospf tilfa
Use this command to enable debugging for OSPF Topology-Independent Loop-Free Alternate (TI-LFA).
Use the no form of this command to disable debugging for OSPF TI-LFA.
Command Syntax
debug ip ospf tilfa
no debug ip ospf tilfa
undebug ospf tilfa
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Example
#debug ip ospf tilfa
debug isis sr
Use this command to enable debugging for ISIS segment routing.
Use the no form of this command to disable debugging for ISIS segment routing.
Command Syntax
debug isis sr
no debug isis sr
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#debug isis sr
 
debug isis tilfa
Use this command to enable debugging for ISIS Topology-Independent Loop-Free Alternate (TI-LFA).
Use the no form of this command to disable debugging for ISIS TI-LFA.
Command Syntax
debug isis tilfa
undebug isis tilfa
no debug isis tilfa
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Example
#debug ospf tilfa
debug ospf sr
Use this command to enable debugging for OSPF segment routing.
Use the no form of this command to disable debugging for OSPF segment routing.
Command Syntax
debug ospf sr
debug ip ospf sr
no debug ospf sr
no debug ip ospf sr
undebug ospf sr
undebug ip ospf sr
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#debug ospf sr
fast-reroute per-prefix ti-lfa area (OSPFv2)
Use this command to enable Topology-Independent Loop-Free Alternate (TI-LFA) per area. TI-LFA uses segment routing to provide link, node, and Shared Risk Link Groups (SRLG) protection in topologies where other fast reroute techniques, such as RLFA (Remote Loop Free Alternative) cannot provide protection.
Use the no form of this command to disable TI-LFA.
Command Syntax
fast-reroute per-prefix ti-lfa area (A.B.C.D|<0-4294967295>)
no fast-reroute per-prefix ti-lfa area (A.B.C.D|<0-4294967295>)
Parameters
A.B.C.D
OSPF area ID in IPv4 address format.
<0-4294967295>
 
OSPF area ID as a decimal value.
Default
TI-LFA is disabled.
Command Mode
OSPF router mode
Applicability
This command was introduced in OcNOS version 4.0.
Examples
#configure terminal
(config)#router ospf 1
(config-router)#fast-reroute per-prefix ti-lfa area 2
(config-router)#no fast-reroute per-prefix ti-lfa area 2
 
fast-reroute ti-lfa (ISIS)
Use this command to enable Topology-Independent Loop-Free Alternate (TI-LFA) per level. TI-LFA uses segment routing to provide link, node, and Shared Risk Link Groups (SRLG) protection in topologies where other fast reroute techniques, such as RLFA (Remote Loop Free Alternative) cannot provide protection.
Use the no form of this command to disable TI-LFA.
Command Syntax
fast-reroute ti-lfa (level-1 | level-2) proto ipv4
no fast-reroute ti-lfa (level-1 | level-2) proto ipv4
Parameters
level-1
Level 1 only.
level-2
Level 2 only.
Default
TI-LFA is disabled.
Command Mode
ISIS router mode
Applicability
This command was introduced in OcNOS version 4.0.
Examples
#configure terminal
(config)#router isis 100
(config-router)#fast-reroute ti-lfa level-2 proto ipv4
(config-router)#no fast-reroute ti-lfa level-2 proto ipv4
global block
Use this command to configure a segment routing global block (SRGB).
Use the no form of this command to remove segment-routing global block.
Note: The allocation of the desirable SRGB will depend upon the availability of the desirable pool. If there is any conflict or any protocol is already using any label/pool of labels which is falling between SRGB range, SRGB will not be allocated and an error will be prompted.
Note: You cannot configure a SRGB for an IGP instance which is outside globally configured SRGB (or default SRGB if SRGB is not configured). An error will be returned if you configure segment-routing mpls and try to use a block outside the globally configured SRGB (default range is 16000-23999).
Note: You cannot remove a globally configured SRGB if any IGP instance has SRGB configured locally and being used.
Note: You can modify SRGB only if the newly configured SRGB range does not affect any IGP instance having local SRGB configuration. A newly configured SRGB must include an IGP configured SRGB range.
Note: If you have not configured SRGB inside an IGP instance and has segment-routing mpls configuration configured, any change in global SRGB configuration will take into effect at IGP instance level only after the user toggles segment-routing mpls configuration.
Note: The maximum allowed block size for SRGB is 262143 (25% of complete label pool).
Command Syntax
global block <16-1048575> <16-1048575>
no global block
Parameters
<16-1048575>
SRGB start and end values
Default
Start value of SRGB range: 16000
End value of SRGB range: 23999
Command Mode
Segment routing mode
Applicability
This command was introduced in OcNOS version 4.0 and the SRGB range changed in OcNOS version 6.1.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#global block 17000 18000
(config-sr)#
isis segment-routing global block
Use this command to set the Segment Routing Global Block (SRGB) range at each node. The SRGB is the range of labels reserved for segment routing. In MPLS, SRGB is the set of labels reserved for global segments.
SRGB range must be configured as non-overlapping range for each IGP instances and also for each IGP protocols. IGP protocols must use SRGB range within the globally configured SRGB value or default SRGB value if no global SRGB is configured.
Use the no form of this command to remove an SRGB range. Segment routing must be disabled before removing a particular range.
Command Syntax
isis segment-routing global block <16-1048575> <16-1048575>
no isis segment-routing global block
Parameters
<16-1048575>
Start and end values of the SRGB range
Defaults
Start value of SRGB range: 16000
End value of SRGB range: 23999
Command Mode
ISIS router mode
Applicability
This command was introduced in OcNOS version 4.0 and the SRGB range changed in OcNOS version 6.1.0.
Example
#configure terminal
(config)#router isis bb
(config-router)#isis segment-routing global block 17000 19000
local block
Use this command to configure a segment routing local block (SRLB).
Use the no form of this command to remove a segment routing local block.
Command Syntax
local block <16-1048575> <16-1048575>
no local block
Parameters
<16-1048575>
SRLB start and end values
Default
Start value for SRLB range: 24320
End value for SRLB range: 25319
Command Mode
Segment routing mode
Applicability
This command was introduced in OcNOS version 6.1.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#global block 10001 20000
(config-sr)#local block 100000 109999
 
mpls sr-prefer
Use this command to prefer segment routing MPLS entries over LDP entries for forwarding.
Use the no form of this command to remove this configuration.
Command Syntax
mpls sr-prefer
no mpls sr-prefer
Parameters
None
Default
By default, mpls sr-prefer is not configured and LDP labels are preferred over SR.
Command Mode
Segment-routing mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#mpls sr-prefer
(config-sr)#
ospf segment-routing global block
Use this command to set the Segment Routing Global Block (SRGB) range at each node. The SRGB is the range of labels reserved for segment routing. In MPLS, SRGB is the set of labels reserved for global segments.
SRGB range must be configured as non-overlapping range for each IGP instances and also for each IGP protocols. IGP protocols must use SRGB range within the globally configured SRGB value or default SRGB value if no global SRGB is configured.
Use the no form of this command to remove an SRGB range. Segment routing must be disabled before removing a particular range.
Command Syntax
ospf segment-routing global block <16-1048575> <16-1048575>
no ospf segment-routing global block
Parameters
<16-1048575>
Start and end values of the SRGB range
Defaults
Start value of SRGB range: 16000
End value of SRGB range: 23999
Command Mode
OSPF router mode
Applicability
This command was introduced in OcNOS version 4.0 and the SRGB range changed in OcNOS version 6.1.0.
Example
#configure terminal
(config)#router ospf bb
(config-router)#ospf segment-routing global block 17000 19000
ping mpls
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. Use this command to check connectivity if an LSP traverses entirely through a segment routing domain.
You can initiate the segment routing ping operation only when the segment routing control plane is available at the originator.
Command Syntax
ping mpls (ospf-sr | isis-sr) (ipv4 A.B.C.D/M ) ({reply-mode (1|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
ospf-sr
OSPF
isis-sr
ISIS
ipv4
IPv4 address
A.B.C.D/M
IPv4 prefix address
reply-mode
Reply mode
1
Do not reply
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 4.0.
Example
#ping mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 flags detail
Sending 5 MPLS Echos 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
 
! seq_num = 1 0.0.0.0 1.98 ms
! seq_num = 2 0.0.0.0 1.68 ms
! seq_num = 3 0.0.0.0 1.37 ms
! seq_num = 4 0.0.0.0 1.59 ms
! seq_num = 5 0.0.0.0 1.85 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.37/1.67/1.98
ping mpls generic
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.
Use the ping mpls generic command to verify connectivity for an LSP that traverses across multiple-domains, such as segment routing and LDP domains in the case of an SR-LDP interoperability use case.
You can initiate the segment routing ping operation only when the segment routing control plane is available at the originator.
Command Syntax
ping mpls generic (ipv4 A.B.C.D/M)({reply-mode (1|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
1
Do not reply
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
#ping mpls generic ipv4 10.0.1.33/32 destination 127.1.0.1 flags detail
Sending 5 MPLS Echos 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
 
! seq_num = 1 0.0.0.0 1.98 ms
! seq_num = 2 0.0.0.0 1.68 ms
! seq_num = 3 0.0.0.0 1.37 ms
! seq_num = 4 0.0.0.0 1.59 ms
! seq_num = 5 0.0.0.0 1.85 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.37/1.67/1.98
prefix-sid
Use this command to add a prefix segment identifier (prefix-SID) to the primary address of an interface. A prefix-SID corresponds to an MPLS label.
Use the no form of this command to remove a prefix-SID.
Note: You must configure a prefix-SID for each prefix on the interface manually the same as for configuring IP addresses.
Note: OcNOS does not check whether the SID index or absolute value is within the SRGB's range when the SID is configured on the interface. If you configure an index/absolute value that is out of range of the configured SRGB, you will not see any error message while doing the configuration. An Oper log will be shown when you try to advertise this entry via IGP and the entry will not be advertised/installed if it falls outside the SRGB. While configuring SID value, you must make sure that indices are configured in such a way that they do not exceed the SRGB max value. For example, if the SRGB range is 100000-300000, you must not configure an index beyond 200000 and the absolute SID value must be within 100000-300000.
Command Syntax
prefix-sid (absolute <16-1048575>|index <0-1048575>) (explicit-null|no-php|)(n-flag-clear|)
no prefix-sid
Parameters
<16-1048575>
Absolute prefix-SID allocated from the Segment Routing Global Block (SRGB).
<0-1048575>
Index prefix-SID if SRGB values are different across segment routing nodes.
explicit-null
Any upstream neighbor of the prefix-SID originator must replace the prefix-SID with a prefix-SID having an explicit NULL value (0 for IPv4) before forwarding the packet
no-php
The penultimate hop must not pop the prefix-SID before delivering the packet to the node that advertised the prefix-SID
n-flag-clear
The prefix-SID does not represent the node originating the prefix-SID
Defaults
Penultimate hop popping (PHP) is enabled by default if you do not specify the no-php parameter.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 4.0 and the prefix-SID range changed in OcNOS version 6.1.0.
Examples
#configure terminal
(config)#interface loopback0
(config-if)#prefix-sid index 404
 
#configure terminal
(config)#interface loopback0
(config-if)#prefix-sid absolute 19004 no-php n-flag-clear
segment-routing mpls
Use this command to enable MPLS-based segment routing for an ISIS or OSPF process.
Use the no form of this command to disable segment routing for an ISIS or OSPF process.
Command Syntax
segment-routing mpls
no segment-routing mpls
Parameters
None
Defaults
None
Command Mode
OSPF or ISIS router mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#router ospf 100
(config-router)#segment-routing mpls
 
#configure terminal
(config)#router isis 101
(config-router)#segment-routing mpls
 
show ip ospf segment-routing announce-list
Use this command to display the self-originated link-state advertisement (LSA) prefix type-length-value (TLV) list.
Command Syntax
show ip ospf (<0-65535>|) segment-routing announce-list
Parameters
<0-65535>
Router process identifier.
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#sh ip ospf segment-routing announce-list
------------------------
Area 0.0.0.1
Instance 1
--------------
Prefix:10.0.0.0/24
Origin Adv-Router:1.1.1.1
Route-Type:3
------------------------
show ip ospf segment-routing capability
Use this command to display the segment routing capabilities of OSPF advertisement routers.
Command Syntax
show ip ospf (<0-65535>|) segment-routing capability
Parameters
<0-65535>
Router process identifier
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#sh ip ospf segment-routing capability
-----------------------------------------------------
Advertisement Router Capability :13.13.13.1
Algorithm :0
Total SID'S Supported :8000
SID Range List Count :1
SID's Range :16000 - 1048575
-----------------------------------------------------
Advertisement Router Capability :14.14.14.1
Algorithm :0
Total SID'S Supported :8000
SID Range List Count :1
SID's Range :16000 - 1048575
-----------------------------------------------------
show ip ospf segment-routing mapping-table
Use this command to display active/inactive segment routing prefix-to-SID mapping entries. After conflict resolution mapping entries area added to either active or inactive list.
Syntax
show ip ospf (<0-65535>|) segment-routing mapping-table (active| inactive|) (detail|)
Parameters
<0-65535>
Router process identifier
active
Active entries after conflict resolution
inactive
Inactive entries after conflict resolution
detail
Details
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#show ip ospf segment-routing mapping-table active
OSPF process ID: 0
Conflict Resolution Policy: Quarantine
 
Prefix SID Index Range Flags
5.5.5.5/32 555 1
 
Number of mapping entries in Active Table: 1
 
 
#show ip ospf segment-routing mapping-table inactive detail
OSPF process ID: 0
Conflict Resolution Policy: Quarantine
 
Prefix
5.5.5.5/32
SID Index: 666
Range: 1
Last Prefix: 5.5.5.5/32
Last SID Index: 666
Binding Flags:
SRMS pref: 128
Status: INACTIVE
Advertising Router: 7.7.7.7
Prefix Flags: 32
 
Number of mapping entries in Inactive Table: 1
show ip ospf segment-routing state
Use this command to display segment routing state details.
Command Syntax
show ip ospf (<0-65535>|) segment-routing state
Parameters
<0-65535>
Router process identifier
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#show ip ospf 123 segment-routing state
 
OSPF process 123 Segment-Routing:
SR State: SR_ENABLED
SRGB Start: 17000, SRGB Range: 18000
Operational state: enabled
 
show ip ospf tilfa-backup-path
Use this command to display the Topology-Independent Loop-Free Alternate (TI-LFA) post convergence path.
Command Syntax
show ip ospf tilfa-backup-path
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 4.0.
Example
#show ip ospf tilfa-backup-path
OSPF process 100:
Route [1.1.1.1]
NO PQ node
Route [1.1.1.2]
NO PQ node
Route [1.1.1.3]
PQ-node: 1.1.1.5
Route [1.1.1.4]
PQ-node: 1.1.1.5
Route [1.1.1.5]
PQ-node: 1.1.1.4
Route [1.1.1.6]
PQ-node: 1.1.1.4
Route [1.1.1.7]
PQ-node: 1.1.1.5
Route [10.1.2.0]
NO PQ node
Route [10.2.3.0]
NO PQ node
Route [10.2.6.0]
NO PQ node
Route [10.3.4.0]
NO PQ node
Route [10.3.7.0]
NO PQ node
Route [10.3.8.0]
NO PQ node
Route [10.4.5.0]
NO PQ node
Route [10.5.6.0]
NO PQ node
 
Displaying vertex-info in tilfa_network table
Vertex [1.1.1.1]
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.7 dist: 2
P node: 1.1.1.3 dist: 1
P node: 1.1.1.6 dist: 1
Vertex [1.1.1.2]
No P Nodes
No Q Nodes
Vertex [1.1.1.3]
P node: 1.1.1.1 dist: 1
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.6 dist: 1
Q node: 1.1.1.4 dist: 2
Topology-Independent Loop-Free Alternate
Q node: 1.1.1.5 dist: 2
Q node: 1.1.1.7 dist: 2
PQ-node: 1.1.1.5
Backup out-interface: eth3
Vertex [1.1.1.4]
P node: 1.1.1.1 dist: 1
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.6 dist: 1
Q node: 1.1.1.4 dist: 2
Q node: 1.1.1.5 dist: 2
Q node: 1.1.1.7 dist: 2
PQ-node: 1.1.1.5
Backup out-interface: eth3
Vertex [1.1.1.5]
P node: 1.1.1.1 dist: 1
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.7 dist: 2
P node: 1.1.1.3 dist: 1
Q node: 1.1.1.4 dist: 2
Q node: 1.1.1.5 dist: 2
PQ-node: 1.1.1.4
Backup out-interface: eth2
Vertex [1.1.1.6]
P node: 1.1.1.1 dist: 1
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.7 dist: 2
P node: 1.1.1.3 dist: 1
Q node: 1.1.1.4 dist: 2
Q node: 1.1.1.5 dist: 2
PQ-node: 1.1.1.4
Backup out-interface: eth2
Vertex [1.1.1.7]
P node: 1.1.1.1 dist: 1
P node: 1.1.1.4 dist: 2
P node: 1.1.1.5 dist: 2
P node: 1.1.1.6 dist: 1
Q node: 1.1.1.4 dist: 2
Q node: 1.1.1.5 dist: 2
Q node: 1.1.1.7 dist: 2
PQ-node: 1.1.1.5
Backup out-interface: eth3
 
show ip ospf tilfa-repair-list
Use this command to display the Topology-Independent Loop-Free Alternate (TI-LFA) repair list.
Command Syntax
show ip ospf tilfa-repair-list
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 4.0.
Example
#show ip ospf tilfa-repair-list
1.1.1.1/32
Primary Path Metric :2
Primary Path Nexthop : 10.1.2.1, eth1
Route ftnix:1 ilmix:1
SR Incoming Label : 16001
SR outgoing Label : 3
NO PQ node
1.1.1.2/32
Primary Path Metric :1
Primary Path Nexthop : 1.1.1.2, lo
Route ftnix:0 ilmix:0
NO PQ node
1.1.1.3/32
Primary Path Metric :2
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:2 ilmix:3
SR Incoming Label : 16003
SR outgoing Label : 3
PQ-node: 1.1.1.5
Backup ftnix:8 ilmix:17
Backup outgoing Label : 16003
Bypass_trunk id :101
Backup out interface: eth3
1.1.1.4/32
Primary Path Metric :3
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:3 ilmix:5
SR Incoming Label : 16004
SR outgoing Label : 16004
PQ-node: 1.1.1.5
Backup ftnix:9 ilmix:18
Backup outgoing Label : 16004
Bypass_trunk id :101
Backup out interface: eth3
Bypass-Trunk: 102 Name: 1.1.1.4_nexthop__10006 ftn_ix:7
ftn_info->trunk_ftn_ix : 7
Number Of outgoing label 1:
16004
Nexthop address: 10.2.3.2
1.1.1.5/32
Primary Path Metric :3
Primary Path Nexthop : 10.2.6.2, eth3
Topology-Independent Loop-Free Alternate
Route ftnix:4 ilmix:6
SR Incoming Label : 16005
SR outgoing Label : 16005
PQ-node: 1.1.1.4
Backup ftnix:10 ilmix:19
Backup outgoing Label : 16005
Bypass_trunk id :102
Backup out interface: eth2
Bypass-Trunk: 101 Name: 1.1.1.5_nexthop__10007 ftn_ix:6
ftn_info->trunk_ftn_ix : 6
Number Of outgoing label 1:
16005
Nexthop address: 10.2.6.2
1.1.1.6/32
Primary Path Metric :2
Primary Path Nexthop : 10.2.6.2, eth3
Route ftnix:5 ilmix:7
SR Incoming Label : 16006
SR outgoing Label : 3
PQ-node: 1.1.1.4
Backup ftnix:11 ilmix:20
Backup outgoing Label : 16006
Bypass_trunk id :102
Backup out interface: eth2
1.1.1.7/32
Primary Path Metric :3
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:12 ilmix:15
SR Incoming Label : 16007
SR outgoing Label : 16007
PQ-node: 1.1.1.5
Backup ftnix:13 ilmix:21
Backup outgoing Label : 16007
Bypass_trunk id :101
Backup out interface: eth3
10.1.2.0/24
Primary Path Metric :1
Primary Path Nexthop : 10.1.2.2, eth1
Route ftnix:0 ilmix:0
NO PQ node
10.2.3.0/24
Primary Path Metric :1
Topology-Independent Loop-Free Alternate
1250 © 2021 IP Infusion Inc. Proprietary
Primary Path Nexthop : 10.2.3.1, eth2
Route ftnix:0 ilmix:0
NO PQ node
10.2.6.0/24
Primary Path Metric :1
Primary Path Nexthop : 10.2.6.1, eth3
Route ftnix:0 ilmix:0
NO PQ node
10.3.4.0/24
Primary Path Metric :2
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:0 ilmix:0
NO PQ node
10.3.7.0/24
Primary Path Metric :2
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:0 ilmix:0
NO PQ node
10.3.8.0/24
Primary Path Metric :2
Primary Path Nexthop : 10.2.3.2, eth2
Route ftnix:0 ilmix:0
NO PQ node
10.4.5.0/24
Primary Path Metric :3
Primary Path Nexthop : 10.2.6.2, eth3
Route ftnix:0 ilmix:0
NO PQ node
10.5.6.0/24
Primary Path Metric :2
Primary Path Nexthop : 10.2.6.2, eth3
Route ftnix:0 ilmix:0
NO PQ node
 
 
show isis segment-routing capability
Use this command to display the segment routing capabilities of ISIS advertisement routers.
Command Syntax
show isis (WORD|) segment-routing capability
Parameters
WORD
Routing area tag
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#sh isis segment-routing capability
-----------------------------------------------------
Advertisement Router Capability :13.13.13.1
Algorithm :0
Total SID'S Supported :8000
SID Range List Count :1
SID's Range :16000 - 1048575
-----------------------------------------------------
Advertisement Router Capability :14.14.14.1
Algorithm :0
Total SID'S Supported :8000
SID Range List Count :1
SID's Range :16000 - 1048575
-----------------------------------------------------
show isis segment-routing mapping-table
Use this command to display active/inactive segment routing prefix-to-SID mapping entries.
Command Syntax
show isis (WORD|) segment-routing mapping-table ipv4 (active| inactive) (detail|)
Parameters
WORD
Routing area tag
active
Active entries after conflict resolution
inactive
Inactive entries after conflict resolution
detail
Details
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#show isis segment-routing mapping-table ipv4 active
Tag 1 Segment-Routing:
Conflict Resolution Policy: Quarantine
 
Prefix SID Index Range Flags
10.0.12.0/24 21 1
30.0.14.0/31 22 1
1.1.1.1/32 10 1
Number of mapping entries in Active IPv4 Table: 3
 
show isis segment-routing state
Use this command to display the segment routing state.
Command Syntax
show isis (WORD|) segment-routing state
Parameters
WORD
Routing area tag
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#show isis segment-routing state
Tag 1 Segment-Routing:
SR State: SR_ENABLED
SRGB Start: 16000, SRGB Range: 3001
Operational state: enabled
show mpls counters isis-segment-routing
Use this command to display traffic statistics for isis-segment-routing FTNs and ILMs.
Command Syntax
show mpls counters isis-segment-routing (ftn (A.B.C.D/M|)) | (ilm (A.B.C.D/M|))
Parameters
isis-segment-routing
isis segment-routing ftn's/ilm statistics
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Note: Note: For Qumran, counters are not available for transit nodes.
Example
#show mpls counters isis-segment-routing ftn 3.3.3.3/32
+------------------+-----------+--------------------+--------------------+
| FEC | out-label | Tx packets | Tx bytes |
+------------------+-----------+--------------------+--------------------+
3.3.3.3/32 16004 7270160 58161640
 
#show mpls counters isis-segment-routing ilm 3.3.3.3/32
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
| FEC | in-label | out-label | Rx packets | Rx bytes | Tx packets | Tx bytes |
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
3.3.3.3/32 16004 16004 0 0 0 0
#
 
 
Table 1-1 explains the show command output fields.
 
Table 1-1: show mpls counters isis-segment-routing
Field
Description
FTN statistics
Displays the statistics details of FTN.
ILM statistics
Displays the statistics details of ILM.
FEC
Displays the Forward Equivalency Class (FEC) for this entry.
In-label
Displays the ingress (incoming interface) label for this segment.
Out-label
Displays the egress (outgoing interface) label for this segment.
Rx packets
Number of SR labeled(SID) packets received from the neighbor.
Rx bytes
Size SR labeled(SID) packets received from the neighbor.
Tx packets
Number of SR labeled(SID) labeled packets sent to the neighbor.
Tx bytes
Size of SR labeled(SID) packets sent to the neighbor.
show mpls counters ospf-segment-routing
Use this command to display traffic statistics for ospf-segment-routing FTNs and ILMs.
Command Syntax
show mpls counters ospf-segment-routing (ftn (A.B.C.D/M|)) | (ilm (A.B.C.D/M|))
Parameters
ospf-segment-routing
ospf segment-routing ftn's/ilm statistics
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Note: Note: For Qumran, counters are not available for transit nodes.
Example
#show mpls counters ospf-segment-routing ftn 3.3.3.3/32
+------------------+-----------+--------------------+--------------------+
| FEC | out-label | Tx packets | Tx bytes |
+------------------+-----------+--------------------+--------------------+
3.3.3.3/32 16004 7270160 58161640
 
#show mpls counters ospf-segment-routing ilm 3.3.3.3/32
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
| FEC | in-label | out-label | Rx packets | Rx bytes | Tx packets | Tx bytes |
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
3.3.3.3/32 16004 16004 0 0 0 0
#
 
 
 
Table 1-2 explains the show command output fields.
 
Table 1-2: show mpls counters ospf-segment-routing
Field
Description
FTN statistics
Displays the statistics details of FTN.
ILM statistics
Displays the statistics details of ILM.
FEC
Displays the Forward Equivalency Class (FEC) for this entry.
In-label
Displays the ingress (incoming interface) label for this segment.
Out-label
Displays the egress (outgoing interface) label for this segment.
Rx packets
Number of SR labeled(SID) packets received from the neighbor.
Rx bytes
Size SR labeled(SID) packets received from the neighbor.
Tx packets
Number of SR labeled(SID) labeled packets sent to the neighbor.
Tx bytes
Size of SR labeled(SID) packets sent to the neighbor.
 
show mpls counters sr-policy
Use this command to display traffic statistics for Segment Routing Policies.
Command Syntax
show isis (WORD|) segment-routing state
Parameters
policy-name
segment-routing policy name
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Note: Note: For Qumran, counters are not available for transit nodes.
Example
#show mpls counters sr-policy policy-name p1
policy-name : p1
Tunnel-ID : 1
Rx pkts : 0 Rx bytes : 0
Tx pkts : 7270160 Tx bytes : 581614640
7039#show mpls counters sr-policy
policy-name : p1
Tunnel-ID : 1
Rx pkts : 0 Rx bytes : 0
Tx pkts : 9610670 Tx bytes : 768855600
 
 
Table 1-3 explains the show command output fields.
Table 1-3: show mpls counters sr-policy output field
Field
Description
policy-name
Segment-routing policy name.
Rx packets
Number of SR labeled(SID) packets received from the neighbor.
Rx bytes
Size of sr labeled packets(SID) received from the neighbor.
Tx packets
Number of SR labeled(SID) packets sent to the neighbor.
Tx bytes
Size of SR labeled(SID) packets sent to the neighbor.
 
 
trace mpls
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.
You can initiate the segment routing traceroute operation only when the segment routing control plane is available at the originator. Use this command to check connectivity if an LSP traverses entirely through a segment routing domain
Command Syntax
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
ospf-sr
OSPF
isis-sr
ISIS
ipv4
IPv4 address
A.B.C.D/M
IPv4 prefix address
SR_POLICY_NAME
Segment routing policy name
CANDIDATE_PATH_ID
 
Candidate path identifier
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 4.0.
Example
#trace mpls ospf-sr 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
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