source-packet-routing
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 17.4R1 for the MX Series and PTX Series with FPC-PTX-P1-A.
telemetry option introduced in Junos OS Release 18.3R1 for the MX Series and PTX Series with FPC-PTX-P1-A.
inherit-label-nexthops and retry-timer statements introduced in Junos OS Release 19.1R1 on MX Series routers.
Description
Enable Source Packet Routing in Networking (SPRING) or segment routing for traffic engineering packets for protocols that support segment routing. For example, you can configure segment routing capability for a BGP address family to steer traffic according to network requirements.
To enable segment routing traffic engineering for a BGP family, configure segment-routing-te at the [edit protocols bgp family inet|inet6] and [edit protocols bgp group group-name neighbor neighborfamily inet|inet6] hierarchy levels. Also, configure sr-preference-override at the [edit protocols bgp family inet|inet6 source-packet-routing] hierarchy level. This allows BGP to support segment routing policies and to steer traffic based on the segment list.
A policy action color: color-mode:color-value is configured at the [edit policy-options community namemembers] hierarchy level to categorize segment routing traffic. The color value is attached to BGP communities when exporting prefixes from inet-unicast and inet6-unicast address families, which associates a BGP community with a segment routing policy path definition.
Options
When the inherit-label-nexthops is configured at the [edit protocols source-packet-routing] hierarchy, it is applied globally, and takes precedence over individual segment-list level configuration.
For dynamic non-colored static LSPs, that is the PCEP-driven segment routing LSPs, the inherit-label-nexthops statement must be enabled globally, as the segment-level configuration is not applied.
Default: The default value is 5.
Range: 1 through 16.
Default: 30 seconds
Range: 1 through 600
Range: 0 through 4,294,967,295
Default: The default value is 100
Range: 0 through4,294,967,295
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.