segment
Syntax
segment {
(pop | swap swap);
description description;
next-hop next-hop;
sid-label;
}
Hierarchy Level
[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 18.1R1 for MX Series, PTX Series, and QFX Series.