segment-list
Syntax
segment-list name { hop-name { (loose | strict); ip_address IP address; label number ; label-type node srv6-sid; } auto-translate { protected mandatory; unprotected mandatory; } dynamic; compute; inherit-label-nexthops; srv6; }
Hierarchy Level
[edit logical-systems name protocols source-packet-routing], [edit protocols source-packet-routing]
Description
Specify an name to identify the segment routing list (used in traffic engineering policy) and the explicit path for source routing label switched path (LSPs) to traverse through traffic engineering segments. The segment list is essentially a stack of segment identifiers.
Starting in Junos OS release 19.1R1 for MX and PTX Series routers, you can enable a translation service to translate next-hop IP addresses into the corresponding segment identifier (SID) labels. The translation service keeps track of the node reached at each hop.
When configured, the segment-list
of a segment routing
traffic engineering (SR-TE) LSP accepts IP addresses for all the hops
along the path. These IP addresses can be either the loopback address
of a node, or the IP address of a link, as identified by the node-type
. When auto-translation
is enabled, next
hop IP addresses are automatically translated to corresponding SIDs
using the translation service. A retry rate can be set for the retry
timer at the source-packet-routing
hierarchy level.
The segment list enables BGP and static segment routing LSP to steer traffic based on segment routing policies. When a segment list is used by the protocol BGP, the BGP protocol validates these segment identifiers and selects valid segments for traffic engineering.
Options
name |
Specify a name to identify a SR-TE segment-list. Note:
The combined length of tunnel-name and LSP name must not exceed 53 characters for per-path telemetry to work. |
<hop-name> |
Indicates the next hop in the segment routing traffic engineering policy (SR-TE).
|
auto-translate |
This option must be enabled before a given segment list can use IP addresses instead of SIDs for any hop other than the first hop. In addition, all hops in the segment list must have IP addresses. If any hops on the list have both an IP address and a label configured, the label will be retained. Link addresses are only translated into labels if the preceding node advertises an adjacency SID for the address (otherwise translation fails). Note:
In Junos OS Release 19.1R1, for auto-translate to work for OSPF, RSVP for segment routing must be enabled on all participating interfaces.
|
compute |
(Optional) Enable use of explicit paths specified in segment list for path computation. |
inherit-label-nexthops |
Inherit label next hops for first hop in this segment list that have both IP address and label configured in the first hop. You can configure the The If the |
srv6 | Specify SRv6 TE segment list. |
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
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.4R1.
ip-address
statement introduced in Junos OS Release 18.1R1 on MX
Series routers.
inherit-label-nexthops
, node-type
, and
auto-translate
statements introduced in Junos OS Release 19.1R1
on MX Series routers.
dynamic
statement introduced in Junos OS Release 19.2R1 on all
platforms.
compute
, loose
, and strict
statements introduced in Junos OS Release 19.1R1-S1 on MX Series routers.
srv6-sid
statement introduced in Junos OS Release 21.3R1.
srv6
statement introduced in Junos OS Release 21.3R1.