Segment Routing v6 Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Segment Routing v6 Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

Configure TI-LFA

Want to summarize with AI?

Log in

Guides users through configuring and verifying link, node, and SRLG protection with IS-IS and Flex-Algo in an SRv6 network.


Procedure

  1. Configure different types of TI-LFA protection for SRv6 IS-IS.

    Example:

    Router(config)# router isis core
    Router(config-isis)# interface bundle-ether 1201 
    Router(config-isis-if)# address-family ipv6 unicast 
    Router(config-isis-if-af)# fast-reroute per-prefix  
    Router(config-isis-if-af)# fast-reroute per-prefix ti-lfa
    Router(config-isis-if-af)# exit
    Router(config-isis-if)# exit
    Router(config-isis)# interface bundle-ether 1301       
    Router(config-isis-if)# address-family ipv6 unicast 
    Router(config-isis-if-af)# fast-reroute per-prefix  
    Router(config-isis-if-af)# fast-reroute per-prefix ti-lfa
    Router(config-isis-if-af)# fast-reroute per-prefix tiebreaker node-protecting index 100
    Router(config-isis-if-af)# fast-reroute per-prefix tiebreaker srlg-disjoint index 200
    Router(config-isis-if-af)# exit

    You can configure SRv6 IS-IS TI-LFA with Flexible Algorithm. TI-LFA backup paths for particular Flexible Algorithm are computed using the same constraints as the calculation of the primary paths for such Flexible Algorithm. These paths use the locator prefix advertised specifically for such Flexible Algorithm in order to enforce a backup path. By default, LFA/TI-LFA for SRv6 Flexible Algorithm uses the LFA/TI-LFA configuration of Algo 0.

    Router(config)# router isis core
    Router(config-isis)# flex-algo 128
    Router(config-isis-flex-algo)# fast-reroute disable
    
  2. Verify the SRv6 IS-IS TI-LFA configuration.

    Example:

    This example shows how to verify the SRv6 IS-IS TI-LFA configuration using the show isis ipv6 fast-reroute ipv6-prefix detail command.

    Router# show isis ipv6 fast-reroute cafe:0:2::2/128 detail
    
    L2 cafe:0:2::2/128 [20/115] Label: None, medium priority
         via fe80::e00:ff:fe3a:c700, HundredGigE0/0/0/0, Node2, Weight: 0
           Backup path: TI-LFA (link), via fe80::1600:ff:feec:fe00, HundredGigE0/0/0/1 Node3, Weight: 0, Metric: 40
             P node: Node4.00 [cafe:0:4::4], SRv6 SID: cafe:0:4:: uN (PSP/USD)
             Backup-src: Node2.00
           P: No, TM: 40, LC: No, NP: No, D: No, SRLG: Yes
         src Node2.00-00, cafe:0:2::2
    
    

    This example shows how to verify the SRv6 IS-IS TI-LFA configuration using the show route ipv6 ipv6-prefix detail command.

    Router# show route ipv6 cafe:0:2::2/128 detail
    Tue Feb 23 23:08:48.151 UTC
    
    Routing entry for cafe:0:2::2/128
      Known via "isis 1", distance 115, metric 20, type level-2
      Installed Feb 23 22:57:38.900 for 00:11:09
      Routing Descriptor Blocks
        fe80::1600:ff:feec:fe00, from cafe:0:2::2, via HundredGigE0/0/0/1, Backup (TI-LFA)
          Repair Node(s): cafe:0:4::4
          Route metric is 40
          Label: None
          Tunnel ID: None
          Binding Label: None
          Extended communities count: 0
          Path id:65              Path ref count:1
          NHID:0x20002(Ref:19)
          SRv6 Headend: H.Encaps.Red, SID-list {cafe:0:4::}
        fe80::e00:ff:fe3a:c700, from cafe:0:2::2, via HundredGigE0/0/0/0, Protected
          Route metric is 20
          Label: None
          Tunnel ID: None
          Binding Label: None
          Extended communities count: 0
          Path id:1       Path ref count:0
          NHID:0x20001(Ref:19)
          Backup path id:65
      Route version is 0x4 (4)
      No local label
      IP Precedence: Not Set
      QoS Group ID: Not Set
      Flow-tag: Not Set
      Fwd-class: Not Set
      Route Priority: RIB_PRIORITY_NON_RECURSIVE_MEDIUM (7) SVD Type RIB_SVD_TYPE_LOCAL
      Download Priority 1, Download Version 66
      No advertising protos.
    
    

    This example shows how to verify the SRv6 IS-IS TI-LFA configuration using the show cef ipv6 ipv6-prefix detail location location command.

    Router# show cef ipv6 cafe:0:2::2/128 detail location 0/0/cpu0
    Tue Feb 23 23:09:07.719 UTC
    cafe:0:2::2/128, version 66, SRv6 Headend, internal 0x1000001 0x210 (ptr 0x8e96fd2c) [1], 0x0 (0x8e93fae0), 0x0 (0x8f7510a8)
     Updated Feb 23 22:57:38.904
     local adjacency to HundredGigE0/0/0/0
    
     Prefix Len 128, traffic index 0, precedence n/a, priority 1
      gateway array (0x8e7b5c78) reference count 1, flags 0x500000, source rib (7), 0 backups
                    [2 type 3 flags 0x8401 (0x8e86ea40) ext 0x0 (0x0)]
      LW-LDI[type=3, refc=1, ptr=0x8e93fae0, sh-ldi=0x8e86ea40]
      gateway array update type-time 1 Feb 23 22:57:38.904
     LDI Update time Feb 23 22:57:38.913
     LW-LDI-TS Feb 23 22:57:38.913
       via fe80::1600:ff:feec:fe00/128, HundredGigE0/0/0/1, 9 dependencies, weight 0, class 0, backup (TI-LFA) [flags 0xb00]
        path-idx 0 NHID 0x20002 [0x8f5850b0 0x0]
        next hop fe80::1600:ff:feec:fe00/128, Repair Node(s): cafe:0:4::4
        local adjacency
        SRv6 H.Encaps.Red SID-list {cafe:0:4::}
       via fe80::e00:ff:fe3a:c700/128, HundredGigE0/0/0/0, 6 dependencies, weight 0, class 0, protected [flags 0x400]
        path-idx 1 bkup-idx 0 NHID 0x20001 [0x8f8420b0 0x0]
        next hop fe80::e00:ff:fe3a:c700/128
    
        Load distribution: 0 (refcount 2)
    
        Hash  OK  Interface                 Address
        0     Y   HundredGigE0/0/0/0        fe80::e00:ff:fe3a:c700