Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Configure prefix segment attributes such as index and node segment. Prefix segment index is the index assigned to a specific prefix. This is used by all other remote routers in the network to index the prefix into respective segment routing global blocks (SRGB) to derive the segment identifier and to forward the traffic destined for the current prefix. Prefix segment index is provisioned through policy for each prefix along with the option to mark it as a node segment.

algorithm name

Specify the prefix segment attributes for strict/flex algorithm.

  • Range: 1 through 255

index index

Specify the prefix segment index

  • Range: 0 through 199,999


Set node segment flag for this prefix segment.


Specify this option if a large number of prefixes need to be assigned SID value. You can reuse the allocated SID on the IGP route only if they are available during export of IGP routes.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 17.2.

Statement introduced under [edit protocols ospf source-packet-routing] hierarchy in Junos OS Release 19.1R1 for MX Series.

reuse-allocated-sid option introduced in Junos OS Release 20.4R1.