! PermitANY — Juniper JunOS IS-IS & Segment Routing ! IS-IS Level 1/2 routing with Segment Routing MPLS (SR-MPLS) and traffic-engineering extensions for Juniper MX/PTX routers. Includes SRGB configuration and prefix-SIDs. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! set system host-name JNP-P-01 set routing-options router-id 1.1.1.1 ! # IS-IS Protocol set protocols isis level level-2 set protocols isis traffic-engineering {{#if (eq metric_style "wide")}} set protocols isis level 2 wide-metrics-only {{/if}} set protocols isis interface ge-0/0/0.0 level level-2 metric 10 {{#if (eq point_to_point "yes")}} set protocols isis interface ge-0/0/0.0 point-to-point {{/if}} {{#if (eq bfd "yes")}} set protocols isis interface ge-0/0/0.0 bfd-liveness-detection minimum-interval 300 set protocols isis interface ge-0/0/0.0 bfd-liveness-detection multiplier 3 {{/if}} ! # Segment Routing set routing-options source-packet-routing srgb start-label 16000 index-range 23999 set protocols isis source-packet-routing srgb start-label 16000 index-range 23999 set protocols isis interface lo0.0 level level-2 ipv4-adjacency-segment protected set protocols isis source-packet-routing node-segment ipv4-index 1 ! # SR-TE Policy: TE-TO-JNP-P-02 set routing-options source-packet-routing srte policy TE-TO-JNP-P-02 color 100 endpoint 2.2.2.2 set routing-options source-packet-routing srte policy TE-TO-JNP-P-02 primary segment-list [16002 16003] ! # IS-IS NET set protocols isis interface lo0.0 passive set protocols isis traceoptions file isis.log set protocols isis traceoptions flag all