Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Backup Selection Policy for IS-IS Protocol

This example shows how to configure the backup selection policy for the IS-IS protocol.

When you enable backup selection policies, Junos OS allows selection of LFA based on the policy rules and attributes of the links and nodes in the network. These attributes are admin-group, srlg, bandwidth, protection-type, metric, neighbor, and neighbor-tag.

Requirements

This example uses the following hardware and software components:

  • Eight routers that can be a combination of M Series Multiservice Edge Routers, MX Series 5G Universal Routing Platforms, and T Series Core Routers

  • Junos OS Release 14.1 or later running on all devices

Before you begin:

  1. Configure the device interfaces.

  2. Configure IS-IS.

Overview

Starting with Junos OS Release 14.1, the default loop free alternative (LFA) selection algorithm or criteria can be overridden with an LFA policy. These policies are configured for each destination (IPv4 and IPv6) and a primary next-hop interface . These backup policies enforce LFA selection based on admin-group, srlg, bandwidth, protection-type, metric, neighbor, and neighbor-tag attributes of the backup path. During backup shortest-path-first (SPF) computation, each attribute (both node and link) of the backup path, stored per backup next-hop, is accumulated by IGP. For the routes created internally by IGP, the attribute set of every backup path is evaluated against the policy configured for each destination (IPv4 and IPv6) and a primary next-hop interface. The first or the best backup path is selected and installed as the backup next hop in the routing table. To configure the backup selection policy, include the backup-selection configuration statement at the [edit routing-options] hierarchy level. The show backup-selection command displays the configured policies for a given interface and destination. The display can be filtered against a particular destination, prefix, interface, or logical systems.

Topology

In this topology, backup selection policy is configured on Device R3.

Figure 1: Backup Selection PathBackup Selection Path

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

R0

R1

R2

R3

R4

R5

R6

R7

Configuring Device R3

Step-by-Step Procedure

The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure Device R3:

  1. Configure the interfaces.

  2. Configure routing policy.

  3. Enable RSVP on all the interfaces.

  4. Configure administrative groups.

  5. Configure srlg values.

  6. Enable MPLS on all the interfaces.

  7. Configure srlg on the interfaces.

  8. Configure administrative groups on the interfaces.

  9. Enable link protection and configure metric values on the interfaces.

  10. Configure the metric value on all the interfaces.

  11. Apply the routing policy to all equal cost multi paths exported from the routing table to the forwarding table.

  12. Configure attributes of the backup selection policy.

Results

From configuration mode, confirm your configuration by entering the show interfaces, show protocols, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

If you are done configuring the device, enter commit from configuration mode.

Verification

Verify that the configuration is working properly.

Verifying the Routes

Purpose

Verify that the expected routes are learned.

Action

From operational mode, run the show route command for the routing table.

Meaning

The output shows all Device R3 routes.

Verifying the IS-IS Route

Purpose

Verify the routing table of IS-IS.

Action

From operational mode, run the show isis route command for Device R3.

Meaning

The output displays the routing table of IS-IS routers.

Verifying the Backup SPF Roots for Device R3.

Purpose

Verify the potential IS-IS backup SPF roots for Device R3.

Action

From operational mode, run the show isis backup spf results command for Device R3.

Meaning

The output displays the root calculations through each directly connected router.

Verifying the Backup Selection Policy for Device R3

Purpose

Action

From operational mode, run the show backup-selection command for Device R3.

Meaning

The output displays the configured policies per prefix per primary next-hop interface.