Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

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.

preference statement at the [edit protocols source-packet-routing] hierarchy has been deprecated in Junos OS Release 19.2R2 and later releases.

compute-options and compute-profile statements introduced in Junos OS Release 19.1R1-S1 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

inherit-label-nexthopsInherit label next hops for first hop in all the segment lists.

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.

lsp-external-controller nameSpecify an external path computing entity, typically the network controller.
maximum-segment-list-depthSpecify a maximum segment list depth for segment routing traffic engineering policies.

Default: The default value is 5.

Range: 1 through 16.

retry-timerNumber of seconds to wait before trying to reconnect to the auto-translate service if the previous attempt failed. Connections may fail if there is no link, or node, for a given IP address, or if the link or node does not have a SID.

Default: 30 seconds

Range: 1 through 600

sr-preferenceSpecify a preference for static segment routing policies. BGP chooses a segment routing policy with a higher value over policies with lower values.

Range: 0 through 4,294,967,295

sr-preference-overrideSpecify a preference override for static segment routing policies that BGP uses to select a segment routing policy. BGP chooses a policy with a higher value over policies with lower values.

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.