Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?





Hierarchy Level

Release Information

Statement introduced in Junos OS Release 17.2 for the MX Series routers, PTX Series routers, QFX5100 switches, and QFX10000 switches.

Statement introduced in Junos OS Release 17.3R1 for the QFX5110 and QFX5200 switches.

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


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.

index indexSpecify the prefix segment index

Range: 0 through 199,999

node-segmentSet node segment flag for this prefix segment.

Required Privilege Level

routing—To view this statement in the configuration.

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