Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


backup-selection (Protocols OSPF)


Hierarchy Level


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.


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.


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.


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.