Skip to content

Segment Routing

Configure Segment Routing (SR) global and local block parameters on IOS-XR devices.

Diagram
NameTypeConstraintMandatoryDefault Value
segment_routingClass[segment_routing]No

segment_routing (iosxr.devices.configuration)

Section titled “segment_routing (iosxr.devices.configuration)”
NameTypeConstraintMandatoryDefault Value
global_block_lower_boundIntegermin: 16000, max: 1048575No
global_block_upper_boundIntegermin: 16000, max: 1048575No
local_block_lower_boundIntegermin: 15000, max: 1048575No
local_block_upper_boundIntegermin: 15000, max: 1048575No

Example-1: Configure Segment Routing with global and local blocks.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
segment_routing:
global_block_lower_bound: 16000
global_block_upper_bound: 23999
local_block_lower_bound: 15000
local_block_upper_bound: 15999

Example-2: Configure Segment Routing with default settings.

iosxr:
devices:
- name: router-2
host: 10.10.10.1:57400
configuration:
segment_routing:
global_block_lower_bound: 16000
global_block_upper_bound: 19999