global block
Use this command to configure a segment routing global block (SRGB).
Use the no form of this command to remove segment-routing global block.
Note: The allocation of the desirable SRGB will depend upon the availability of the desirable pool. If there is any conflict or any protocol is already using any label/pool of labels which is falling between SRGB range, SRGB will not be allocated and an error will be prompted.
Note: You cannot configure a SRGB for an IGP instance which is outside globally configured SRGB (or default SRGB if SRGB is not configured). An error will be returned if you configure
segment-routing mpls and try to use a block outside the globally configured SRGB (default range is 16000-23999).
Note: You cannot remove a globally configured SRGB if any IGP instance has SRGB configured locally and being used.
Note: You can modify SRGB only if the newly configured SRGB range does not affect any IGP instance having local SRGB configuration. A newly configured SRGB must include an IGP configured SRGB range.
Note: If you have not configured SRGB inside an IGP instance and has
segment-routing mpls configuration configured, any change in global SRGB configuration will take into effect at IGP instance level only after the user toggles
segment-routing mpls configuration.
Note: The maximum allowed block size for SRGB is 262143 (25% of complete label pool).
Command Syntax
global block <16-1048575> <16-1048575>
no global block
Parameters
<16-1048575>
SRGB start and end values
Default
Start value of SRGB range: 16000
End value of SRGB range: 23999
Command Mode
Segment routing mode
Applicability
This command was introduced in OcNOS version 4.0 and the SRGB range changed in OcNOS version 6.1.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#global block 17000 18000
(config-sr)#
Last modified date: 10/20/2023