Home > Articles > Segment Routing

Segment Routing

Command Reference to Check Your Memory

This section includes the most important configuration and EXEC commands covered in this chapter. You might not need to memorize the complete syntax of every command, but you should be able to remember the basic keywords that are needed.

To test your memory of the commands, cover the right side of Table 15-6 with a piece of paper, read the description on the left side, and then see how much of the command you can remember.

Table 15-6 CLI Commands to Know

Task

Command Syntax

Define Segment Routing Global Block Range

RP/0/0/CPU0:P3(config)# segment-routing global-block

Configure IS-IS advertisements to BGP-LS

RP/0/0/CPU0:P3(config-isis)# distribute link-state

Configure IS-IS to generate and accept only new-style type-length-value (TLV) objects

RP/0/0/CPU0:P3(config-isis-af)# metric-style wide [transition] [ level { 1 | 2 } ]

Enable Segment Routing for IPv4 addresses with MPLS data plane

RP/0/0/CPU0:P3(config-isis-af)# segment-routing mpls

Enable topology-independent loop-free alternate (TI-LFA) path using the IP fast reroute (FRR) mechanism

RP/0/0/CPU0:P3(config-isis-if)# fast-reroute per-prefix

RP/0/0/CPU0:P3 (config-isis-if)# fast-reroute per-prefix ti-lfa

Configure the Segment Routing Mapping Server (SRMS)

RP/0/0/CPU0:P3(config)# segment-routing mapping-server prefix-sid-map address-family ipv4 10.1.100.4/32 17000 range 100

Trace the routes to a destination in a Segment Routing network

RP/0/0/CPU0:P3# traceroute sr-mpls 10.1.100.2/32

Set the preference of Segment Routing (SR) labels over Label Distribution Protocol (LDP) labels

RP/0/0/CPU0:P3(config-isis-af)# segment-routing mpls [sr-prefer]

Specify or advertise the prefix (node) segment ID (SID) as an index value in IS-IS

RP/0/0/CPU0:P3(config)# router isis 100

RP/0/0/CPU0:P3(config-isis)# interface loopback0

RP/0/0/CPU0:P3(config-isis-if)# address-family ipv4 unicast

RP/0/0/CPU0:P3(config-isis-if-af)# prefix-sid index 3

Specify or advertise the prefix (node) segment ID (SID) as an absolute value in OSPF

RP/0/0/CPU0:P3# configure

RP/0/0/CPU0:P3(config)# router ospf 1

RP/0/0/CPU0:P3(config-ospf)# area 0

RP/0/0/CPU0:P3(config-ospf-ar)# interface loopback0

RP/0/0/CPU0:P3(config-ospf-ar-if)# prefix-sid absolute 16003

Specify the Binding SID (BSID) allocation behavior

RP/0/0/CPU0:P3# configure

RP/0/0/CPU0:P3(config)# segment-routing

RP/0/0/CPU0:P3(config-sr)# traffic-eng

RP/0/0/CPU0:P3(config-sr-te)# binding-sid explicit fallback-dynamic

RP/0/0/CPU0:P3(config-sr-te)# policy SAMPLE

RP/0/0/CPU0:P3(config-sr-te-policy)# binding-sid mpls 1000

Configure SRv6-TE locator and Binding SID (BSID) behavior

RP/0/0/CPU0:P3# configure

RP/0/0/CPU0:P3(config)# segment-routing traffic-eng

RP/0/0/CPU0:P3(config-sr-te)# srv6 locator loc1 binding-sid dynamic behavior ub6-encaps-reduced

Globally enable SRv6

RP/0/0/CPU0:P3(config)# segment-routing srv6

Configure the SRv6 Locator

RP/0/0/CPU0:P3(config-srv6)# locators

RP/0/0/CPU0:P3(config-srv6-locators)# locator myLoc1

RP/0/0/CPU0:P3(config-srv6-locator)# micro-segment behavior unode psp-usd

RP/0/0/CPU0:P3(config-srv6-locator)# prefix 2001:0:8::/48

The 350-501 exam focuses on practical, hands-on skills that are used by networking professionals. Therefore, you should be able to identify the commands needed to configure and test. Note that not all commands are fully covered in the chapter, but their presence in the table below should lead you to investigate them further to understand this technology.

10. Review Questions | Next Section Previous Section

Cisco Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands. I can unsubscribe at any time.