Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

segment

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
segment {
    (pop | swap swap);
    description description;
    next-hop next-hop;
    sid-label;
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems name protocols mpls static-label-switched-path],
[edit logical-systems name routing-instances name protocols mpls static-label-switched-path],
[edit protocols mpls static-label-switched-path],
[edit routing-instances name protocols mpls static-label-switched-path]

Description

Static segment for segment routing. A static segment is identified by a unique name. This segment type is assigned a segment identifier (SID) which falls under a default range of 100000 through 1048575. The segment has label operation such as pop-and-forward for adjacency segment and swap-and-forward for prefix or node segment. For both types of label operation, the segment is assigned a next hop that specifies the remote IP address if the outgoing interface is a multi-access interface, or the name of the outgoing interface if the interface is a point-to-point interface. Static segment configuration is used to statically configure or provision the adjacency SIDs, node SIDs, and prefix SIDs on transit routers.

Options

pop

Pop the SID label

swap

Swap the SID label to this label

description

Text description of label-switched path

next-hop

IPv4 address or interface of next-hop router

sid-label

Segment identifier (SID) label

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing

Release Information

Statement introduced in Junos OS Release OS 18.1R1 for MX Series, PTX Series, and QFX Series.

footer-navigation