Example for Configuring IS-IS Auto FRR
Networking Requirements
If a fault occurs on a network, IS-IS Auto FRR fast switches traffic to a backup link before the route convergence, which prevents traffic interruption.
In Figure 9-22:
IS-IS runs between four NEs.
The four NEs are all Level-1-2 NEs.
If Device C or Link T fails, it is required that the traffic forwarded by Device A be rapidly switched to the backup link.
Device Name |
Interface |
IP Address |
---|---|---|
Device A |
GE0/1/0 |
10.0.1.1/24 |
GE0/2/0 |
10.1.1.1/24 |
|
Device B |
GE0/1/0 |
10.1.1.2/24 |
GE0/2/0 |
10.2.1.1/24 |
|
Device C |
GE0/1/0 |
10.0.1.2/24 |
GE0/2/0 |
10.3.1.1/24 |
|
Device D |
GE0/1/0 |
10.3.1.2/24 |
GE0/2/0 |
10.2.1.2/24 |
|
GE0/3/0 |
10.4.1.1/24 |
Configuration Roadmap
The configuration roadmap is as follows:
Enable basic IS-IS functions on each NE.
Set a higher link cost (in compliance with the traffic protection inequality of IS-IS Auto FRR) on GE 0/2/0 of Device A, and ensure that Link T is preferentially selected.
- Enable IS-IS Auto FRR on Device A that forwards the protected traffic.
Data Preparation
To complete the configuration, you need the following data:
IP addresses of interfaces on each NE
NET of each NE
Level of each NE
Costs of interfaces on each NE
Procedure
- Configure IP addresses for interfaces. For configuration details, see Configuration Files in this section.
- Configure basic IS-IS functions.
# Configure Device A.
[~DeviceA] isis 1 [*DeviceA-isis-1] is-level level-1-2 [*DeviceA-isis-1] network-entity 10.0000.0000.0001.00 [*DeviceA-isis-1] quit [*DeviceA] interface gigabitethernet 0/1/0 [*DeviceA-GigabitEthernet0/1/0] isis enable 1 [*DeviceA-GigabitEthernet0/1/0] quit [*DeviceA] interface gigabitethernet 0/2/0 [*DeviceA-GigabitEthernet0/2/0] isis enable 1 [*DeviceA-GigabitEthernet0/2/0] commit [~DeviceA-GigabitEthernet0/2/0] quit
# Configure Device B.
[~DeviceB] isis 1 [*DeviceB-isis-1] is-level level-1-2 [*DeviceB-isis-1] network-entity 10.0000.0000.0002.00 [*DeviceB-isis-1] quit [*DeviceB] interface gigabitethernet 0/1/0 [*DeviceB-GigabitEthernet0/1/0] isis enable 1 [*DeviceB-GigabitEthernet0/1/0] quit [*DeviceB] interface gigabitethernet 0/2/0 [*DeviceB-GigabitEthernet0/2/0] isis enable 1 [*DeviceB-GigabitEthernet0/2/0] commit [~DeviceB-GigabitEthernet0/2/0] quit
# Configure Device C.
[~DeviceC] isis 1 [*DeviceC-isis-1] is-level level-1-2 [*DeviceC-isis-1] network-entity 10.0000.0000.0003.00 [*DeviceC-isis-1] quit [*DeviceC] interface gigabitethernet 0/1/0 [*DeviceC-GigabitEthernet0/1/0] isis enable 1 [*DeviceC-GigabitEthernet0/1/0] quit [*DeviceC] interface gigabitethernet 0/2/0 [*DeviceC-GigabitEthernet0/2/0] isis enable 1 [*DeviceC-GigabitEthernet0/2/0] commit [~DeviceC-GigabitEthernet0/2/0] quit
# Configure Device D.
[~DeviceD] isis 1 [*DeviceD-isis-1] is-level level-1-2 [*DeviceD-isis-1] network-entity 10.0000.0000.0004.00 [*DeviceD-isis-1] quit [*DeviceD] interface gigabitethernet 0/1/0 [*DeviceD-GigabitEthernet0/1/0] isis enable 1 [*DeviceD-GigabitEthernet0/1/0] quit [*DeviceD] interface gigabitethernet 0/2/0 [*DeviceD-GigabitEthernet0/2/0] isis enable 1 [*DeviceD-GigabitEthernet0/2/0] commit [~DeviceD-GigabitEthernet0/2/0] quit
- Set the cost of Gigabit Ethernet 0/2/0 on Device A to 30, and then check routing information.
# Configure the cost of GE 0/2/0 on Device A to 30.
[~DeviceA] interface gigabitethernet 0/2/0 [~DeviceA-GigabitEthernet0/2/0] isis cost 30 [*DeviceA-GigabitEthernet0/2/0] commit [~DeviceA-GigabitEthernet0/2/0] quit
# Check information about the link from Device A to Device D. Link T has a lower cost, and IS-IS preferentially selects Link T to send traffic that is forwarded by Device A.
[~DeviceA] display isis route verbose Route information for ISIS(1) ----------------------------- ISIS(1) Level-1 Forwarding Table -------------------------------- IPV4 Dest : 10.4.1.0/24 Int. Cost : 30 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/L/-/- Priority : Low NextHop : Interface : ExitIndex : 10.0.1.2 GE0/1/0 0x00000003 Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set ISIS(1) Level-2 Forwarding Table -------------------------------- IPV4 Dest : 10.4.1.0/24 Int. Cost : 30 Ext. Cost : NULL Admin Tag : - Src Count : 3 Flags : -/-/-/-/- Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
- Enable IS-IS Auto FRR.
# Enable IS-IS Auto FRR on Device A.
[~DeviceA] isis [~DeviceA-isis-1] frr [*DeviceA-isis-1-frr] loop-free-alternate [*DeviceA-isis-1-frr] commit [~DeviceA-isis-1-frr] quit [~DeviceA-isis-1] quit
- Verify the configuration.
# Check information about the link from Device A to Device D. The command output shows that IS-IS generates a backup link.
[~DeviceA] display isis route verbose Route information for ISIS(1) ----------------------------- ISIS(1) Level-1 Forwarding Table -------------------------------- IPV4 Dest : 10.4.1.0/24 Int. Cost : 30 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/L/-/- Priority : Low NextHop : Interface : ExitIndex : 10.0.1.2 GE0/1/0 0x00000003 (B)10.1.1.2 GE0/2/0 0x00000004 Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set ISIS(1) Level-2 Forwarding Table -------------------------------- IPV4 Dest : 10.4.1.0/24 Int. Cost : 30 Ext. Cost : NULL Admin Tag : - Src Count : 3 Flags : -/-/-/-/- Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
Configuration Files
Device A configuration file
# sysname DeviceA # isis 1 network-entity 10.0000.0000.0001.00 frr loop-free-alternate level-1 loop-free-alternate level-2 # interface gigabitethernet 0/1/0 undo shutdown ip address 10.0.1.1 255.255.255.0 isis enable 1 # interface gigabitethernet 0/2/0 undo shutdown ip address 10.1.1.1 255.255.255.0 isis enable 1 isis cost 30 # return
Device B configuration file
# sysname DeviceB # isis 1 network-entity 10.0000.0000.0002.00 # interface gigabitethernet 0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 isis enable 1 # interface gigabitethernet 0/2/0 undo shutdown ip address 10.2.1.1 255.255.255.0 isis enable 1 # return
Device C configuration file
# sysname DeviceC # isis 1 network-entity 10.0000.0000.0003.00 # interface gigabitethernet 0/1/0 undo shutdown ip address 10.0.1.2 255.255.255.0 isis enable 1 # interface gigabitethernet 0/2/0 undo shutdown ip address 10.3.1.1 255.255.255.0 isis enable 1 # return
Device D configuration file
# sysname DeviceD # isis 1 network-entity 10.0000.0000.0004.00 # interface gigabitethernet 0/1/0 undo shutdown ip address 10.3.1.2 255.255.255.0 isis enable 1 # interface gigabitethernet 0/2/0 undo shutdown ip address 10.2.1.2 255.255.255.0 isis enable 1 # interface gigabitethernet 0/3/0 undo shutdown ip address 10.4.1.1 255.255.255.0 isis enable 1 # return