118
Segment Routing Command Reference for Cisco ASR 9000 Series Routers First Published: 2015-09-01 Last Modified: 2019-04-30 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883

Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

  • Upload
    others

  • View
    22

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Segment Routing Command Reference for Cisco ASR 9000 SeriesRoutersFirst Published: 2015-09-01

Last Modified: 2019-04-30

Americas HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706USAhttp://www.cisco.comTel: 408 526-4000

800 553-NETS (6387)Fax: 408 527-0883

Page 2: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITHTHE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version ofthe UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.

NOTWITHSTANDING ANY OTHERWARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS.CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUTLIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERSHAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, networktopology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentionaland coincidental.

All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version.

Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at www.cisco.com/go/offices.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.comgo trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and anyother company. (1721R)

© 2015–2019 Cisco Systems, Inc. All rights reserved.

Page 3: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

C O N T E N T S

Preface viiP R E F A C E

Changes to This Document vii

Communications, Services, and Additional Information viii

Segment Routing Commands 1C H A P T E R 1

address ipv4 (PCE) 3

adjacency-sid 4

advertise-definition 6

affinity exclude-any 7

affinity flex-algo 8

affinity-map (flexible algorithm) 9

apply-weight ecmp-only bandwidth 10

attribute-set 11

autoroute announce 13

autoroute destination 14

clear segment-routing local-block discrepancy all 15

clear traffic-collector ipv4 counters prefix 16

clear traffic-collector ipv4 counters tunnels 17

disjoint-path (PCE) 18

egress-engineering 19

explicit-path 20

fast-detect sbfd 21

fast-reroute 22

flex-algo 24

group-id type (PCE) 25

hw-module profile segment-routing srv6 encapsulation traffic-class 27

Segment Routing Command Reference for Cisco ASR 9000 Series Routersiii

Page 4: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

index 28

isis prefix-attributes n-flag-clear 30

keepalive (PCE) 31

local-discriminator 32

lsp (PCE) 34

metric-type delay 35

microloop avoidance rib-update-delay 36

microloop avoidance segment-routing 38

minimum-peer-keepalive 40

path-option 41

path-selection 43

pce 45

ping mpls nil-fec labels 46

prefix-sid 48

prefix-sid (flexible algorithm) 50

priority 51

remote-discriminator 52

remote-target 54

reoptimization 55

sbfd 56

segment-routing global-block 57

segment-routing local-block 59

segment-routing mapping-server 61

segment-routing mpls 63

segment-routing prefix-sid-map advertise-local 64

segment-routing prefix-sid-map receive disable 66

show bfd label session 68

show bfd reflector 71

show bfd target-identifier 73

show bgp egress-engineering 75

show isis segment-routing prefix-sid-map 76

show ospf segment-routing prefix-sid-map 78

show pce ipv4 80

show pce lsp 82

Segment Routing Command Reference for Cisco ASR 9000 Series Routersiv

Contents

Page 5: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show segment-routing local-block inconsistencies 85

show segment-routing mapping-server prefix-sid-map 86

show traffic-collector 88

show traffic-collector ipv4 counters label 89

show traffic-collector ipv4 counters prefix 92

show traffic-collector ipv4 counters tunnels 95

state-sync ipv4 (PCE) 97

strict (PCE) 98

tcp-buffer (PCE) 99

timers (PCE) 100

traceroute mpls nil-fec labels 101

traffic-collector 103

traffic-collector interface 105

traffic-collector statistics collection-interval 107

traffic-collector statistics history-size 108

traffic-collector statistics history-timeout 109

Segment Routing Command Reference for Cisco ASR 9000 Series Routersv

Contents

Page 6: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Segment Routing Command Reference for Cisco ASR 9000 Series Routersvi

Contents

Page 7: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Preface

TheCisco ASR 9000 Series Aggregation Services Router Segment Routing Command Reference Guide prefacecontains these sections:

• Changes to This Document, on page vii• Communications, Services, and Additional Information, on page viii

Changes to This DocumentThe following table lists the technical changes made to this document since it was first published.

Change SummaryDate

Republished for Cisco IOS XR Release 6.6.2.April 2019

Republished for Cisco IOS XR Release 6.5.3.March 2019

Republished for Cisco IOS XR Release 6.5.2.January 2019

Republished for Cisco IOS XR Release 6.4.1.March 2018

Republished for Cisco IOS XR Release 6.3.2.March 2018

Republished for Cisco IOS XR Release 6.3.1.September 2017

Republished for Cisco IOS XR Release 6.2.1.March 2017

Republished for Cisco IOS XR Release 6.1.2.November 2016

Republished for Cisco IOS XR Release 6.0.1.April 2016

Republished for Cisco IOS XR Release 5.3.2.September 2015

Republished for Cisco IOS XR Release 5.3.1.May 2015

Initial release of this document.January 2015

Segment Routing Command Reference for Cisco ASR 9000 Series Routersvii

Page 8: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Communications, Services, and Additional Information• To receive timely, relevant information from Cisco, sign up at Cisco Profile Manager.

• To get the business impact you’re looking for with the technologies that matter, visit Cisco Services.

• To submit a service request, visit Cisco Support.

• To discover and browse secure, validated enterprise-class apps, products, solutions and services, visitCisco Marketplace.

• To obtain general networking, training, and certification titles, visit Cisco Press.

• To find warranty information for a specific product or product family, access Cisco Warranty Finder.

Cisco Bug Search Tool

Cisco Bug Search Tool (BST) is a web-based tool that acts as a gateway to the Cisco bug tracking systemthat maintains a comprehensive list of defects and vulnerabilities in Cisco products and software. BST providesyou with detailed defect information about your products and software.

Segment Routing Command Reference for Cisco ASR 9000 Series Routersviii

PrefaceCommunications, Services, and Additional Information

Page 9: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Segment Routing Commands

This chapter describes the commands used to configure and use Segment Routing.

• address ipv4 (PCE), on page 3• adjacency-sid, on page 4• advertise-definition, on page 6• affinity exclude-any, on page 7• affinity flex-algo, on page 8• affinity-map (flexible algorithm), on page 9• apply-weight ecmp-only bandwidth, on page 10• attribute-set , on page 11• autoroute announce, on page 13• autoroute destination, on page 14• clear segment-routing local-block discrepancy all, on page 15• clear traffic-collector ipv4 counters prefix, on page 16• clear traffic-collector ipv4 counters tunnels, on page 17• disjoint-path (PCE), on page 18• egress-engineering, on page 19• explicit-path , on page 20• fast-detect sbfd, on page 21• fast-reroute, on page 22• flex-algo, on page 24• group-id type (PCE), on page 25• hw-module profile segment-routing srv6 encapsulation traffic-class , on page 27• index, on page 28• isis prefix-attributes n-flag-clear, on page 30• keepalive (PCE), on page 31• local-discriminator, on page 32• lsp (PCE), on page 34• metric-type delay, on page 35• microloop avoidance rib-update-delay, on page 36• microloop avoidance segment-routing, on page 38• minimum-peer-keepalive, on page 40• path-option, on page 41• path-selection, on page 43

Segment Routing Command Reference for Cisco ASR 9000 Series Routers1

Page 10: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

• pce, on page 45• ping mpls nil-fec labels, on page 46• prefix-sid, on page 48• prefix-sid (flexible algorithm), on page 50• priority, on page 51• remote-discriminator, on page 52• remote-target, on page 54• reoptimization, on page 55• sbfd, on page 56• segment-routing global-block, on page 57• segment-routing local-block, on page 59• segment-routing mapping-server, on page 61• segment-routing mpls, on page 63• segment-routing prefix-sid-map advertise-local, on page 64• segment-routing prefix-sid-map receive disable, on page 66• show bfd label session, on page 68• show bfd reflector, on page 71• show bfd target-identifier, on page 73• show bgp egress-engineering, on page 75• show isis segment-routing prefix-sid-map, on page 76• show ospf segment-routing prefix-sid-map, on page 78• show pce ipv4, on page 80• show pce lsp, on page 82• show segment-routing local-block inconsistencies, on page 85• show segment-routing mapping-server prefix-sid-map, on page 86• show traffic-collector, on page 88• show traffic-collector ipv4 counters label , on page 89• show traffic-collector ipv4 counters prefix , on page 92• show traffic-collector ipv4 counters tunnels , on page 95• state-sync ipv4 (PCE), on page 97• strict (PCE), on page 98• tcp-buffer (PCE), on page 99• timers (PCE), on page 100• traceroute mpls nil-fec labels, on page 101• traffic-collector, on page 103• traffic-collector interface, on page 105• traffic-collector statistics collection-interval, on page 107• traffic-collector statistics history-size, on page 108• traffic-collector statistics history-timeout, on page 109

Segment Routing Command Reference for Cisco ASR 9000 Series Routers2

Segment Routing Commands

Page 11: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

address ipv4 (PCE)To configure the IPv4 self address for Path Computation Element (PCE), use the address ipv4 command inPCE configuration mode.

address ipv4 address

Syntax Description Configures the IPv4 address for PCE.ipv4 address

Command Default No default behavior or values

Command Modes PCE configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

This example shows how to configure the IPv4 address of the PCE:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# address ipv4 192.168.0.1

Segment Routing Command Reference for Cisco ASR 9000 Series Routers3

Segment Routing Commandsaddress ipv4 (PCE)

Page 12: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

adjacency-sidTo manually allocate an adjacency segment ID (Adj-SID) on an interface, use the adjacency-sid commandin IS-IS interface address family configuration mode.

adjacency-sid {index adj-sid-index | absolute adj-sid-value}[protected]

no adjacency-sid {index adj-sid-index | absolute adj-sid-value}[protected]

Syntax Description Specifies the Adj-SID for each link based on the lower boundary of the SRLB + theindex.

index adj-sid-index

Specifies the specific Adj-SID for each link within the SRLB.absolute adj-sid-value

Specify if the Adj-SID is protected. For each primary path, if the Adj-SID is protectedon the primary interface and a backup path is available, a backup path is installed.By default, manual Adj-SIDs are not protected.

protected

Command Default Adjacency SID is not protected.

Command Modes IS-IS interface address-family configuration

Command History ModificationRelease

This commandwas introduced.Release6.3.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Segment routing must be configured on the ISIS instance before configuring adjacency SID value.

Manually allocated Adj-SIDs are supported on point-to-point (P2P) interfaces.

Task ID OperationsTaskID

read, writeisis

Examples This example shows how to configure an Adj-SID.

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router isis 100RP/0/RSP0/CPU0:router(config-isis)# interface GigabitEthernet0/0/0/7RP/0/RSP0/CPU0:router(config-isis-if)# point-to-pointRP/0/RSP0/CPU0:router(config-isis-if)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-if-af)# adjacency-sid index 10

Segment Routing Command Reference for Cisco ASR 9000 Series Routers4

Segment Routing Commandsadjacency-sid

Page 13: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Related Commands DescriptionCommand

Configures the segment routing local block (SRLB).segment-routing local-block, on page 59

Segment Routing Command Reference for Cisco ASR 9000 Series Routers5

Segment Routing Commandsadjacency-sid

Page 14: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

advertise-definitionTo enable advertisement of the flexible algorithm definition in IS-IS, use the advertise-definition commandin the flexible algorithm configuration mode.

advertise-definition

Command Default No default behavior or values.

Command Modes flex-algo

Command History ModificationRelease

This command wasintroduced.

IOSXRRelease 6.6.1

Example

RP/0/RSP0/CPU0:exr2(config)#router isis 1RP/0/RSP0/CPU0:exr2(config-isis)#flex-algo 128RP/0/RSP0/CPU0:exr2(config-isis-flex-algo)#priority 100RP/0/RSP0/CPU0:exr2(config-isis-flex-algo)#advertise-definition

Segment Routing Command Reference for Cisco ASR 9000 Series Routers6

Segment Routing Commandsadvertise-definition

Page 15: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

affinity exclude-anyTo configure flexible algorithm definition to exclude links with a particular affinity, use the affinity exclude-anycommand in flexible algorithm configuration mode.

affinity exclude-any name

Syntax Description Name of affinitymap.

name

Command Default No default behavior or values

Command Modes flexible algorithm configuration

Command History ModificationRelease

This command wasintroduced.

Release6.6.1

Example

The following example shows how flex-algo 128 definition excludes link with affinity FOO:RP/0/RSP0/CPU0:router#configureRP/0/RSP0/CPU0:router(config)#router isis 1RP/0/RSP0/CPU0:router(config-isis)#flex-algo 128RP/0/RSP0/CPU0:router(config-isis-flex-algo)#affinity exclude-any FOO

Segment Routing Command Reference for Cisco ASR 9000 Series Routers7

Segment Routing Commandsaffinity exclude-any

Page 16: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

affinity flex-algoTo advertise the affinity on an interface, use the affinity flex-algo command in the IS-IS interface configurationmode.

affinity flex-algo name

Syntax Description Name of affinitymap.

name

Command Default No default behavior or values

Command Modes IS-IS interface configuration

Command History ModificationRelease

This command wasintroduced.

Release6.6.1

Example

The following example shows how ISIS advertises affinity FOO for the adjacency over interfaceGigabitEthernet0/0/0/0.RP/0/RSP0/CPU0:router#configureRP/0/RSP0/CPU0:router(config)#router isis 1RP/0/RSP0/CPU0:router(config-isis)#interface GigabitEthernet0/0/0/0RP/0/RSP0/CPU0:router(config-isis-if)#affinity flex-algo FOO

Segment Routing Command Reference for Cisco ASR 9000 Series Routers8

Segment Routing Commandsaffinity flex-algo

Page 17: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

affinity-map (flexible algorithm)To define a name for the bit position, use the affinity-map command in the IS-IS configuration mode.

affinity-map affinity name{bit-positionvalue }

Syntax Description Affinity map name.affinity name

Configures the value of an affinity map for the bit positionbit-position

Bit position value.value

Command Default No default behavior or values

Command Modes IS-IS configuration

Command History ModificationRelease

This command wasintroduced.

Release6.6.1

Example

RP/0/RSP0/CPU0:exr2(config)#router isis 1RP/0/RSP0/CPU0:exr2(config-isis)#affinity-map FOO bit-position 7

Segment Routing Command Reference for Cisco ASR 9000 Series Routers9

Segment Routing Commandsaffinity-map (flexible algorithm)

Page 18: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

apply-weight ecmp-only bandwidthTo enable Unequal Cost Multipath (UCMP) functionality locally between Equal Cost Multipath (ECMP)paths based on the bandwidth of the local links, use the apply-weight ecmp-only bandwidth command inIS-IS interface address family configuration mode.

apply-weight ecmp-only bandwidth

Syntax Description Enables UCMP functionality locally between ECMP paths based on the bandwidth of the locallinks.

bandwidth

Command Default None.

Command Modes IS-IS interface address-family configuration

Command History ModificationRelease

This commandwas introduced.Release6.3.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Bandwidth-based local UCMP is performed for prefixes, segment routing Adjacency SIDs, and SegmentRouting label cross-connects installed by IS-IS, and is supported on any physical or virtual interface that hasa valid bandwidth.

Segment routing must be configured on the ISIS instance before configuring bandwidth-based local UCMP.

Task ID OperationsTaskID

read, writeisis

Examples This example shows how to configure bandwidth-based local UCMP.

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router isis 100RP/0/RSP0/CPU0:router(config-isis)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-af)# apply-weight ecmp-only bandwidth

Segment Routing Command Reference for Cisco ASR 9000 Series Routers10

Segment Routing Commandsapply-weight ecmp-only bandwidth

Page 19: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

attribute-setConfigures the attribute set for an LSP.

attribute-set name [isis instance-name | lockdown | ospf instance-name | protected-by index |segment-routing]

Syntax Description Specifies an identifier for the attribute set. The identifier can be up to 64 characters inlength.

name

Restricts the LSP to a single IS-IS instance and area.isis instance-name

Locks the LSP against reoptimization.lockdown

Restricts the LSP to a single OSPF instance and area.ospf instance-name

Protects the LSP specified by the index.

The index ranges from 1 to 1000.

protected-by index

Enables segment routing for the LSP.segment-routing

Command Default None

Command Modes Path option interface configuration mode

Command History ModificationRelease

This command was introduced.Release4.2.0

The segment routing option was introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to set an attribute set for a path-option:

RP/0/RSP0/CPU0:router(config)# interface tunnel-te22RP/0/RSP0/CPU0:router(config-if)# ipv4 unnumbered loopback0

Segment Routing Command Reference for Cisco ASR 9000 Series Routers11

Segment Routing Commandsattribute-set

Page 20: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router(config-if)# destination 192.168.0.2RP/0/RSP0/CPU0:router(config-if)# path-selection segment-routing adjacency protectedRP/0/RSP0/CPU0:router(config-if)# path-option 30 dynamic attribute-set example protected-by20

Related Commands DescriptionCommand

Configures a path option for an SR-TE policy.path-option

Segment Routing Command Reference for Cisco ASR 9000 Series Routers12

Segment Routing Commandsattribute-set

Page 21: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

autoroute announceTo specify that the Interior Gateway Protocol (IGP) should use the tunnel (if the tunnel is up) in its enhancedshortest path first (SPF) calculation, use the autoroute announce command in interface configuration mode.To return to the default behavior, use the no form of this command

autoroute announce [ip2mpls]no autoroute announce

Syntax Description (Optional) Specifies a non-tunnel interface as the outgoing interface to avoid looping of the labeledpacket back to the tunnel ingress (source).

ip2mpls

Command Default None

Command Modes Tunnel interface configuration

Command History ModificationRelease

This command was introduced.Release3.7.2

The ip2mpls option was introduced to avoid labeled segments looping back to the source atthe SR-TE tunnel ingress.

Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When more than one IGP is configured, the tunnel is announced as an auto route to the IGP that is used tocompute the TE tunnel path.

When the autoroute announce command is configured, the route metric of the tunnel path to the destinationequals the route metric of the shortest IGP path to that destination.

Task ID OperationsTaskID

read,write

mpls-te

Examples This example shows how to configure IGP to use the tunnel in its enhanced SPF calculation whenthe tunnel is up:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# interface tunnel-te 1RP/0/RSP0/CPU0:router(config-if)# autoroute announce

Segment Routing Command Reference for Cisco ASR 9000 Series Routers13

Segment Routing Commandsautoroute announce

Page 22: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

autoroute destinationTo install multiple static routes in the routing information base (RIB) per tunnel, use the autoroute destinationcommand in the tunnel interface TE configuration mode.

To disable autoroute destination, use the no form of this command.

autoroute destination ip-addressno autoroute destination ip-address

Syntax Description Specifies the host address of the route to be installed in the RIB.ip-address

Command Default Autoroute destination is disabled.

Command Modes Tunnel interface configuration mode.

Command History ModificationRelease

This commandwas introduced.Release5.1.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

This example shows how to install four routes in the RIB for tunnel 10:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# interface tunnel-te 10RP/0/RSP0/CPU0:router(config-if)# autoroute destination 192.168.1.2RP/0/RSP0/CPU0:router(config-if)# autoroute destination 192.168.2.2RP/0/RSP0/CPU0:router(config-if)# autoroute destination 192.168.3.2RP/0/RSP0/CPU0:router(config-if)# autoroute destination 192.168.4.2

Segment Routing Command Reference for Cisco ASR 9000 Series Routers14

Segment Routing Commandsautoroute destination

Page 23: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

clear segment-routing local-block discrepancy allClears segment routing local block (SRLB) label conflicts.

clear segment-routing local-block discrepancy all

Syntax Description This command has no keywords or arguments.

Command Default None

Command Modes EXEC

Command History ModificationRelease

This commandwas introduced.Release6.3.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When you define a new SRLB range, there might be a label conflict (for example, if labels are already allocated,statically or dynamically, in the new SRLB range). In this case, the new SRLB range will be accepted, butnot applied (pending). The previous SRLB range (active) will continue to be in use until one of the followingoccurs:

• Reload the router to release the currently allocated labels and allocate the new SRLB

• Use the clear segment-routing local-block discrepancy all command to clear the label conflicts

Task ID OperationTaskID

This example shows how to clear SRLB label conflicts.

RP/0/RSP0/CPU0:router(config)# clear segment-routing local-block discrepancy all

Related Commands DescriptionCommand

Displays SRLB label conflictsshow segment-routing local-block inconsistencies, onpage 85

Configures the SRLBsegment-routing local-block, on page 59

Segment Routing Command Reference for Cisco ASR 9000 Series Routers15

Segment Routing Commandsclear segment-routing local-block discrepancy all

Page 24: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

clear traffic-collector ipv4 counters prefixClears all statistical counters of IPv4 prefixes.

clear traffic-collector ipv4 counters prefix [prefix-ID]

Syntax Description Specifies a particular prefix to clear.prefix-ID

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

execute:cef

This example shows how to clear the traffic-collector counter history for the specified prefix.

RP/0/RSP0/CPU0:router(config)# clear traffic-collector ipv4 counters prefix 1.1.1.10/32

Related Commands DescriptionCommand

Clears all statistical counters for IPv4 tunnels.clear traffic-collector ipv4 counters tunnels

Retrieves data about traffic routed through the system.show traffic-collector

enable traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers16

Segment Routing Commandsclear traffic-collector ipv4 counters prefix

Page 25: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

clear traffic-collector ipv4 counters tunnelsClears all statistical counters for IPv4 tunnels.

clear traffic-collector ipv4 counters tunnels [tunnel-ID]

Syntax Description Specifies a particular tunnel to clear.tunnel-ID

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

Example

This example shows how to clear the traffic-collector counter history for the specified tunnel.RP/0/RSP0/CPU0:router(config)# clear traffic-collector ipv4 counters tunnels tunnel-te 1

Related Commands DescriptionCommand

Clears all statistical counters for IPv4 prefixes.clear traffic-collector ipv4 counters prefix

Retrieves data about traffic routed through the system.show traffic-collector

enable traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers17

Segment Routing Commandsclear traffic-collector ipv4 counters tunnels

Page 26: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

disjoint-path (PCE)To enter PCE disjoint configuration mode to configure PCE disjoint policy, use the timers command in PCEconfiguration mode.

disjoint-path

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values

Command Modes PCE configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

This example shows how to enter PCE disjoint configuration mode:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# disjoint-pathRP/0/RSP0/CPU0:router(config-pce-disjoint)#

Segment Routing Command Reference for Cisco ASR 9000 Series Routers18

Segment Routing Commandsdisjoint-path (PCE)

Page 27: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

egress-engineeringTo configure segment routing egress peer engineering (EPE) on the egress node, use the egress-engineeringcommand.

egress-engineering

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values

Command Modes Neighbor configuration

Command History ModificationRelease

This commandwas introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationsTaskID

read, writempls-te

Examples This example shows how to configure segment routing EPE on the egress node:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router bgp 1RP/0/RSP0/CPU0:router(config-bgp)# neighbor 192.168.1.3RP/0/RSP0/CPU0:router(config-bgp-nbr)# remote-as 3RP/0/RSP0/CPU0:router(config-bgp-nbr)# egress-engineering

Segment Routing Command Reference for Cisco ASR 9000 Series Routers19

Segment Routing Commandsegress-engineering

Page 28: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

explicit-pathConfigures a fixed path through the network.

explicit-path name path_name

Syntax Description Specifies a name for an explicit path.path_name

Command Default None

Command Modes Global Configuration mode

Command History ModificationRelease

This command was introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to specify a path name and enter explicit-path configuration mode:

RP/0/RSP0/CPU0:router(config)# explicit-path name ABCD1_NodesRP/0/RSP0/CPU0:router(config-expl-path)#

Related Commands DescriptionCommand

Determines the order of path selection.index

Segment Routing Command Reference for Cisco ASR 9000 Series Routers20

Segment Routing Commandsexplicit-path

Page 29: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

fast-detect sbfdTo enable seamless bidirectional forwarding detection (SBFD) fast-detection on a specified IPv4 destinationaddress, use the fast-detect sbfd command.

fast-detect sbfd

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values

Command Modes Tunnel interface configuration

Command History ModificationRelease

This commandwas introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationsTaskID

read, writempls-te

Examples This example shows how to enable SBFD fast-detection on the specified IPv4 destination address:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# interface tunnel-te1RP/0/RSP0/CPU0:router(config-if)# ipv4 unnumbered loopback0RP/0/RSP0/CPU0:router(config-if)# destination 1.1.1.5RP/0/RSP0/CPU0:router(config-if)# bfdRP/0/RSP0/CPU0:router(config-tunte-bfd)# fast-detect sbfdRP/0/RSP0/CPU0:router(config-tunte-bfd)# exit

Related Commands DescriptionCommand

Enters seamless BFD (SBFD) mode.sbfd

Segment Routing Command Reference for Cisco ASR 9000 Series Routers21

Segment Routing Commandsfast-detect sbfd

Page 30: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

fast-rerouteTo enable Topology Independent Loop Free Alternate (TI-LFA) path for SR-TE policies using the IP FastReroute (FRR) mechanism, use the fast-reroute command in interface configuration mode. To return to thedefault behavior, use the no form of this command.

fast-reroute per-prefix ti-lfano fast-reroute

Syntax Description Specifies an alternate path for every prefix on the specified interface.per-prefix

Enables link-protecting TI-LFA.ti-lfa

Command Default FRR is disabled.

Link protection is disabled.

Command Modes Interface configuration

Command History ModificationRelease

This command was introduced.Release3.7.2

The per-prefix ti-lfa option was introduced for segment routing tunnels.Release5.3.2

The tiebreaker { node-protecting | srlg-disjoint} options were introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When a protected link used by the fast-reroutable label switched path (LSP) fails, the traffic is rerouted to apreviously assigned backup tunnel. Configuring FRR on the tunnel informs all the nodes that the LSP istraversing that this LSP desires link/bandwidth protection.

You must verify the redundancy is ready after an RSP switchover before triggering FRR on standby RSP tosynchronize with the active RSP (verified using the show redundancy command). All TE tunnels must bein the recovered state and the database must be in the ready state for all ingress and egress line cards. To verifythis information, use the show mpls traffic-eng tunnels and show mpls traffic-eng fast-reroute databasecommands.

We recommend that you wait approximately 60 seconds before triggering FRR after verifying the databasestate.

Note

Segment Routing Command Reference for Cisco ASR 9000 Series Routers22

Segment Routing Commandsfast-reroute

Page 31: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

If the priority associated with the specified tiebreaker is higher than any other tiebreakers, then the specifiedpost-convergence backup path will be selected, if it is available.

Task ID OperationsTaskID

read,write

isis

ospf

Examples The following example shows how to enable FRR on an interface:

RP/0/RSP0/CPU0:R1(config)# router isis 1RP/0/RSP0/CPU0:R1(config-isis)# interface TenGigE0/0/0/2/1RP/0/RSP0/CPU0:R1(config-isis-if)# point-to-pointRP/0/RSP0/CPU0:R1(config-isis-if)# address-family ipv4 unicastRP/0/RSP0/CPU0:R1(config-isis-if)# fast-reroute per-prefixRP/0/RSP0/CPU0:R1(config-isis-if)# fast-reroute per-prefix ti-lfaRP/0/RSP0/CPU0:R1(config-isis-if)# exit

Segment Routing Command Reference for Cisco ASR 9000 Series Routers23

Segment Routing Commandsfast-reroute

Page 32: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

flex-algoTo enter into the flexible algorithm configuration sub-mode to configure flexible algorithm, use the flex-algocommand in the IS-IS interface configuration mode.

flex-algo algorithm number

Syntax Description value from 128 to255

algorithm number

Command Default No default behavior or values.

Command Modes IS-IS interface

Command History ModificationRelease

This command wasintroduced.

IOSXRRelease 6.6.1

Example

This example shows how to enter the flex-algo configuration mode:RP/0/RSP0/CPU0:exr2(config)#router isis 1RP/0/RSP0/CPU0:exr2(config-isis)#flex-algo 128

Segment Routing Command Reference for Cisco ASR 9000 Series Routers24

Segment Routing Commandsflex-algo

Page 33: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

group-id type (PCE)To configure the disjoint group ID and define the preferred level of disjointness (the type of resources thatshould not be shared by the two paths), use the group-id type command in PCE disjoint configuration mode.

group-id value type {link |node |srlg |srlg-node} [sub-id value]

Syntax Description Defines the disjoint group ID.group-id value

Specifies that links are not shared on the computed paths.link

Specifies that nodes are not shared on the computed paths.node

Specifies that links with the same SRLG value are not shared on the computed paths.srlg

Specifies that SRLG and nodes are not shared on the computed pathssrlg-node

(Optional) Specifies a sub ID. The range is from 1 to 65535.sub-id value

Command Default None

Command Modes PCE disjoint configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

If a pair of paths meeting the requested disjointness level cannot be found, then the paths will automaticallyfallback to a lower level (unless strict is specified):

• If the requested disjointness level is SRLG or node, then link-disjoint paths will be computed.

• If the requested disjointness level is link, or if the first fallback from SRLG or node disjointness failed,then the lists of segments encoding two shortest paths, without any disjointness constraint, will becomputed.

Task ID OperationTaskID

This example shows how to configure the PCE disjoint policy:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# disjoint-path

Segment Routing Command Reference for Cisco ASR 9000 Series Routers25

Segment Routing Commandsgroup-id type (PCE)

Page 34: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router(config-pce-disjoint)# group-id 1 type node

Segment Routing Command Reference for Cisco ASR 9000 Series Routers26

Segment Routing Commandsgroup-id type (PCE)

Page 35: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

hw-module profile segment-routing srv6 encapsulationtraffic-class

To set the traffic-class on the IP header of the outgoing packet in an IPv6 network during L3VPN encapsulation,use the hw-module profile segment-routing srv6 encapsulation traffic-class command in GlobalConfiguration mode.

hw-module profile segment-routing srv6 encapsulation traffic-class{traffic-class value | propagate}

Syntax Description Controls traffic-class field on IPv6 header.traffic-class

This specifies the traffic-class value. Range is from 0x0 to 0xff.traffic-class value

Propagates traffic-class from the header of the incoming traffic.propagate

Command Default None

Command Modes Configuration mode

Command History ModificationRelease

This commandwas introduced.Release6.6.1

Usage Guidelines The default traffic-class value is 0.

The router must be reloaded for the hw-module profile segment-routing srv6 encapsulation traffic-class featureto be functional.

Task ID OperationTaskID

read,write

system

Example

The following example shows how to set the traffic-class value:

Router# ConfigureRouter(config)# hw-module profile segment-routing srv6 encapsulation traffic-class 0x1

The following example shows how to propagate the traffic-class:

Router# ConfigureRouter(config)# hw-module profile segment-routing srv6 encapsulation traffic-class propagate

Segment Routing Command Reference for Cisco ASR 9000 Series Routers27

Segment Routing Commandshw-module profile segment-routing srv6 encapsulation traffic-class

Page 36: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

indexMarks an explicit path. The index determines the order of path selection.

index index_number {{exclude-address | exclude-srlg | next-address [loose | strict]} ipv4unicast ip_address} | {next-label label}

Syntax Description Defines priority for the path to be selected.

Ranges from 1 to 65535.

index_number

Specifies the IP address to be excluded from the path.exclude-address

Specifies the IP address from which Shared Risk Link Groups (SRLGs) arederived for exclusion.

exclude-srlg

Specifies the next IP address in the path.next-address

Specifies the next hop in the path as a flexible hop.loose

Specifies the next hop in the path as a fixed hopstrict

Specifies the the IPv4 unicast address.ipv4 unicast ip_address

Specifies the next label in the path.next-label label

Command Default None

Command Modes Explicit path configuration mode

Command History ModificationRelease

This command was introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

You can include multiple addresses, labels, or both. However, once you start configuring labels, you need tocontinue with labels. You cannot use addresses after you use labels.

Task ID OperationTaskID

read,write

mpls-te

This example shows how to insert the next-address and next-label for explicit path ABCD1_Nodes:

Segment Routing Command Reference for Cisco ASR 9000 Series Routers28

Segment Routing Commandsindex

Page 37: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router(config)# explicit-path name ABCD1_NodesRP/0/RSP0/CPU0:router(config-expl-path)# index 10 next-address strict ipv4 unicast192.168.0.2

RP/0/RSP0/CPU0:router(config-expl-path)# index 20 next-label 24012

Related Commands DescriptionCommand

Configures a fixed path through the network.explicit-path

Segment Routing Command Reference for Cisco ASR 9000 Series Routers29

Segment Routing Commandsindex

Page 38: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

isis prefix-attributes n-flag-clearTo set the N-flag in the Prefix Attribute Flags sub-TLV to 0, use the isis prefix-attributes n-flag-clearcommand.

isis prefix-attributes n-flag-clear [level-1 | level-2]

Syntax Description Clears the N-flag forlevel-1.

level-1

Clears the N-flag forlevel-2.

level-2

Command Default The N-flag is set to 1 for host prefixes (/32 for IPv4 and /128 for IPv6).

Command Modes Interface configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The Prefix Attributes Flag sub Type Length Value (TLV) supports the advertisement of attribute flags associatedwith prefix advertisements. By default, the N-flag is set by IS-IS when advertising a SID that is associatedwith a loopback address. The advertising router may choose to not set this flag. When the N-flag is cleared,the N-flag is set to 0 in the Prefix Attribute Flags sub-TLV.

Prefix attributes are only added when wide metric is used.

Task ID OperationTaskID

This example shows how to clear the N-flag:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# interface loopback0RP/0/RSP0/CPU0:router(config-if)# isis prefix-attributes n-flag-clear

Segment Routing Command Reference for Cisco ASR 9000 Series Routers30

Segment Routing Commandsisis prefix-attributes n-flag-clear

Page 39: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

keepalive (PCE)To configure a locally generated path computation element protocol (PCEP) keepalive interval, use thekeepalive command in PCE timer configuration mode. To disable this command, use the no form of thiscommand.

keepalive interval

Syntax Description Keepalive interval, in seconds. The range is 0 to 255.interval

Command Default 30

Command Modes PCE timers configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When the keepalive interval is 0, the LSR does not send keepalive messages.

Task ID OperationTaskID

Example

This example shows how to configure PCEP keepalive interval for 10 seconds:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# timersPP/0/RSP0/CPU0:router(config-pce-timers)# keeplive 10

Segment Routing Command Reference for Cisco ASR 9000 Series Routers31

Segment Routing Commandskeepalive (PCE)

Page 40: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

local-discriminatorTo configure a unique local disciminator on the SBFD reflector, use the local-discriminator command inSBFD configuration mode.

local-discriminator {ipv4-address 32-bit-value |dynamic |interface interface}

Syntax Description Configures the IPv4 address as the local discriminator.ipv4-address

Configures a unique 32-bit value as the local discriminator.32-bit-value

Creates a randomly generated value as the local discriminator.dynamic

Configures the IPv4 address of the interface as the local discriminator.interface interface

Command Default None

Command Modes SBFD configuration mode

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

To ensure the BFD packet arrives on the intended reflector, configure at least one globally unique discriminatorfor each reflector. Globally unique discriminators of the reflector are known by the initiator before the sessionstarts.

Example

This example shows how to configure various local discriminators on the SBFD reflector:

RP/0/RSP0/CPU0:router(config)# sbfdRP/0/RSP0/CPU0:router(config-sbfd)# local-discriminator 1.1.1.5RP/0/RSP0/CPU0:router(config-sbfd)# local-discriminator 987654321RP/0/RSP0/CPU0:router(config-sbfd)# local-discriminator dynamicRP/0/RSP0/CPU0:router(config-sbfd)# local-discriminator interface Loopback0

Related Commands DescriptionCommand

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Maps a destination address to a remote discriminator.remote-target

Segment Routing Command Reference for Cisco ASR 9000 Series Routers32

Segment Routing Commandslocal-discriminator

Page 41: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

DescriptionCommand

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the BFD initiator session information.show bfd label session

Displays the SBFD reflector configuration.show bfd reflector

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers33

Segment Routing Commandslocal-discriminator

Page 42: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

lsp (PCE)To add label switched paths (LSPs) to the disjoint group, use the lsp command in PCE disjoint configurationmode.

lsp {1 | 2} pcc ipv4 address lsp-name name [shortest-path]

Syntax Description Specifies the first or second LSP in the association.1 | 2

Specifies the IPv4 address of the path computation client (PCC).address

Specifies the name of the LSP.name

(Optional) Forces one of the disjoint paths to follow the shortest path from the source tothe destination. This option can only be applied to the first LSP specified (lsp 1).

shortest-path

Command Default None

Command Modes PCE disjoint configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

An LSP that is specified with shortest-path will follow the shortest path. The secondary LSP will follow theshortest possible path that is disjoint from the primary LSP.

Task ID OperationTaskID

This example shows how to configure the PCE disjoint policy:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# disjoint-pathRP/0/RSP0/CPU0:router(config-pce-disjoint)# group-id path1 type nodeRP/0/RSP0/CPU0:router(config-pce-disjoint)# lsp 1 pcc ipv4 192.168.0.1 lsp-name LSP1shortest-pathRP/0/RSP0/CPU0:router(config-pce-disjoint)# lsp 2 pcc ipv4 192.168.0.5 lsp-name LSP2rtrE_t2

Segment Routing Command Reference for Cisco ASR 9000 Series Routers34

Segment Routing Commandslsp (PCE)

Page 43: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

metric-type delayTo use the measured delay on the links as a metric for flexible algorithm calculation, use themetric-typedelay command in the flexible algorithm configuration mode.

metric-type delay

Command Default By default, igp metric is used.

Command Modes flex-algo

Command History ModificationRelease

This command wasintroduced.

IOSXRRelease 6.6.1

Usage Guidelines By default the regular IGP metric is used. If delay metric is enabled, the advertised delay on the link is usedas a metric for flexible algorithm computation. If delay metric is enabled, performance measurement mustalso be enabled.

Example

RP/0/RSP0/CPU0:router(config)#router isis 1RP/0/RSP0/CPU0:router(config-isis)#is-type level-2-onlyRP/0/RSP0/CPU0:router(config-isis)#net 49.0001.0000.0000.0001.00RP/0/RSP0/CPU0:router(config-isis)#log adjacency changesRP/0/RSP0/CPU0:router(config-isis)#flex-algo 128RP/0/RSP0/CPU0:router(config-isis-flex-algo)#metric-type delayRP/0/RSP0/CPU0:router(config-isis-flex-algo)#advertise-definition!

RP/0/RSP0/CPU0:router(config-isis)#performance-measurementRP/0/RSP0/CPU0:router(config-isis)#interface GigabitEthernet0/2/0/3RP/0/RSP0/CPU0:router(config-isis-if)#delay-measurement!!RP/0/RSP0/CPU0:router(config-isis)#interface GigabitEthernet0/2/0/4RP/0/RSP0/CPU0:router(config-isis-if)#delay-measurement!!RP/0/RSP0/CPU0:router(config-isis)#interface GigabitEthernet0/2/0/7RP/0/RSP0/CPU0:router(config-isis-if)#delay-measurement!!

!

Segment Routing Command Reference for Cisco ASR 9000 Series Routers35

Segment Routing Commandsmetric-type delay

Page 44: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

microloop avoidance rib-update-delayTo set the Routing Information Base (RIB) update delay value to avoid microloops in the network, use themicroloop avoidance rib-update-delay command. To disable the RIB update delay, use the no form of thiscommand.

microloop avoidance rib-update-delay delay-time

Syntax Description Specifies the amount of time the node uses the microloop avoidance policy before updating itsforwarding table. The delay-time is in milliseconds. The range is from 1-60000.

delay-time

Command Default The default value is 5000 milliseconds.

Command Modes IPv4 address family configuration

Router configuration

Command History ModificationRelease

This command was introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Use this commandwith themicroloop avoidance segment-routing command to specify how long the SR-TEpolicy path to the destination is used. After the RIB update delay timer expires, the SR-TE policy is replacedwith regular forwarding paths.

Task ID OperationTaskID

read,write

ospf

isis

Example

This example shows how to set the Routing Information Base (RIB) update delay value for OSPF:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# router ospf 1RP/0/RSP0/CPU0:router(config-ospf)# microloop avoidance segment-routingRP/0/RSP0/CPU0:router(config-ospf)# microloop avoidance rib-update-delay 3000

This example shows how to set the Routing Information Base (RIB) update delay value for IS-IS:

RP/0/RSP0/CPU0:router# configure

Segment Routing Command Reference for Cisco ASR 9000 Series Routers36

Segment Routing Commandsmicroloop avoidance rib-update-delay

Page 45: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router(config)# router isis 1RP/0/RSP0/CPU0:router(config-isis)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-af)# microloop avoidance segment-routingRP/0/RSP0/CPU0:router(config-isis-af)# microloop avoidance rib-update-delay 3000

Segment Routing Command Reference for Cisco ASR 9000 Series Routers37

Segment Routing Commandsmicroloop avoidance rib-update-delay

Page 46: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

microloop avoidance segment-routingTo enable the segment routing microloop avoidance and set the Routing Information Base (RIB) update delayvalue, use themicroloop avoidance command. To disable segment routing microloop avoidance, use the noform of this command.

microloop avoidance segment-routing

Command Default Disabled.

Command Modes IPv4 address family configuration

Router configuration

Command History ModificationRelease

This command was introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The Segment Routing Microloop Avoidance feature detects if microloops are possible following a topologychange. If a node computes that a microloop could occur on the new topology, the node creates a loop-freeSR-TE policy path to the destination using a list of segments. After the RIB update delay timer expires, theSR-TE policy is replaced with regular forwarding paths.

Task ID OperationTaskID

read,write

ospf

isis

Example

This example shows how to enable Segment Routing Microloop Avoidance for OSPF:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# router ospf 1RP/0/RSP0/CPU0:router(config-ospf)# microloop avoidance segment-routingRP/0/RSP0/CPU0:router(config-ospf)# microloop avoidance rib-update-delay 3000

This example shows how to enable Segment Routing Microloop Avoidance for IS-IS:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# router isis 1RP/0/RSP0/CPU0:router(config-isis)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-af)# microloop avoidance segment-routing

Segment Routing Command Reference for Cisco ASR 9000 Series Routers38

Segment Routing Commandsmicroloop avoidance segment-routing

Page 47: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router(config-isis-af)# microloop avoidance rib-update-delay 3000

Segment Routing Command Reference for Cisco ASR 9000 Series Routers39

Segment Routing Commandsmicroloop avoidance segment-routing

Page 48: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

minimum-peer-keepaliveTo configure a minimum acceptable path computation element (PCE) peer keepalive interval, use theminimum-peer-keepalive command in PCE timer configuration mode. To disable this command, use the noform of this command.

minimum-peer-keepalive interval

Syntax Description Keepalive interval, in seconds. The range is 0 to 255.interval

Command Default 20

Command Modes PCE timers configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

Example

This example shows how to configure a minimum acceptable PCEP peer keepalive interval for 10seconds:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# timersPP/0/RSP0/CPU0:router(config-pce-timers)# minimum-peer-keepalive 10

Segment Routing Command Reference for Cisco ASR 9000 Series Routers40

Segment Routing Commandsminimum-peer-keepalive

Page 49: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

path-optionTo configure a path option for an SR-TE policy, use the path-option command in tunnel-te interfaceconfiguration mode. To return to the default behavior, use the no form of this command.

path-option path_preference_value {dynamic [attribute-set | isis | lockdown |ospf | pce | protected-by] | explicit {identifier path-number | name path-name}[attribute-set | isis | lockdown | ospf | protected-by | verbatim]}segment-routing

Syntax Description Specifies the preference for an LSP.

Range is from 1 to 1000.

path_preference_value

Configures a dynamically allocated path based on the configuredoptions.

See the attribute-set statement for a description of all theattributes.

dynamic [attribute-set | isis |lockdown | ospf | pce |protected-by]

Configures a preset path, based on the configured options.

The verbatim option is required for disabling loop detection onthe path. When you configure this option, the topology databaseis not referred by the source router while configuring the presetpath.

See the attribute-set statement for a description of all theattributes.

explicit {identifier path-number |name path-name}[attribute-set | isis| lockdown | ospf | protected-by| verbatim]

Configures a segment routing path, based on the configuredoptions.

segment-routing

Command Default None

Command Modes Tunnel-te interface configuration

Command History ModificationRelease

This command was introduced.Release3.7.2

This command was introduced for segment routing.Release5.2.0

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Segment Routing Command Reference for Cisco ASR 9000 Series Routers41

Segment Routing Commandspath-option

Page 50: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to configure the tunnel to use an explicit path for segment routing:

RP/0/RSP0/CPU0:router(config)# interface tunnel-te22RP/0/RSP0/CPU0:router(config-if)# ipv4 unnumbered loopback0RP/0/RSP0/CPU0:router(config-if)# destination 192.168.0.2RP/0/RSP0/CPU0:router(config-if)# path-selection segment-routing adjacency protectedRP/0/RSP0/CPU0:router(config-if)# path-option 1 explicit name ABCD1_Nodes segment-routing

Related Commands DescriptionCommand

Configures the attribute set for an LSP.attribute-set

Determines the order of path selection.index

Segment Routing Command Reference for Cisco ASR 9000 Series Routers42

Segment Routing Commandspath-option

Page 51: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

path-selectionConfigures the LSP to be selected for the SR-TE tunnel.

path-selection [cost-limit limit | hop-limit limit | invalidation timer [tear | drop] | metric[igp | te] segment-routing adjacency [protected | unprotected] | tiebreaker [max-fill |min-fill | random] ]

Syntax Description Configures the cost limit for the LSP.

Ranges from 1 to 4294967295.

cost-limit limit

Configures the hop limit for the LSP.

Ranges from 1 to 255.

hop-limit limit

Configures the path invalidation timer.

When the timer expires, the path is either torn down or just thesegment labeled data is dropped.

Ranges from 0 to 60000.

invalidation timer [tear |drop]

Configures the type of metric to be used for the LSP.metric [igp | te]

Configures the type of adjacency for segment routing.segment-routing adjacency[protected | unprotected]

Configures the tie breaker for path calculation of equal cost multiplepaths.Max-fill selects the path with the most-utilized links.Min-fillselects the path with the least-utilized links. Random selects the pathwith randomly utilized links.

tiebreaker [max-fill | min-fill |random]

Command Default None

Command Modes Tunnel interface configuration mode

Command History ModificationRelease

This commandwas introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Segment Routing Command Reference for Cisco ASR 9000 Series Routers43

Segment Routing Commandspath-selection

Page 52: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

This example shows how to set the path-selection for segment routing adjacency protection.

RP/0/RSP0/CPU0:router(config)# interface tunnel-te22RP/0/RSP0/CPU0:router(config-if)# path-selection segment-routing adjacency protected

Segment Routing Command Reference for Cisco ASR 9000 Series Routers44

Segment Routing Commandspath-selection

Page 53: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

pceTo enable Path Computation Element (PCE) and enter PCE configuration mode, use the pce command inglobal configuration mode.

pce

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values

Command Modes Global configuration (config)

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

This example shows how to enable PCE and enter PCE configuration mode:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)#

Segment Routing Command Reference for Cisco ASR 9000 Series Routers45

Segment Routing Commandspce

Page 54: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

ping mpls nil-fec labelsTo check network connectivity and identify LSP breakages, use the ping mpls nil-fec labels command.

ping mpls nil-fec labels {label[,label...]} [output {interface tx-interface} [nexthopnext-hop-ip-address]]

Syntax Description Specifies the label stack. Use commas to separate the each label.labels label,label...

Specifies the output interface.ouput interface tx-interface

(Optional) Causes packets to go through the specified next-hop address.nexthopnext-hop-ip-address

Command Default None

Command Modes EXEC

Command History ModificationRelease

This commandwas introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to check connectivity for a known label stack using a specific outputinterface and next-hop address:

RP/0/RSP0/CPU0:router# ping mpls nil-fec labels 16005,16007 output interface GigabitEthernet0/2/0/1 nexthop 10.1.1.4 repeat 1Sending 1, 72-byte MPLS Echos with Nil FEC labels 16005,16007,

timeout is 2 seconds, send interval is 0 msec:

Codes: '!' - success, 'Q' - request not sent, '.' - timeout,'L' - labeled output interface, 'B' - unlabeled output interface,'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,'M' - malformed request, 'm' - unsupported tlvs, 'N' - no label entry,'P' - no rx intf label prot, 'p' - premature termination of LSP,'R' - transit router, 'I' - unknown upstream index,'l' - Label switched with FEC change, 'd' - see DDMAP for return code,

Segment Routing Command Reference for Cisco ASR 9000 Series Routers46

Segment Routing Commandsping mpls nil-fec labels

Page 55: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

'X' - unknown return code, 'x' - return code 0

Type escape sequence to abort.!Success rate is 100 percent (1/1), round-trip min/avg/max = 1/1/1 msTotal Time Elapsed 0 ms

Related Commands DescriptionCommand

Checks network connectivity and identifying LSPbreakages.

traceroute mpls nil-fec labels

Segment Routing Command Reference for Cisco ASR 9000 Series Routers47

Segment Routing Commandsping mpls nil-fec labels

Page 56: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

prefix-sidTo specify or advertise prefix (node) segment ID (SID) on all routers, use the prefix-sid command in IS-ISinterface address family or OSPF interface configuration mode. To stop advertising prefix SID, use the noform of this command.

prefix-sid [strict-spf] {index sid-index | absolute sid-value}[n-flag-clear][explicit-null]

no prefix-sid [strict-spf] {index sid-index | absolute sid-value}[n-flag-clear][explicit-null]

Syntax Description Specifies that the prefix-SID should use the SPF path instead of the SR-TE tunnel.strict-spf

Specifies the prefix SID based on the lower boundary of the SRGB + the index.index sid-index

Specifies the specific prefix SID value within the SRGB.absolute sid-value

Specifies that the prefix-SID is not a node-SID by setting the N flag in the prefix-SIDsub Type Length Value (TLV) to 0.

n-flag-clear

Adds an explicit-Null label by setting the E flag in the prefix-SID sub TLV to 1.Automatically disables penultimate-hop-popping (PHP) by setting the P flag (IS-IS) orNP flag (OSPF) to 1.

explicit-null

Command Default Prefix SID is a node SID (N-flag is set to 1).

Explicit-Null label is not set (E-flag is set to 0).

Command Modes IS-IS interface address-family configuration

OSPF interface configuration

Command History ModificationRelease

This command was introduced.Release 5.2.0

The absolute sid-value option was added for OSPF.Release 6.1.2

The strict-spf keyword was added for IS-IS.Release 6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Segment routing must be configured on the ISIS instance or on the OSPF process, area, or interface beforeconfiguring prefix SID value.

Strict-SPF SIDs are used to forward traffic strictly along the SPF path. Strict-SPF SIDs are not forwarded toSR-TE tunnels. IS-IS advertises the SR Algorithm sub Type Length Value (TLV) (in the SR Router CapabilitySubTLV) to include both algorithm 0 (SPF) and algorithm 1 (Strict-SPF). When the IS-IS area or level isStrict-SPF TE-capable, Strict-SPF SIDs are used to build the SR-TE Strict-SPF tunnels. Strict-SPF SIDs arealso used to program the backup paths for prefixes, node SIDs, and adjacency SIDs.

Segment Routing Command Reference for Cisco ASR 9000 Series Routers48

Segment Routing Commandsprefix-sid

Page 57: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

The same SRGB is used for both regular SIDs and strict-SPF SIDs.Note

Task ID OperationsTaskID

read, writeisis

ospf

Examples This example shows how to configure a prefix SID.

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router isis 100RP/0/RSP0/CPU0:router(config-isis)# interface loopback0RP/0/RSP0/CPU0:router(config-isis-if)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-if-af)# prefix-sid index 1001

This example shows how to configure an absolute prefix SID on an OSPF interface.

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router ospf 1RP/0/RSP0/CPU0:router(config-ospf)# router area 0RP/0/RSP0/CPU0:router(config-ospf-ar)# interface loopback0RP/0/RSP0/CPU0:router(config-ospf-ar-if)# prefix-sid absolute 16041

Related Commands DescriptionCommand

Configures the segment routing global block (SRGB).segment-routing global-block

Segment Routing Command Reference for Cisco ASR 9000 Series Routers49

Segment Routing Commandsprefix-sid

Page 58: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

prefix-sid (flexible algorithm)To specify or advertise prefix (node) segment ID (SID) on all routers, use the prefix-sid command in IS-ISinterface address family configuration mode.

prefix-sid [strict-spf | algorithm algorithm number] {index sid-index | absolute sid-value}

Syntax Description Specifies that the prefix-SID should use the SPF path instead of the SR-TEtunnel.

strict-spf

Specifies the flexible algorithm number.algorithmalgorithmnumber

Specifies the prefix SID based on the lower boundary of the SRGB + the index.index sid-index

Specifies the specific prefix SID value within the SRGB.absolute sid-value

Command Default Prefix SID is a node SID (N-flag is set to 1).

Command Modes IS-IS interface address-family configuration

Command History ModificationRelease

This command wasintroduced.

Release6.6.1

Examples This example shows how to advertise prefix-SID for flexible algorithm:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# router isis 1RP/0/RSP0/CPU0:router(config-isis)# interface loopback0RP/0/RSP0/CPU0:router(config-isis-if)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-if-af)# prefix-sid index 4RP/0/RSP0/CPU0:router(config-isis-if-af)# prefix-sid algorithm 128 index 104RP/0/RSP0/CPU0:router(config-isis-if-af)# prefix-sid algorithm 129 index 204

Segment Routing Command Reference for Cisco ASR 9000 Series Routers50

Segment Routing Commandsprefix-sid (flexible algorithm)

Page 59: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

priorityTo set the priority of the flexible algorithm definition adevertisement, use the priority command in theflex-algo configuration mode.

priority priority value

Syntax Description Priority associated with the flexible algorithm definition advertisement.priority value

Command Default No default behavior or values.

Command Modes flex-algo

Command History ModificationRelease

This command wasintroduced.

IOSXRRelease 6.6.1

Example

RP/0/RSP0/CPU0:exr2(config)#router isis 1RP/0/RSP0/CPU0:exr2(config-isis)#flex-algo 128RP/0/RSP0/CPU0:exr2(config-isis-flex-algo)#priority 100

Segment Routing Command Reference for Cisco ASR 9000 Series Routers51

Segment Routing Commandspriority

Page 60: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

remote-discriminatorTo specify the remote discriminator that maps to the remote target on the SBFD initiator, use theremote-discriminator command in SBFD remote target configuration mode.

remote-discriminator value

Syntax Description Specifies the remote discriminator value (which maps to the local discriminator of the reflector).value

Command Default None

Command Modes SBFD remote-target configuration mode

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The SBFD initiator uses a Remote Target Identifier (RTI) table to map a destination address (Target Identifier)to a remote discriminator.

If the destination is an IPv4 address, the destination or target address can be used as the remote discriminator.(Configuration of an RTI is optional.)

Example

This example shows how to configure various local discriminators on the SBFD reflector:

RP/0/RSP0/CPU0:router(config)# sbfdRP/0/RSP0/CPU0:router(config-sbfd)# remote-target ipv4 1.1.1.5RP/0/RSP0/CPU0:router(config-sbfd-nnnn)# remote-discriminator 16843013

Related Commands DescriptionCommand

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Maps a destination address to a remote discriminator.remote-target

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the BFD initiator session information.show bfd label session

Displays the SBFD reflector configuration.show bfd reflector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers52

Segment Routing Commandsremote-discriminator

Page 61: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

DescriptionCommand

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers53

Segment Routing Commandsremote-discriminator

Page 62: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

remote-targetTomap a destination address to a remote discriminator, use the remote-target command in SBFD configurationmode.

remote-target ipv4 ipv4-address

Syntax Description Configures the IPv4 address of the reflector.ipv4 ipv4-address

Command Default None

Command Modes SBFD configuration mode

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The SBFD initiator uses a Remote Target Identifier (RTI) table to map a destination address (Target Identifier)to a remote discriminator.

Example

This example shows how to configure the SBFD reflector IPv4 address as the remote target:

RP/0/RSP0/CPU0:router(config)# sbfdRP/0/RSP0/CPU0:router(config-sbfd)# remote-target ipv4 1.1.1.5RP/0/RSP0/CPU0:router(config-sbfd-nnnn)#

Related Commands DescriptionCommand

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the BFD initiator session information.show bfd label session

Displays the SBFD reflector configuration.show bfd reflector

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers54

Segment Routing Commandsremote-target

Page 63: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

reoptimizationTo configure a periodic reoptimization timer, use the reoptimization command in PCE timer configurationmode. To disable this command, use the no form of this command.

reoptimization value

Syntax Description Periodic reoptimization timer value, in seconds. The range is 60 to 604800value

Command Default 60

Command Modes PCE timers configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

Example

This example shows how to configure a periodic reoptimization timer for 200 seconds:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# timersPP/0/RSP0/CPU0:router(config-pce-timers)# reoptimization 200

Segment Routing Command Reference for Cisco ASR 9000 Series Routers55

Segment Routing Commandsreoptimization

Page 64: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

sbfdTo enter seamless bidirectional forwarding detection (SBFD) mode for configuring local and remotediscriminators, use the sbfd command in global configuration mode.

sbfd

Command Modes Global configuration mode

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Example

This example shows how to enter SBFD configuration mode:

RP/0/RSP0/CPU0:router(config)# sbfdRP/0/RSP0/CPU0:router(config-sbfd)#

Related Commands DescriptionCommand

Enables SBFD fast-detection on a specified IPv4destination address.

fast-detect sbfd

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Maps a destination address to a remote discriminator.remote-target

Displays the SBFD initiator session information.show bfd label session

Displays the SBFD reflector configuration.show bfd reflector

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers56

Segment Routing Commandssbfd

Page 65: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing global-blockTo configure the segment routing global block (SRGB), use the segment-routing global-block command.

segment-routing global-block starting_value ending_value

Syntax Description Specifies the block of segment routing IDs that are allocated for the routersin the network. Ranges from 16000 to 1048574.

starting_value ending_value

Command Default Default SRGB range is 16000 to 23999.

Command Modes Global Configuration mode

Command History ModificationRelease

This commandwas introduced.Release5.2.0

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

To keep the segment routing configuration simple and to make it easier to troubleshoot segment routing issues,we recommend that you use the default SRGB range on each node in the domain. However, there are instanceswhen you might need to define a different range:

• The nodes of another vendor support a label range that is different from the default SRGB, and you wantto use the same SRGB on all nodes.

• The default range is too small.

• To specify separate SRGBs for IS-IS and OSPF protocols, as long as the ranges do not overlap.

Because the values assigned from the range have domain-wide significance, we recommend that all routerswithin the domain be configured with the same range of values.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to configure the SRGB range:

RP/0/RSP0/CPU0:router(config)# segment-routing global-block 17000 20000

Segment Routing Command Reference for Cisco ASR 9000 Series Routers57

Segment Routing Commandssegment-routing global-block

Page 66: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Related Commands DescriptionCommand

Configures the segment ID (SID).prefix-sid

Segment Routing Command Reference for Cisco ASR 9000 Series Routers58

Segment Routing Commandssegment-routing global-block

Page 67: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing local-blockTo configure the segment routing local block (SRLB), use the segment-routing local-block command.

segment-routing local-block starting_value ending_value

Syntax Description Specifies the block of labels that are reserved for manual allocation ofadjacency segment IDs (Adj-SIDs). Ranges from 15000 to 1048574.

starting_value ending_value

Command Default Default SRLB range is 15000 to 15999.

Command Modes Global Configuration mode

Command History ModificationRelease

This commandwas introduced.Release6.3.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When you define a new SRLB range, there might be a label conflict (for example, if labels are already allocated,statically or dynamically, in the new SRLB range). In this case, the new SRLB range will be accepted, butnot applied (pending). The previous SRLB range (active) will continue to be in use until one of the followingoccurs:

• Reload the router to release the currently allocated labels and allocate the new SRLB

• Use the clear segment-routing local-block discrepancy all command to clear the label conflicts

The SRLB size cannot be more than 262,143.

To keep the segment routing configuration simple and to make it easier to troubleshoot segment routing issues,we recommend that you use the default SRLB range on each node in the domain. However, there are instanceswhen you might need to define a different range:

• The nodes of another vendor support a label range that is different from the default SRLB, and you wantto use the same SRLB on all nodes.

• The default range is too small.

Because the values assigned from the range have domain-wide significance, we recommend that all routerswithin the domain be configured with the same range of values.

Segment Routing Command Reference for Cisco ASR 9000 Series Routers59

Segment Routing Commandssegment-routing local-block

Page 68: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Task ID OperationTaskID

read,write

mpls-te

This example shows how to configure the SRLB range:

RP/0/RSP0/CPU0:router(config)# segment-routing local-block 18000 19999

Related Commands DescriptionCommand

Clears SRLB label conflictsclear segment-routing local-block discrepancy all, onpage 15

Displays SRLB label conflictsshow segment-routing local-block inconsistencies, onpage 85

Segment Routing Command Reference for Cisco ASR 9000 Series Routers60

Segment Routing Commandssegment-routing local-block

Page 69: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing mapping-serverTo configure the segment routing mapping server (SRMS), use the segment-routing mapping-servercommand.

segment-routing mapping-server prefix-sid-map address-family{ipv4 | ipv6} ip_address/subnet_maskSID_start_value range range

Syntax Description Configures the address family for IS-IS.address-family{ipv4 | ipv6}

Specifies the prefix and mask.ip_address/subnet_mask

Specifies the first prefix SID in the range.SID_start_value

Specifies the size of the range.range range

Command Default None

Command Modes Global Configuration mode

Command History ModificationRelease

This commandwas introduced.Release5.2.0

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The position of the mapping server in the network is not important. However, since the mapping advertisementsare distributed in IGP using the regular IGP advertisement mechanism, the mapping server needs an IGPadjacency to the network.

The role of the mapping server is crucial. For redundancy purposes, you should configure multiple mappingservers in the networks.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to configure the mapping server and add prefix-SID mapping entries inthe active local mapping policy:

RP/0/RSP0/CPU0:router(config)# segment-routing mapping-server prefix-sid-map address-family

Segment Routing Command Reference for Cisco ASR 9000 Series Routers61

Segment Routing Commandssegment-routing mapping-server

Page 70: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

ipv4 10.1.1.1/32 17000 range 100

Related Commands DescriptionCommand

Enables the router to advertise the SRMS entries thatare locally configured.

segment-routing prefix-sid-map advertise-local

Disables mapping client functionality.segment-routing prefix-sid-map receive disable

Displays the active and backup prefix-to-SIDmappings for IS-IS.

show isis segment-routing prefix-sid-map

Displays the active and backup prefix-to-SIDmappings for OSPF.

show ospf segment-routing prefix-sid-map

Displays the locally configured prefix-to-SIDmappings.

show segment-routingmapping-server prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers62

Segment Routing Commandssegment-routing mapping-server

Page 71: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing mplsTo enable segment routing for IPv4 addresses withMPLS data plane, use the segment-routingmpls commandin IPv4 address family configuration mode. To disable segment routing, use the no form of this command.

segment-routing mpls

Syntax Description Enables segment routing for IPv4 addresses with MPLS data plane.mpls

Command Default No default behavior or values.

Command Modes IPv4 address family configuration

Router configuration

Area configuration

Command History ModificationRelease

This commandwas introduced.Release5.2.0

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to enable segment routing with MPLS data plane.

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# router isis 100RP/0/RSP0/CPU0:router(config-isis)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-af)# segment-routing mpls

Segment Routing Command Reference for Cisco ASR 9000 Series Routers63

Segment Routing Commandssegment-routing mpls

Page 72: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing prefix-sid-map advertise-localTo enable the router to advertise the segment routingmapping server (SRMS) entries that are locally configured,use the segment-routing prefix-sid-map advertise-local command. In addition to advertising these localSRMS entries, these mapping entries are also used to calculate segment ID (SID).

segment-routing prefix-sid-map advertise-local

Syntax Description Advertises the SRMSmapping entries that are locally configured.advertise-local

Command Default Disabled.

Command Modes IPv4 address family configuration

Router configuration

Command History ModificationRelease

This command was introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

ospf

isis

Example

This example shows how to enable the router to advertise the locally configured SRMS entries:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# router ospf 1RP/0/RSP0/CPU0:router(config-ospf)# segment-routing prefix-sid-map advertise-local

Related Commands DescriptionCommand

Configures the segment routing mapping server(SRMS).

segment-routing mapping-server, on page 61

Disables mapping client functionality.segment-routing prefix-sid-map receive disable

Segment Routing Command Reference for Cisco ASR 9000 Series Routers64

Segment Routing Commandssegment-routing prefix-sid-map advertise-local

Page 73: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

DescriptionCommand

Displays the active and backup prefix-to-SIDmappings for IS-IS.

show isis segment-routing prefix-sid-map

Displays the active and backup prefix-to-SIDmappings for OSPF.

show ospf segment-routing prefix-sid-map

Displays the locally configured prefix-to-SIDmappings.

show segment-routingmapping-server prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers65

Segment Routing Commandssegment-routing prefix-sid-map advertise-local

Page 74: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

segment-routing prefix-sid-map receive disableTo disable mapping client functionality, use the segment-routing prefix-sid-map receive disable command.To reenable client functionality, use the segment-routing prefix-sid-map receive command.

segment-routing prefix-sid-map receive [disable]

Syntax Description Only remote SRMSmapping entries are used for SID calculation.receive

Disable remote SRMS mapping entries received by flooding.disable

Command Default Enabled.

Command Modes IPv4 address family configuration

Router configuration

Command History ModificationRelease

This command was introduced.Release5.3.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

The mapping client functionality is enabled by default. When you disable client functionality, the SRMSactive policy is calculated without remote SRMS entries.

You can use this commandwith the segment-routing prefix-sid-map advertise-local command simultaneously.

Task ID OperationTaskID

read,write

ospf

isis

Example

This example shows how to disable the mapping server client functionality:

RP/0/RSP0/CPU0:router(config)# router isis 1RP/0/RSP0/CPU0:router(config-isis)# address-family ipv4 unicastRP/0/RSP0/CPU0:router(config-isis-af)# segment-routing prefix-sid-map receive disable

Segment Routing Command Reference for Cisco ASR 9000 Series Routers66

Segment Routing Commandssegment-routing prefix-sid-map receive disable

Page 75: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Related Commands DescriptionCommand

Configures the segment routing mapping server(SRMS).

segment-routing mapping-server, on page 61

Enables the router to advertise the SRMS entries thatare locally configured.

segment-routing prefix-sid-map advertise-local

Displays the active and backup prefix-to-SIDmappings for IS-IS.

show isis segment-routing prefix-sid-map

Displays the active and backup prefix-to-SIDmappings for OSPF.

show ospf segment-routing prefix-sid-map

Displays the locally configured prefix-to-SIDmappings.

show segment-routingmapping-server prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers67

Segment Routing Commandssegment-routing prefix-sid-map receive disable

Page 76: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show bfd label sessionTo display the BFD initiator session information, use the show bfd label session command.

show bfd label session [status][location node-id][detail]

Syntax Description (Optional) Displays the status of the BFD session.status

(Optional) Displays BFD sessions hosted from the specified location. The node-id argumentis entered in the rack/slot/module notation.

location node-id

(Optional) Displays detailed session information, including statistics and number of statetransitions.

detail

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

readbgp

readospf

readisis

readmpls-te

Example

This example shows how to display the BFD session information:

RP/0/RSP0/CPU0:router5# show bfd label session

Interface Label Local det time(int*mult) StateEcho Async

------------------- --------------- ---------------- ---------------- ----------tt1 (LSP:2) 24008 n/a 150ms(50ms*3) UP

Segment Routing Command Reference for Cisco ASR 9000 Series Routers68

Segment Routing Commandsshow bfd label session

Page 77: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

This example shows how to display the detailed BFD session information:

RP/0/RSP0/CPU0:router5# show bfd label session detailI/f: tt1 (LSP:2), Location: 0/1/CPU0, Label: 24008State: UP for 0d:0h:10m:32s, number of times UP: 1Session type: SW/LB/V4/SH/TH/SBLSP ping request sent:Number of times sent: 0 timesNumber of error send: 0 timesLast sent time: [NA]Last result: 0x0 (No error)Last error time: [NA]Last error: 0x0 (No error)LSP ping reply rcvd:Last received discriminator: 0x0Number of times rcvd: 0 timesLast rcvd time: [NA]Last return code/subcode/output: 0/0/''Received parameters:Version: 1, desired tx interval: 50 ms, required rx interval: 50 msMultiplier: 3, diag: NoneMy discr: 16843013, your discr: 65556, state UP, D/F/P/C/A: 0/0/0/1/0Transmitted parameters:Version: 1, desired tx interval: 50 ms, required rx interval: 0 msMultiplier: 3, diag: NoneMy discr: 65556, your discr: 16843013, state UP, D/F/P/C/A: 1/0/0/1/0Timer Values:Local negotiated async tx interval: 50 msRemote negotiated async tx interval: 50 msasync detection time: 150 ms(50 ms*3)Local Stats:Intervals between async packets:Tx: Number of intervals=100, min=44 ms, max=51 ms, avg=47 ms

Last packet transmitted 7 ms agoRx: Number of intervals=100, min=40 ms, max=55 ms, avg=47 ms

Last packet received 44 ms agoMP download state: BFD_MP_DOWNLOAD_ACKState change time: Jan 6 12:20:37.073Session owner information:

Desired AdjustedClient Interval Multiplier Interval Multiplier-------------------- --------------------- ---------------------MPLS-TE 50 ms 3 50 ms 3

This example shows how to display the status of the BFD session on the specified linecard location:

RP/0/RSP0/CPU0:router5# show bfd label session status location 0/1/CPU0I/f: tt1 (LSP:2), Location: 0/1/CPU0 table_id:0x0State: UP, flags:0x80040Iftype: 0x24, basecaps: 36Async InLabel: 24008Additional info from Flags:FIB is READYSession Active on 0/1/CPU0

. . .

Received parameters:Version: 1, desired tx interval: 50 ms, required rx interval: 50 msMultiplier: 3, diag: NoneMy discr: 16843013, your discr: 65556, state UP, D/F/P/C/A: 0/0/0/1/0

Segment Routing Command Reference for Cisco ASR 9000 Series Routers69

Segment Routing Commandsshow bfd label session

Page 78: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Transmitted parameters:Version: 1, desired tx interval: 50 ms, required rx interval: 0 msMultiplier: 3, diag: NoneMy discr: 65556, your discr: 16843013, state UP, D/F/P/C/A: 1/0/0/1/0

Related Commands DescriptionCommand

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Maps a destination address to a remote discriminator.remote-target

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the SBFD reflector configuration.show bfd reflector

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers70

Segment Routing Commandsshow bfd label session

Page 79: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show bfd reflectorTo verify the SBFD reflector configuration, use the show bfd reflector command.

show bfd reflector {counter | info} [location node-id]

Syntax Description Displays the BFD session counters.counter

Displays the BFD session information.info

(Optional) Displays BFD sessions hosted from the specified location. The node-id argumentis entered in the rack/slot/module notation.

location node-id

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

readbgp

readospf

readisis

readmpls-te

Example

This example shows how to display the BFD reflector session counters:

RP/0/RSP0/CPU0:router5# show bfd reflector counter location 0/0/CPU0------------------------------------------------------------------------------Rx Tx DROPPED

NO PPS LTI MISS NO MEMORY TOTAL------------------------------------------------------------------------------961 960 0 0 0 0

This example shows how to display the BFD reflector information:

Segment Routing Command Reference for Cisco ASR 9000 Series Routers71

Segment Routing Commandsshow bfd reflector

Page 80: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router5# show bfd reflector info location 0/0/CPU0-------------------------------------Local Remote SrcDiscr Discr IP Addr-------------------------------------16843013 65556 1.1.1.1

Related Commands DescriptionCommand

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Maps a destination address to a remote discriminator.remote-target

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the BFD initiator session information.show bfd label session

Displays the BFD local and remote discriminators.show bfd target-identifier

Segment Routing Command Reference for Cisco ASR 9000 Series Routers72

Segment Routing Commandsshow bfd reflector

Page 81: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show bfd target-identifierTo display the BFD local and remote discriminators, use the show bfd target-identifier command.

show bfd target-identifier {local | remote}

Syntax Description Displays the local discriminator.local

Displays the remote discriminator.remote

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Seamless BFD (SBFD) uses initiators and reflectors to detect failures in the path between adjacent forwardingengines. The initiator is an SBFD session on a network node that performs a continuity test to a remote entityby sending SBFD packets. The reflector is an SBFD session on a network node that listens for incoming SBFDcontrol packets to local entities and generates response SBFD control packets. The SBFD control packetscontain the discriminator of the initiator, which is created dynamically, and the discriminator of the reflector,which is configured as a local discriminator on the reflector, using the local-discriminator command.

Use the show bfd target-identifier local command on the reflector to display locally configured discriminators.

Use the show bfd target-identifier remote command on the initiator to display remote discriminators. Theinitiator maps a destination address to the remote discriminator using the remote-discriminator command.

Task ID OperationTaskID

readbgp

readospf

readisis

readmpls-te

Example

This example shows how to display the local discriminators on the BFD reflector (router5):

Segment Routing Command Reference for Cisco ASR 9000 Series Routers73

Segment Routing Commandsshow bfd target-identifier

Page 82: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

RP/0/RSP0/CPU0:router5# show bfd target-identifier localLocal Target Identifier Table-----------------------------Discr Discr Src VRF Status Flags

Name----- --------- ------- -------- --------16843013 Local default enable -----ia-2147483649 Local default enable -------d

Legend: TID - Target Identifiera - IP Address moded - Dynamic modei - Interface modev - Explicit Value mode

This example shows how to display the remote discriminators on the BFD initiator (router1):

RP/0/RSP0/CPU0:router1# show bfd target-identifier remoteRemote Target Identifier Table------------------------------

Discr Discr Src VRF TID Type StatusTarget ID Name

------ --------- ------- -------- ------16843013 Remote default ipv4 enable

1.1.1.52147483649 Remote default dynamic enable

1.1.1.5

Legend: TID - Target Identifier

Related Commands DescriptionCommand

Configures a unique local disciminator on the SBFDreflector.

local-discriminator

Specifies the remote discriminator that maps to theremote target on the SBFD initiator.

remote-discriminator

Maps a destination address to a remote discriminator.remote-target

Enters seamless bidirectional forwarding detection(SBFD) mode.

sbfd

Displays the BFD initiator session information.show bfd label session

Displays the SBFD reflector configuration.show bfd reflector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers74

Segment Routing Commandsshow bfd target-identifier

Page 83: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show bgp egress-engineeringTo display BGP egress peer engineering (EPE) information, use the show bgp egress-engineering command.

show bgp egress-engineering

Syntax Description This command has no keywords or arguments.

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

readbgp

Example

This example shows how to display BGP egress peer engineering (EPE) information:

RP/0/RSP0/CPU0:router2# show bgp egress-engineering

Egress Engineering Peer Set: 1.1.1.5/32 (10b48fec)Nexthop: 1.1.1.5Version: 2, rn_version: 2Flags: 0x00000006

Local ASN: 1Remote ASN: 5Local RID: 1.1.1.2Remote RID: 1.1.1.5First Hop: 10.1.1.9

NHID: 0, 0Label: 30025, Refcount: 3

rpc_set: 10c34c24. . .

Segment Routing Command Reference for Cisco ASR 9000 Series Routers75

Segment Routing Commandsshow bgp egress-engineering

Page 84: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show isis segment-routing prefix-sid-mapTo verify the active and backup prefix-to-SID mappings for IS-IS, use the show isis segment-routingprefix-sid-map command.

show isis segment-routing prefix-sid-map [active-policy | backup-policy]

Syntax Description (Optional) Specifies the active mapping policy.active-policy

(Optional) Specifies the backup mapping policy.backup-policy

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

readisis

Example

The example shows how to verify the active mapping policy on IS-IS:

RP/0/0/CPU0:router# show isis segment-routing prefix-sid-map active-policy

IS-IS 1 active policyPrefix SID Index Range Flags1.1.1.100/32 100 201.1.1.150/32 150 10

Number of mapping entries: 2

The example shows how to verify the backup mapping policy on IS-IS:

RP/0/0/CPU0:router# show isis segment-routing prefix-sid-map backup-policy

IS-IS 1 backup policyPrefix SID Index Range Flags1.1.1.100/32 100 201.1.1.150/32 150 10

Segment Routing Command Reference for Cisco ASR 9000 Series Routers76

Segment Routing Commandsshow isis segment-routing prefix-sid-map

Page 85: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Number of mapping entries: 2

Related Commands DescriptionCommand

Configures the segment routing mapping server(SRMS).

segment-routing mapping-server, on page 61

Enables the router to advertise the SRMS entries thatare locally configured.

segment-routing prefix-sid-map advertise-local

Disables mapping client functionality.segment-routing prefix-sid-map receive disable

Displays the active and backup prefix-to-SIDmappings for OSPF.

show ospf segment-routing prefix-sid-map

Displays the locally configured prefix-to-SIDmappings.

show segment-routingmapping-server prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers77

Segment Routing Commandsshow isis segment-routing prefix-sid-map

Page 86: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show ospf segment-routing prefix-sid-mapTo verify the active and backup prefix-to-SID mappings for OSPF, use the show ospf segment-routingprefix-sid-map command.

show ospf segment-routing prefix-sid-map [active-policy | backup-policy]

Syntax Description (Optional) Specifies the active mapping policy.active-policy

(Optional) Specifies the backup mapping policy.backup-policy

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

readospf

Example

The example shows how to verify the active mapping policy on OSPF:

RP/0/0/CPU0:router# show ospf segment-routing prefix-sid-map active-policy

SRMS active policy for Process ID 1

Prefix SID Index Range Flags1.1.1.100/32 100 201.1.1.150/32 150 10

Number of mapping entries: 2

The example shows how to verify the backup mapping policy on OSPF:

RP/0/0/CPU0:router# show ospf segment-routing prefix-sid-map backup-policy

SRMS backup policy for Process ID 1

Prefix SID Index Range Flags

Segment Routing Command Reference for Cisco ASR 9000 Series Routers78

Segment Routing Commandsshow ospf segment-routing prefix-sid-map

Page 87: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

1.1.1.100/32 100 201.1.1.150/32 150 10

Number of mapping entries: 2

Related Commands DescriptionCommand

Configures the segment routing mapping server(SRMS).

segment-routing mapping-server, on page 61

Enables the router to advertise the SRMS entries thatare locally configured.

segment-routing prefix-sid-map advertise-local

Disables mapping client functionality.segment-routing prefix-sid-map receive disable

Displays the active and backup prefix-to-SIDmappings for IS-IS.

show isis segment-routing prefix-sid-map

Displays the locally configured prefix-to-SIDmappings.

show segment-routingmapping-server prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers79

Segment Routing Commandsshow ospf segment-routing prefix-sid-map

Page 88: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show pce ipv4To display the status of the path computation element (PCE) peer, prefix, tunnel, or topology, use the showpce ipv4 command in EXEC mode.

show pce ipv4 {peer [detail | private] |prefix |topology [summary]}

Syntax Description Displays the PCE peer database.peer

Displays detailed PCE peer information.detail

Displays detailed PCE peer information with additional PCEP events that can be used fortroubleshooting.

private

Displays detailed PCE prefix information.prefix

Displays detailed PCE topology information.topology

Displays a summary of the PCE topology information.summary

Command Default No default behavior or values

Command Modes EXEC

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage GuidelinesTask ID OperationTask

ID

Example

This example shows how to display the PCE peer information:

RP/0/RSP0/CPU0:router# show pce ipv4 peer

PCE's peer database:--------------------Peer address: 192.168.0.1State: UpCapabilities: Stateful, Segment-Routing, Update

This example shows how to display detailed PCE peer information:

RP/0/RSP0/CPU0:router# show pce ipv4 peer detailPCE's peer database:

Segment Routing Command Reference for Cisco ASR 9000 Series Routers80

Segment Routing Commandsshow pce ipv4

Page 89: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

--------------------Peer address: 192.168.0.1State: UpCapabilities: Stateful, Segment-Routing, UpdatePCEP has been up for: 00:01:50PCEP session ID: local 0, remote 0Sending KA every 30 secondsMinimum acceptable KA interval: 20 secondsPeer timeout after 120 secondsStatistics:Keepalive messages: rx 4 tx 4Request messages: rx 3 tx 0Reply messages: rx 0 tx 3Error messages: rx 0 tx 0Open messages: rx 1 tx 1Report messages: rx 4 tx 0Update messages: rx 0 tx 2Initiate messages: rx 0 tx 0

This example shows how to display the PCE prefix information:

RP/0/RSP0/CPU0:router# show pce ipv4 prefix

PCE's prefix database:----------------------Node 1TE router ID: 192.168.0.1Host name: rtrAISIS system ID: 1921.6800.1001 level-1Advertised Prefixes:192.168.0.1

Node 2TE router ID: 192.168.0.2Host name: rtrBISIS system ID: 1921.6800.1002 level-2Advertised Prefixes:192.168.0.2

This example shows how to display summary of the PCE topology information:

RP/0/RSP0/CPU0:router# show pce ipv4 topology summary

PCE's topology database summary:--------------------------------

Topology nodes: 4Prefixes: 4Prefix SIDs: 4

Links: 12Adjacency SIDs: 24

Segment Routing Command Reference for Cisco ASR 9000 Series Routers81

Segment Routing Commandsshow pce ipv4

Page 90: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show pce lspTo display information about the path computation element (PCE) tunnel, use the show pce lsp command inEXEC mode.

show pce lsp [detail | private]

Syntax Description Displays the PCE tunnel database.lsp

Displays detailed PCE tunnel information.detail

Displays detailed PCE tunnel information with additional LSP events that can be used fortroubleshooting.

private

Command Default No default behavior or values

Command Modes EXEC

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage GuidelinesTask ID OperationTask

ID

Example

This example shows how to display the PCE tunnel information:

RP/0/RSP0/CPU0:router# show pce lsp

PCE's tunnel database:----------------------PCC 192.168.0.1:

Tunnel Name: rtrA_t1LSPs:LSP[0]:source 192.168.0.1, destination 192.168.0.4, tunnel ID 1, LSP ID 2State: Admin up, Operation upSetup type: Segment RoutingBinding SID: 24013

This example shows how to display detailed PCE tunnel information:

RP/0/RSP0/CPU0:router# show pce lsp detail

PCE's tunnel database:

Segment Routing Command Reference for Cisco ASR 9000 Series Routers82

Segment Routing Commandsshow pce lsp

Page 91: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

----------------------PCC 192.168.0.1:

Tunnel Name: rtrA_t1LSPs:LSP[0]:source 192.168.0.1, destination 192.168.0.4, tunnel ID 1, LSP ID 2State: Admin up, Operation upSetup type: Segment RoutingBinding SID: 24013PCEP information:plsp-id 2, flags: D:1 S:0 R:0 A:1 O:1

Reported path:Metric type: TE, Accumulated Metric 42SID[0]: Adj, Label 24000, Address: local 10.10.10.1 remote 10.10.10.2SID[1]: Adj, Label 24000, Address: local 14.14.14.2 remote 14.14.14.4

Computed path:Metric type: TE, Accumulated Metric 42SID[0]: Adj, Label 24000, Address: local 10.10.10.1 remote 10.10.10.2SID[1]: Adj, Label 24000, Address: local 14.14.14.2 remote 14.14.14.4

Recorded path:None

This example shows how to display detailed PCE tunnel information with additional LSP events:

RP/0/RSP0/CPU0:router# show pce lsp detail

PCE's tunnel database:----------------------PCC 192.168.0.1:

Tunnel Name: rtrA_t1LSPs:LSP[0]:source 192.168.0.1, destination 192.168.0.4, tunnel ID 1, LSP ID 2State: Admin up, Operation upSetup type: Segment RoutingBinding SID: 24013PCEP information:plsp-id 2, flags: D:1 S:0 R:0 A:1 O:1

Reported path:Metric type: TE, Accumulated Metric 42SID[0]: Adj, Label 24000, Address: local 10.10.10.1 remote 10.10.10.2SID[1]: Adj, Label 24000, Address: local 14.14.14.2 remote 14.14.14.4

Computed path:Metric type: TE, Accumulated Metric 42SID[0]: Adj, Label 24000, Address: local 10.10.10.1 remote 10.10.10.2SID[1]: Adj, Label 24000, Address: local 14.14.14.2 remote 14.14.14.4

Recorded path:None

Event history (latest first):Time EventJune 13 2016 13:28:29 Report

Symbolic-name: rtrA_t1, LSP-ID: 2,Source: 192.168.0.1 Destination: 192.168.0.4,D:1, R:0, A:1 O:1, Sig.BW: 0, Act.BW: 0

June 13 2016 13:28:28 ReportSymbolic-name: rtrA_t1, LSP-ID: 2,Source: 192.168.0.1 Destination: 192.168.0.4,D:1, R:0, A:1 O:1, Sig.BW: 0, Act.BW: 0

June 13 2016 13:28:28 CreateSymbolic-name: rtrA_t1, PLSP-ID: 2,

Segment Routing Command Reference for Cisco ASR 9000 Series Routers83

Segment Routing Commandsshow pce lsp

Page 92: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Peer: 192.168.0.1

Segment Routing Command Reference for Cisco ASR 9000 Series Routers84

Segment Routing Commandsshow pce lsp

Page 93: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show segment-routing local-block inconsistenciesDisplays any segment routing local block (SRLB) label inconsistencies.

show segment-routing local-block inconsistencies

Syntax Description This command has no keywords or arguments.

Command Default None

Command Modes EXEC

Command History ModificationRelease

This commandwas introduced.Release6.3.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

When a new SRLB range is defined, there might be a label conflict (for example, if labels are already allocated,statically or dynamically, in the new SRLB range). In this case, the new SRLB range will be accepted, butnot applied (pending). The previous SRLB range (active) will continue to be in use until one of the followingoccurs:

• Reload the router to release the currently allocated labels and allocate the new SRLB

• Use the clear segment-routing local-block discrepancy all command to clear the label conflicts

Task ID OperationTaskID

Example

This example shows how to display the SRGB inconsistencies:

RP/0/RSP0/CPU0:router(config)# show segment-routing local-block inconsistenciesTue Aug 15 13:53:30.555 EDTSRLB inconsistencies range: Start/End: 30000/30009

Related Commands DescriptionCommand

Clears SRLB label conflictsclear segment-routing local-block discrepancy all, onpage 15

Configures the SRLBsegment-routing local-block, on page 59

Segment Routing Command Reference for Cisco ASR 9000 Series Routers85

Segment Routing Commandsshow segment-routing local-block inconsistencies

Page 94: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show segment-routing mapping-server prefix-sid-mapTo verify the locally configured prefix-to-SID mappings, use the show segment-routing mapping-serverprefix-sid-map command.

show segment-routing mapping-server prefix-sid-map [ipv4 | ipv6] [prefix] [detail]

Syntax Description (Optional) Specifies an IPv4 address family.ipv4

(Optional) Specifies an IPv6 address family.ipv6

(Optional) Specifies a prefix.prefix

(Optional) Displays detailed information on the prefix-to-SIDmappings.detail

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.1.2

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read

Example

The example shows how to verify the IPv4 prefix-to-SID mappings:

RP/0/0/CPU0:router# show segment-routing mapping-server prefix-sid-map ipv4Prefix SID Index Range Flags20.1.1.0/24 400 30010.1.1.1/32 10 200Number of mapping entries: 2

The example shows how to display detailed information on the IPv4 prefix-to-SID mappings:

RP/0/0/CPU0:router# show segment-routing mapping-server prefix-sid-map ipv4 detailPrefix20.1.1.0/24

SID Index: 400

Segment Routing Command Reference for Cisco ASR 9000 Series Routers86

Segment Routing Commandsshow segment-routing mapping-server prefix-sid-map

Page 95: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Range: 300Last Prefix: 20.2.44.0/24Last SID Index: 699Flags:

10.1.1.1/32SID Index: 10Range: 200Last Prefix: 10.1.1.200/32Last SID Index: 209Flags:

Number of mapping entries: 2

Related Commands DescriptionCommand

Configures the segment routing mapping server(SRMS).

segment-routing mapping-server, on page 61

Enables the router to advertise the SRMS entries thatare locally configured.

segment-routing prefix-sid-map advertise-local

Disables mapping client functionality.segment-routing prefix-sid-map receive disable

Displays the active and backup prefix-to-SIDmappings for IS-IS.

show isis segment-routing prefix-sid-map

Displays the active and backup prefix-to-SIDmappings for OSPF.

show ospf segment-routing prefix-sid-map

Segment Routing Command Reference for Cisco ASR 9000 Series Routers87

Segment Routing Commandsshow segment-routing mapping-server prefix-sid-map

Page 96: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show traffic-collectorTo retrieve data about traffic routed through the system, use the show traffic-collector command.

show traffic-collector [external-interface | ipv4]

Syntax Description Use this option to list configured external interfaces.external-interface

Use this option to access information about the ipv4 address family.ipv4

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read: cef

Example

This example shows how to display the L3 interfaces marked as external:

RP/0/RSP0/CPU0:router# show traffic-collector external-interfaceFri Nov 6 09:02:13.025 ESTInterface Status-------------------- ----------------Gi0/0/0/1 EnabledGi0/0/0/3 Enabled

Related Commands DescriptionCommand

Clears all statistical counters for IPv4 prefixes.clear traffic-collector ipv4 counters prefix

Marks an interface as external for traffic matrixcounters.

traffic-collector interface

enable traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers88

Segment Routing Commandsshow traffic-collector

Page 97: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show traffic-collector ipv4 counters labelTo display base and traffic matrix statistics for the specified prefix label, use the show traffic-collector ipv4counters label command.

show traffic-collector ipv4 counters label label [base | tm] [detail]

Syntax Description Specifies a label.label

Displays packet rates for base counters averaged over a defined number of histories.base

Displays packet and byte rates for traffic matrix counters (which cover traffic from interfaces markedas external sent to SR prefixes and labels) averaged over a defined number of histories.

tm

Displays packet and byte rates for base traffic matrix counters averaged over a defined number ofhistories. The histories are also listed.

The detail option can be used with the base or tm options separately to show historyinformation for the respective counter.

Note

detail

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read: cef

Example

This example shows the base counters for label 20001:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters label 20001 baseFri Nov 6 09:09:13.102 ESTPrefix Label Base rate Base rate State

(Packet/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------192.168.0.1/32 20001 0 0 Active

Segment Routing Command Reference for Cisco ASR 9000 Series Routers89

Segment Routing Commandsshow traffic-collector ipv4 counters label

Page 98: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

This example shows the TM counters for label 20001:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters label 20001 tmFri Nov 6 09:08:55.537 ESTPrefix Label TM rate TM rate State

(Packet/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------192.168.0.1/32 20001 0 0 Active

This example shows detailed information for the base and TM counters for label 20001:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters label 20001 detailFri Nov 6 09:08:36.201 ESTPrefix: 192.168.0.1/32 Label: 20001 State: ActiveBase:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:07 - 09:08: Packets 0, Bytes: 009:06 - 09:07: Packets 0, Bytes: 009:05 - 09:06: Packets 0, Bytes: 0

TM Counters:Average over the last 3 collection intervals:

Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:07 - 09:08: Packets 0, Bytes: 009:06 - 09:07: Packets 0, Bytes: 009:05 - 09:06: Packets 0, Bytes: 0

This example shows detailed information for the base counters for label 20001:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters label 20001 base detailFri Nov 6 09:09:51.973 ESTPrefix: 192.168.0.1/32 Label: 20001 State: ActiveBase:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 009:06 - 09:07: Packets 0, Bytes: 0

This example shows detailed information for the TM counters for label 20001:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters label 20001 tm detailFri Nov 6 09:09:40.126 ESTPrefix: 192.168.0.1/32 Label: 20001 State: ActiveTM Counters:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 009:06 - 09:07: Packets 0, Bytes: 0

Segment Routing Command Reference for Cisco ASR 9000 Series Routers90

Segment Routing Commandsshow traffic-collector ipv4 counters label

Page 99: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Related Commands DescriptionCommand

Clears all statistical counters for IPv4 prefixes.clear traffic-collector ipv4 counters prefix

Retrieves data about traffic routed through the system.show traffic-collector

enable traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers91

Segment Routing Commandsshow traffic-collector ipv4 counters label

Page 100: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show traffic-collector ipv4 counters prefixTo display base and traffic matrix statistics for the IPv4 prefixes, use the show traffic-collector ipv4 countersprefix command.

show traffic-collector ipv4 counters prefix [prefix][base | tm] [detail]

Syntax Description Specifies a prefix.prefix

Displays packet and byte rates for base counters averaged over adefined number of histories.

base

Displays packet and byte rates for traffic matrix counters (whichcover traffic from interfaces marked as external sent to SR prefixesand labels) averaged over a defined number of histories.

tm

Displays packet rates for base traffic matrix counters averaged overa defined number of histories. The histories are also listed.

The detail option can be used with the base or tm optionsseparately to show history information for the respectivecounter.

Note

detail

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read: cef

Example

This example shows the base and TM counters for all prefixes:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters prefixFri Nov 6 09:10:17.439 ESTPrefix Label Base rate TM rate State

(Bytes/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------

Segment Routing Command Reference for Cisco ASR 9000 Series Routers92

Segment Routing Commandsshow traffic-collector ipv4 counters prefix

Page 101: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

192.168.0.1/32 20001 0 0 Active192.168.0.3/32 20003 0 0 Active192.168.0.4/32 20004 0 0 Active

This example shows the base and TM counters for the specified prefix:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters prefix 192.168.0.4/32Fri Nov 6 09:12:04.116 ESTPrefix Label Base rate TM rate State

(Bytes/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------192.168.0.4/32 20004 0 0 Active

This example shows the base counters for all prefixes:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters prefix baseFri Nov 6 09:10:31.316 ESTPrefix Label Base rate Base rate State

(Packet/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------192.168.0.1/32 20001 0 0 Active192.168.0.3/32 20003 0 0 Active192.168.0.4/32 20004 0 0 Active

This example shows detailed base and TM counter information for all prefixes:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters prefix detailFri Nov 6 09:10:55.516 ESTPrefix: 192.168.0.1/32 Label: 20001 State: ActiveBase:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

TM Counters:Average over the last 3 collection intervals:

Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

Prefix: 192.168.0.3/32 Label: 20003 State: ActiveBase:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

TM Counters:Average over the last 3 collection intervals:

Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:

Segment Routing Command Reference for Cisco ASR 9000 Series Routers93

Segment Routing Commandsshow traffic-collector ipv4 counters prefix

Page 102: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

Prefix: 192.168.0.4/32 Label: 20004 State: ActiveBase:

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

TM Counters:Average over the last 3 collection intervals:

Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:09 - 09:10: Packets 0, Bytes: 009:08 - 09:09: Packets 0, Bytes: 009:07 - 09:08: Packets 0, Bytes: 0

This example shows the TM counters for all prefixes:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters prefix tmFri Nov 6 09:10:40.859 ESTPrefix Label TM rate TM rate State

(Packet/sec) (Bytes/sec)------------------------------ -------- ------------ ------------ ----------192.168.0.1/32 20001 0 0 Active192.168.0.3/32 20003 0 0 Active192.168.0.4/32 20004 0 0 Active

Related Commands DescriptionCommand

Clears all statistical counters of IPv4 tunnels.clear traffic-collector ipv4 counters tunnels

Retrieves data about traffic routed through the system.show traffic-collector

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers94

Segment Routing Commandsshow traffic-collector ipv4 counters prefix

Page 103: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

show traffic-collector ipv4 counters tunnelsTo display base and traffic matrix statistics for the tunnels, use the show traffic-collector ipv4 counterstunnels command.

show traffic-collector ipv4 counters tunnels [tunnel-te interface-name] [detail]

Syntax Description Displays records for a specific tunnel interface.tunnel-te interface-name

Displays rates and status information for configured tunnels.detail

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read: cef

This example shows the rates and status information for all tunnels:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters tunnels detailFri Nov 6 09:17:10.998 ESTTunnel: tt210 State: Active

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:16 - 09:17: Packets 0, Bytes: 009:15 - 09:16: Packets 0, Bytes: 009:14 - 09:15: Packets 0, Bytes: 0

Tunnel: tt211 State: ActiveAverage over the last 3 collection intervals:

Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:16 - 09:17: Packets 0, Bytes: 009:15 - 09:16: Packets 0, Bytes: 000:00 - 00:00: Packets 0, Bytes: 0

Segment Routing Command Reference for Cisco ASR 9000 Series Routers95

Segment Routing Commandsshow traffic-collector ipv4 counters tunnels

Page 104: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

This example shows the rates information for the specified tunnel:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters tunnels tunnel-te 210Fri Nov 6 09:18:06.196 ESTInterface Base rate Base rate State

(Packet/sec) (Bytes/sec)------------------------------ ------------ ------------ ----------tt210 0 0 Active

This example shows the rates and status information for the specified tunnel:

RP/0/0/CPU0:router# show traffic-collector ipv4 counters tunnels tunnel-te 210 detailFri Nov 6 09:18:19.140 ESTTunnel: tt210 State: Active

Average over the last 3 collection intervals:Packet rate: 0 pps, Byte rate: 0 Bps

History of counters:09:17 - 09:18: Packets 0, Bytes: 009:16 - 09:17: Packets 0, Bytes: 009:15 - 09:16: Packets 0, Bytes: 0

Related Commands DescriptionCommand

Clears all statistical counters of IPv4 prefixes.clear traffic-collector ipv4 counters prefix

Retrieves data about traffic routed through the system.show traffic-collector

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers96

Segment Routing Commandsshow traffic-collector ipv4 counters tunnels

Page 105: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

state-sync ipv4 (PCE)To configure the IPv4 address of the Path Computation Element (PCE) peer for inter-PCE state synchronization,use the state-sync ipv4 command in PCE configuration mode.

state-sync ipv4 address

Syntax Description Configures the IPv4 address for the backup PCE peer.ipv4 address

Command Default No default behavior or values

Command Modes PCE configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

PCC-PCE communication protocol (PCEP) is used for communication between PCC and PCE, as well asbetween two PCEs. The state-sync ipv4 command configures Inter-PCE state synchronization to synchronizethe LSP databases between PCEs.

Task ID OperationTaskID

This example shows how to configure the IPv4 address of the PCE peer for inter-PCE statesynchronization:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# state-sync ipv4 192.168.0.5

Segment Routing Command Reference for Cisco ASR 9000 Series Routers97

Segment Routing Commandsstate-sync ipv4 (PCE)

Page 106: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

strict (PCE)To prevent the automatic fallback behavior of the disjointness.

strict

Syntax Description This command has no keywords or arguments.

Command Default Disabled

Command Modes PCE disjoint configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

You configure the disjoint group ID and define the preferred level of disjointness (the type of resources thatshould not be shared by the two paths) using the group-id type command. If a pair of paths meeting therequested disjointness level cannot be found, then the paths will automatically fallback to a lower level. Thestrict command prevents the automatic fallback behavior. If a pair of paths meeting the requesteddisjointness-level cannot be found, the disjoint calculation terminates and no new path is provided. The existingpath is not modified.

Task ID OperationTaskID

This example shows how to prevent the automatic fallback disjoint behavior:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# disjoint-pathRP/0/RSP0/CPU0:router(config-pce-disjoint)# group-id path1 type nodeRP/0/RSP0/CPU0:router(config-pce-disjoint)# strict

Segment Routing Command Reference for Cisco ASR 9000 Series Routers98

Segment Routing Commandsstrict (PCE)

Page 107: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

tcp-buffer (PCE)To configure the size of the transmit and receive TCP buffer per each PCEP session, use the tcp-buffercommand in PCE configuration mode.

tcp-buffer size

Syntax Description Buffer size, in bytes. The range is from 204800 to 1024000.size

Command Default 256000

Command Modes PCE configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

PCC-PCE communication protocol (PCEP) is a TCP-based protocol used for communication between PCCand PCE, as well as between two PCEs. Depending on the scale and memory requirements, you can modifythe TCP buffer size using the tcp-buffer command.

Task ID OperationTaskID

This example shows how to configure the TCP buffer size:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# tcp-buffer 1024000

Segment Routing Command Reference for Cisco ASR 9000 Series Routers99

Segment Routing Commandstcp-buffer (PCE)

Page 108: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

timers (PCE)To enter PCE timer configurationmode to configure PCE timers, use the timers command in PCE configurationmode.

timers

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values

Command Modes PCE configuration

Command History ModificationRelease

This commandwas introduced.Release6.2.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

This example shows how to enter PCE timer configuration mode:

RP/0/RSP0/CPU0:router # configureRP/0/RSP0/CPU0:router(config)# pceRP/0/RSP0/CPU0:router(config-pce)# timersRP/0/RSP0/CPU0:router(config-pce-timers)#

Segment Routing Command Reference for Cisco ASR 9000 Series Routers100

Segment Routing Commandstimers (PCE)

Page 109: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traceroute mpls nil-fec labelsTo check network connectivity and identify LSP breakages, use the traceroute mpls nil-fec labels command.

traceroute mpls nil-fec labels {label[,label...]} [output {interface tx-interface} [nexthopnext-hop-ip-address]]

Syntax Description Specifies the label stack. Use commas to separate the each label.labels label,label...

Specifies the output interface.ouput interface tx-interface

(Optional) Causes packets to go through the specified next-hop address.nexthopnext-hop-ip-address

Command Default None

Command Modes EXEC

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

mpls-te

Example

This example shows how to check connectivity for a known label stack using a specific outputinterface and next-hop address:

RP/0/RSP0/CPU0:router# traceroute mpls nil-fec labels 16005,16007 output interfaceGigabitEthernet 0/2/0/1 nexthop 10.1.1.4Tracing MPLS Label Switched Path with Nil FEC labels 16005,16007, timeout is 2 seconds

Codes: '!' - success, 'Q' - request not sent, '.' - timeout,'L' - labeled output interface, 'B' - unlabeled output interface,'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,'M' - malformed request, 'm' - unsupported tlvs, 'N' - no label entry,'P' - no rx intf label prot, 'p' - premature termination of LSP,'R' - transit router, 'I' - unknown upstream index,'l' - Label switched with FEC change, 'd' - see DDMAP for return code,'X' - unknown return code, 'x' - return code 0

Segment Routing Command Reference for Cisco ASR 9000 Series Routers101

Segment Routing Commandstraceroute mpls nil-fec labels

Page 110: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Type escape sequence to abort.0 10.1.1.3 MRU 1500 [Labels: 16005/16007/explicit-null Exp: 0/0/0]

L 1 10.1.1.4 MRU 1500 [Labels: implicit-null/16007/explicit-null Exp: 0/0/0] 1 msL 2 10.1.1.5 MRU 1500 [Labels: implicit-null/explicit-null Exp: 0/0] 1 ms! 3 10.1.1.7 1 ms

Related Commands DescriptionCommand

Checks network connectivity and identifying LSPbreakages.

ping mpls nil-fec labels

Segment Routing Command Reference for Cisco ASR 9000 Series Routers102

Segment Routing Commandstraceroute mpls nil-fec labels

Page 111: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traffic-collectorTo enable traffic collector and places the router in traffic collector configuration mode, use the traffic-collectorcommand.

traffic-collectorno traffic-collector

Syntax Description This command has no keywords or arguments.

Command Default No default behavior or values.

Command Modes Global configuration

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

read,write

Example

This example shows how to enable traffic collector and place the router in traffic collectorconfiguration mode:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# traffic-collectorRP/0/RSP0/CPU0:router(config-tc)#

Related Commands DescriptionCommand

Clears all statistical counters of all IPv4 prefixes.clear traffic-collector ipv4 counters prefix

Clears all statistical counters for all IPv4 tunnels.clear traffic-collector ipv4 counters tunnels

Retrieves data about traffic routed through the system.show traffic-collector

Sets the interval in which statistics are collected.traffic-collector statistics collection-interval

Segment Routing Command Reference for Cisco ASR 9000 Series Routers103

Segment Routing Commandstraffic-collector

Page 112: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

DescriptionCommand

Specifies the number of collected counter intervals tokeep in history.

traffic-collector statistics history-size

Specifies how long a deleted entry remains visible inhistory.

traffic-collector statistics history-timeout

Segment Routing Command Reference for Cisco ASR 9000 Series Routers104

Segment Routing Commandstraffic-collector

Page 113: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traffic-collector interfaceMarks an interface as external for traffic matrix counters.

traffic-collector interface type l3-interface-addressno traffic-collector interface type l3-interface-address

Syntax Description Allows you to specify the FastEthernet connector that you want to mark as external fortraffic matrix counters. Only one interface can be listed at a time.

FastEthernet

Allows you to specify the 40G connector that you want to mark as external for trafficmatrix counters. Only one interface can be listed at a time.

FortyGigE

Allows you to specify the 1G connector that you want to mark as external for trafficmatrix counters. Only one interface can be listed at a time.

GigabitEthernet

Allows you to specify the 100G connector that you want to mark as external for trafficmatrix counters. Only one interface can be listed at a time.

HundredGigE

Allows you to specify the POS connector that you want to mark as external for trafficmatrix counters. Only one interface can be listed at a time.

POS

Allows you to specify the 10G connector that you want to mark as external for trafficmatrix counters. Only one interface can be listed at a time.

TenGigE

Command Default No default behavior or values

Command Modes Global configuration

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines Only Layer 3 interfaces can be marked as external.

Task ID OperationTaskID

write:cef

Example

This example shows how to mark a Gigabit Ethernet interface as external for traffic matrix counters:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# traffic-collector interface gigabitEthernet 0/0/0/2

Segment Routing Command Reference for Cisco ASR 9000 Series Routers105

Segment Routing Commandstraffic-collector interface

Page 114: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Related Commands DescriptionCommand

Retrieves data about traffic routed through the system.show traffic-collector

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Segment Routing Command Reference for Cisco ASR 9000 Series Routers106

Segment Routing Commandstraffic-collector interface

Page 115: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traffic-collector statistics collection-intervalSets the interval in which statistics are collected in whole minutes only.

traffic-collector statistics collection-interval minutes

Syntax Description Sets the interval in minutes that the statistics are updated. Only a select set of values can be usedto set the interval. The following values can be used: 1, 2, 3, 4, 5, 6, 10,12, 15, 20, 30, or 60.

minutes

Command Default The default interval is 1.

Command Modes Global configuration

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

write:cef

Example

This example shows how to set the traffic collection interval to 5 minutes:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# traffic-colletor statistics collection-interval 5

Related Commands DescriptionCommand

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Specifies the number of collected counter intervals tokeep in history.

traffic-collector statistics history-size

Specifies how long a deleted entry remains visible inhistory.

traffic-collector statistics history-timeout

Segment Routing Command Reference for Cisco ASR 9000 Series Routers107

Segment Routing Commandstraffic-collector statistics collection-interval

Page 116: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traffic-collector statistics history-sizeSpecifies the number of collected counter intervals to keep in history and to use in calculating the averagebyte and packet rates.

traffic-collector statistics history-size numberno traffic-collector statistics history-size number

Syntax Description Specifies the number of records that display in the show traffic-collector command. The range isfrom 1 to 10.

number

Command Default The default history size is 5.

Command Modes Global configuration

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

write:cef

Example

This example shows how to set the number of entries kept in the history database to 8 entries:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# traffic-collector statistics history-size 8

Related Commands DescriptionCommand

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Sets the interval in which statistics are collected.traffic-collector statistics collection-interval

Specifies how long a deleted entry remains visible inhistory.

traffic-collector statistics history-timeout

Segment Routing Command Reference for Cisco ASR 9000 Series Routers108

Segment Routing Commandstraffic-collector statistics history-size

Page 117: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

traffic-collector statistics history-timeoutSpecifies how long a deleted entry remains visible in history.

traffic-collector statistics history-timeout hour

Syntax Description Sets the length of time in hours that entries appear for the show traffic-collector command beforethey are deleted. The duration range is from 1 to 720. Enter 0 to disable the history timeout.

hour

Command Default The default timeout is 48.

Command Modes Global configuration

Command History ModificationRelease

This command was introduced.Release6.0.1

Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate taskIDs. If the user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Task ID OperationTaskID

write:cef

Example

This example shows how to configure the length of time the statistics are retained in the history to100 hours:

RP/0/RSP0/CPU0:router# configureRP/0/RSP0/CPU0:router(config)# traffic-collector statistics history-timeout 100

Related Commands DescriptionCommand

Enables traffic collector and places the router in trafficcollector configuration mode.

traffic-collector

Sets the interval in which statistics are collected.traffic-collector statistics collection-interval

Specifies the number of collected counter intervals tokeep in history.

traffic-collector statistics history-size

Segment Routing Command Reference for Cisco ASR 9000 Series Routers109

Segment Routing Commandstraffic-collector statistics history-timeout

Page 118: Segment Routing Command Reference for Cisco ASR 9000 ......index 28 isisprefix-attributesn-flag-clear 30 keepalive(PCE) 31 local-discriminator 32 lsp(PCE) 34 metric-typedelay 35 microloopavoidancerib-update-delay

Segment Routing Command Reference for Cisco ASR 9000 Series Routers110

Segment Routing Commandstraffic-collector statistics history-timeout