Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

backup-selection (Protocols OSPF)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
backup-selection {
    destination  prefix {
        interface (interface-name| all){
            admin-group {
                exclude  [ group-name ];
                include-all  [ group-name ];
                include-any  [ group-name ];
                preference  [ group-name ];
            }
            bandwidth-greater-equal-primary;
            dest-metric (highest | lowest);
            downstream-paths-only;
            metric-order [ root dest ];
            node {
                exclude [ node-address ]; 
                preference [ node-address ];
            }
            protection-type (link | node | node-link);
            root-metric (highest | lowest);
            srlg (loose | strict);
            evaluation-order [ admin-group srlg bandwidth protection-type node metric ] ;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name routing-options],
[edit logical-systems logical-system-name routing-instances instance-name routing-options],
[edit routing-instances instance-name routing-options],
[edit routing-options]

Description

Define backup selection policies, per prefix per primary next-hop interface, to enforce loop-free alternate (LFA) selection based on admin-group, srlg, bandwidth, protection-type, node, and metric attributes of the backup path.

Options

destination prefix

Define the backup selection policy for a particular destination prefix or for all the prefixes. The value prefix defines the destination prefix name and prefix length. You can specify 0/0 for the IPv4 least-specific prefix or 0::0/0 for the IPv6 least-specific prefix.

node

Define a list of loop-back IP addresses of the adjacent nodes to either prefer or exclude in the backup path selection. The node can be a local (adjacent router) node, remote node, or any other router in the backup path.

Note:

The nodes are identified through the route-id advertised by a node in the LSP.

exclude [ node-address ]

Specify one or more nodes to be excluded. The backup path that has a router from the list is not selected as the loop-free alternative or backup next hop.

preference [ node-address ]

Define an ordered set of one or more nodes to be preferred. The backup path having the leftmost node is selected.

The remaining statements are explained separately. See CLI Explorer.

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 15.1.

footer-navigation