Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

prefix-segment

Syntax

Hierarchy Level

Description

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.

Indicate route which is evaluating against policy must have prefix-segment information associated with it. If route has prefix-segment information associated with it, policy action results in Policy Accept, if not, policy action is Policy Reject. Once policy action result in Policy Accept after evaluating from clause, action specified in the then clause is applied to the matching route.

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

node-segment

Set node segment flag for this prefix segment.

reuse-allocated-sid

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.

redistribute Enable prefix-sid redistribution between BGP and ISIS via policy configuration without specifying index under prefix-segment.

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.

redistribute option introduced in Junos OS Release 22.2R1.