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: 14080
End value for SRLB range: 15999
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)|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)
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)|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)
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 capability entropy
Use this command to enable and configure entropy labels within the Segment Routing framework in ISIS instances.
For more information, see the segment-routing entropy-label section in the Entropy Labels for ISIS or OSPF Segment Routing chapter.
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 hsl mpls tunnel (tunnel-id VALUE|)
Use this command to display all the dependent backup next-hops of the specified tunnel.
Command Syntax
show hsl mpls tunnel (tunnel-id VALUE|)
Parameters
Tunnel-id
Tunnel ID
VALUE
Value of the Tunnel ID
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0. Enhanced the command for ECMP in OcNOS version 6.5.3.
Example
#show hsl mpls tunnel tunnel-id 2201
Tunnel Table
------------
Owner:I Destination FEC:10.10.10.10 Tunnel ID:2201 LSP ID:4 Lsp type:BPS NHLFE ID:17 Out Label:16010 Phy IfName:xe11 Out_mac:e8c5.7afe.f86b
UP_time:01:40:47 MPLS Ifname:mpls-tp500000 Tunnel mode:ingress Tnl_lock_count:0 Fib_id:0 Flag:0x0 Entropy:0
NextHop:2.10.1.10 fec:0x2000101d encap-opti:0x2000101f lport:0x800000b lsp_encap:0x40002050 ll_encap:0x40002051
bkp_info : failover_id 0x0 bkp_ifindex 0 bkp_nhlfe_ix 0
sec_info : failover_id 0x0 sec_ifindex 0 old_sec_ifindex 0 sec_nhlfe_ix 0
primary_lsp_ix 0 primary_nhlfe_ix 0 is_switched_to_bkp 0
Reference Count:5 Prefix count:0 VC count:0 LU-FTN count:0 ILM count:0 L3VPN RefCount:0 EVPN RefCount:0 SR-BKP-nh count:5
Dependent SR-BKP-NH
BKP : nhlfe_ix:1 out-label:3 out-intf:xe11 NextHop:2.10.1.10
fec:0x2000800b port:0x800000b lsp_encap:0x40002056 ll_encap:0x40002057
BKP : nhlfe_ix:1 out-label:3 out-intf:xe11 NextHop:2.10.1.10
fec:0x2000800f port:0x800000b lsp_encap:0x4000205d ll_encap:0x4000205e
BKP : nhlfe_ix:21 out-label:16015 out-intf:xe11 NextHop:2.10.1.10
fec:0x20008003 port:0x800000b lsp_encap:0x4000204f ll_encap:0x4000205f
BKP : nhlfe_ix:21 out-label:16015 out-intf:xe11 NextHop:2.10.1.10
fec:0x20008001 port:0x800000b lsp_encap:0x40002062 ll_encap:0x40002051
BKP : nhlfe_ix:21 out-label:16015 out-intf:xe11 NextHop:2.10.1.10
fec:0x20008005 port:0x800000b lsp_encap:0x40002064 ll_encap:0x40002051
#
show ip isis route tilfa
Use this command to display the Topology-Independent Loop-Free Alternate (TI-LFA) route. For an IS-IS IPv4 prefix with ECMP next-hops, ISIS will compute a backup for each ECMP next-hop of the prefix. This command displays the MPLS information of all the ECMP next-hops.
Command Syntax
show ip isis route (WORD|) tilfa
Parameters
WORD
Information for a single ISIS area
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0. Enhanced the command for ECMP in OcNOS version 6.5.3.
Example
#show ip isis route tilfa
 
Tag : 100 VRF : default
Codes : L1 - IS-IS level-1, L2 - IS-IS level-2,
C - Connected Routes, ia - IS-IS inter area
 
10.10.10.10/32
Route type: L1, FTN-ix :1 ILM-ix :3
SR Incoming Label : 16010
Primary Path Nexthop : 2.10.1.10, xe11
SR outgoing Label : 16010
PQ node : 15.15.15.15
Backup outgoing Label: 16010
Bypass_trunk id : 2202
Backup out interface : xe5
Protection Type : Link Protecting
Primary Path Nexthop : 2.15.1.15, xe5
SR outgoing Label : 16010
PQ node : 10.10.10.10
Backup outgoing Label: 3
Bypass_trunk id : 2201
Backup out interface : xe11
Protection Type : Node Protecting
 
Trunk : 2201 :10.10.10.10_nh_10011_ALG0 FTN-ix : 3 ref_cnt:3
Number Of outgoing label : 1
16010
Nexthop address : 2.10.1.10
 
 
15.15.15.15/32
Route type: L1, FTN-ix :2 ILM-ix :5
SR Incoming Label : 16015
Primary Path Nexthop : 2.15.1.15, xe5
SR outgoing Label : 16015
PQ node : 10.10.10.10
Backup outgoing Label: 16015
Bypass_trunk id : 2201
Backup out interface : xe11
Protection Type : Link Protecting
 
Trunk : 2202 :15.15.15.15_nh_10005_ALG0 FTN-ix : 4 ref_cnt:2
Number Of outgoing label : 1
16015
Nexthop address : 2.15.1.15
 
#
show isis tilfa pq
Use this command to display the Topology-Independent Loop-Free Alternate (TI-LFA) PQ nodes. For a node with ECMP next-hops, this command displays P nodes, Q nodes and PQ nodes of each ECMP next-hop.
Command Syntax
show isis (WORD|) tilfa pq
Parameters
WORD
Information for a single ISIS area
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0. Enhanced the command for ECMP in OcNOS version 6.5.3.
Example
When the command is executed by specifying system-id parameter
#show isis tilfa pq 7010.00-00
 
Tag 100: Level-1 Link State Database:
 
Node: 7010.00-00
Interface xe5
P node: 0000.0000.0010 primary dist:100
P node: 0000.0000.0015 primary dist:150
Q node: 0000.0000.0010
Q node: 0000.0000.0015
Node Protecting P Nodes
P node: 0000.0000.0010 primary dist:100
 
PQ Node: 7010.00-00 backup dist:100
PQ Node (Node Protection): 7010.00-00 backup dist:100
Interface xe11
P node: 0000.0000.0010 primary dist:100
P node: 0000.0000.0015 primary dist:50
Q node: 0000.0000.0010
Q node: 0000.0000.0015
Node Protecting P Nodes
P node: 0000.0000.0015 primary dist:50
 
PQ Node: 7015.00-00 backup dist:50
No PQ Node found on backup path (Node Protection)
#
 
When the command is executed by specifying hostname parameter,
#show isis tilfa pq 7010
 
Tag 100: Level-1 Link State Database:
 
Node: 7010.00-00
Interface xe5
P node: 0000.0000.0010 primary dist:100
P node: 0000.0000.0015 primary dist:150
Q node: 0000.0000.0010
Q node: 0000.0000.0015
Node Protecting P Nodes
P node: 0000.0000.0010 primary dist:100
 
PQ Node: 7010.00-00 backup dist:100
PQ Node (Node Protection): 7010.00-00 backup dist:100
Interface xe11
P node: 0000.0000.0010 primary dist:100
P node: 0000.0000.0015 primary dist:50
Q node: 0000.0000.0010
Q node: 0000.0000.0015
Node Protecting P Nodes
P node: 0000.0000.0015 primary dist:50
 
PQ Node: 7015.00-00 backup dist:50
No PQ Node found on backup path (Node Protection)
#
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. For a node with ECMP next-hops, this command displays P nodes, Q nodes and PQ nodes.
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. Enhanced the command for ECMP in OcNOS version 6.5.3.
Example
#show ip ospf tilfa-backup-path
 
OSPF process 100:
Route [10.10.10.10]
Primary Path Nexthop : 2.10.1.10, xe11
PQ-node: 15.15.15.15
Primary Path Nexthop : 2.15.1.15, xe5
PQ-node: 10.10.10.10
Route [15.15.15.15]
Primary Path Nexthop : 2.15.1.15, xe5
PQ-node: 10.10.10.10
Neighbor [10.10.10.10]
PQ-node: 15.15.15.15
Neighbor [15.15.15.15]
PQ-node: 10.10.10.10
 
Displaying vertex-info in tilfa_network table
Vertex [2.2.2.2]
 
Vertex [10.10.10.10]
Interface: xe11
P node: 10.10.10.10 dist: 100
P node: 15.15.15.15 dist: 50
Q node: 10.10.10.10
Q node: 15.15.15.15
PQ-node: 15.15.15.15
Backup out-interface: xe5
Interface: xe5
P node: 15.15.15.15 dist: 50
P node: 10.10.10.10 dist: 100
Q node: 10.10.10.10
Q node: 15.15.15.15
PQ-node: 10.10.10.10
Backup out-interface: xe11
 
Vertex [15.15.15.15]
Interface: xe5
P node: 15.15.15.15 dist: 50
P node: 10.10.10.10 dist: 100
Q node: 10.10.10.10
Q node: 15.15.15.15
PQ-node: 10.10.10.10
Backup out-interface: xe11
 
#
show ip ospf tilfa-repair-list
Use this command to display the Topology-Independent Loop-Free Alternate (TI-LFA) repair list. For an OSPFv2 IPv4 prefix with ECMP next-hops, this command displays the MPLS information.
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. Enhanced this command for ECMP in OcNOS version 6.5.3.
Example
#show ip ospf tilfa-repair-list
 
2.2.2.2/32
Primary Path Metric :1
2.10.1.0/24
Primary Path Metric :100
2.15.1.0/24
Primary Path Metric :50
10.10.10.10/32
Primary Path Metric :101
Route ftnix:5 ilmix:8
SR Incoming Label : 19010
Primary Path Nexthop : 2.10.1.10, xe11
SR outgoing Label : 19010
PQ-node: 15.15.15.15
Backup outgoing Label : 19010
Bypass_trunk id :101
Backup out interface: xe5
Primary Path Nexthop : 2.15.1.15, xe5
SR outgoing Label : 19010
PQ-node: 10.10.10.10
Backup outgoing Label : 3
Bypass_trunk id :102
Backup out interface: xe11
 
Bypass-Trunk: 102 Name: 10.10.10.10_nexthop__10011 ftn_ix:8
ftn_info->trunk_ftn_ix : 8, ref_cnt : 3
Number Of outgoing label: 1
Outgoing labels:
label 1: 19010
Nexthop address: 2.10.1.10
 
10.15.1.0/24
Primary Path Metric :100
15.15.15.15/32
Primary Path Metric :51
Route ftnix:6 ilmix:10
SR Incoming Label : 19015
Primary Path Nexthop : 2.15.1.15, xe5
SR outgoing Label : 19015
PQ-node: 10.10.10.10
Backup outgoing Label : 19015
Bypass_trunk id :102
Backup out interface: xe11
 
Bypass-Trunk: 101 Name: 15.15.15.15_nexthop__10005 ftn_ix:7
ftn_info->trunk_ftn_ix : 7, ref_cnt : 2
Number Of outgoing label: 1
Outgoing labels:
label 1: 19015
Nexthop address: 2.15.1.15
 
#
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 mpls counters sr-policy ((policy-name NAME) |)
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 |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)
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: 16500]
R 1 10.0.1.1 [Labels: 16500] 0.97 ms
! 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 |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)
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: 16500]
R 1 10.0.1.1 [Labels: 16500] 0.97 ms
! 2 10.0.1.33 3.90 ms