BFD for IPv6 IS-IS configuration example

Network requirements

As shown in Figure 114, configure IPv6 IS-IS on Switch A, Switch B, and Switch C and configure BFD over the link Switch A<—>L2 Switch<—>Switch B.

After the link between Switch B and the Layer-2 switch fails, BFD can quickly detect the failure and notify IPv6 IS-IS of the failure. Then Switch A and Switch B communicate through Switch C.

Figure 114: Network diagram

Device

Interface

IPv6 address

Device

Interface

IPv6 address

Switch A

Vlan-int10

2001::1/64

Switch B

Vlan-int10

2001::2/64

Vlan-int11

2001:2::1/64

Vlan-int13

2001:3::2/64

Switch C

Vlan-int11

2001:2::2/64

Vlan-int13

2001:3::1/64

Configuration procedure

  1. Configure IP addresses for interfaces. (Details not shown.)

  2. Configure IPv6 IS-IS:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] ipv6
    [SwitchA] isis 1
    [SwitchA-isis-1] is-level level-1
    [SwitchA-isis-1] network-entity 10.0000.0000.0001.00
    [SwitchA-isis-1] ipv6 enable
    [SwitchA-isis-1] quit
    [SwitchA] interface vlan-interface 10
    [SwitchA-Vlan-interface10] isis ipv6 enable 1
    [SwitchA-Vlan-interface10] quit
    [SwitchA] interface vlan-interface 11
    [SwitchA-Vlan-interface11] isis ipv6 enable 1
    [SwitchA-Vlan-interface11] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] ipv6
    [SwitchB] isis 1
    [SwitchB-isis-1] is-level level-1
    [SwitchB-isis-1] network-entity 10.0000.0000.0002.00
    [SwitchB-isis-1] ipv6 enable
    [SwitchB-isis-1] quit
    [SwitchB] interface vlan-interface 10
    [SwitchB-Vlan-interface10] isis ipv6 enable 1
    [SwitchB-Vlan-interface10] quit
    [SwitchB] interface vlan-interface 13
    [SwitchB-Vlan-interface13] isis ipv6 enable 1
    [SwitchB-Vlan-interface13] quit
    

    # Configure Switch C.

    <SwitchC> system-view
    [SwitchC] ipv6
    [SwitchC] isis 1
    [SwitchC-isis-1] network-entity 10.0000.0000.0003.00
    [SwitchC-isis-1] ipv6 enable
    [SwitchC-isis-1] quit
    [SwitchC] interface vlan-interface 11
    [SwitchC-Vlan-interface11] isis ipv6 enable 1
    [SwitchC-Vlan-interface11] quit
    [SwitchC] interface vlan-interface 13
    [SwitchC-Vlan-interface13] isis ipv6 enable 1
    [SwitchC-Vlan-interface13] quit
    
  3. Configure BFD functions:

    # Enable BFD on Switch A and configure BFD parameters.

    [SwitchA] bfd session init-mode active
    [SwitchA] interface vlan-interface 10
    [SwitchA-Vlan-interface10] isis ipv6 bfd enable
    [SwitchA-Vlan-interface10] bfd min-transmit-interval 500
    [SwitchA-Vlan-interface10] bfd min-receive-interval 500
    [SwitchA-Vlan-interface10] bfd detect-multiplier 7
    [SwitchA-Vlan-interface10] return
    

    # Enable BFD on Switch B and configure BFD parameters.

    [SwitchB] bfd session init-mode active
    [SwitchB] interface vlan-interface 10
    [SwitchB-Vlan-interface10] isis ipv6 bfd enable
    [SwitchB-Vlan-interface10] bfd min-transmit-interval 500
    [SwitchB-Vlan-interface10] bfd min-receive-interval 500
    [SwitchB-Vlan-interface10] bfd detect-multiplier 6
    
  4. Verify the configuration:

    # Display the BFD information on Switch A.

    <SwitchA> display bfd session
    Total Session Num: 1            Init Mode: Active
    
     IPv6 Session Working Under Ctrl Mode:
    
         Local Discr: 1441                Remote Discr: 1450
           Source IP: FE80::20F:FF:FE00:1202 (link-local address of VLAN-interface 10 on Switch A)
      Destination IP: FE80::20F:FF:FE00:1200 (link-local address of VLAN-interface 10 on Switch B)
       Session State: Up                     Interface: Vlan10
           Hold Time:    /
    

    # Display routes destined for 2001:4::0/64 on Switch A.

    <SwitchA> display ipv6 routing-table 2001:4::0 64 verbose
    Routing Table :
    Summary Count : 1
    
     Destination  : 2001:4::0                               PrefixLength : 64
     NextHop      : 2001::2                                 Preference   : 15
     IpPrecedence :                                         QosLcId      :
     RelayNextHop : ::                                      Tag          : 0H
     Neighbor     : ::                                      ProcessID    : 0
     Interface    : Vlan-interface10                        Protocol     : ISISv6
     State        : Active Adv                              Cost         : 20
     Tunnel ID    : 0x0                                     Label        : NULL
     Age          : 4538sec
    

    The output shows that Switch A and Switch B communicate through VLAN-interface 10.

    When the link over VLAN-interface 10 fails, BFD can quickly detect the failure.

    # Display the BFD information on Switch A.

    <SwitchA> display bfd session
    

    Switch A has deleted the BFD session on VLAN-interface 10 to Switch B and displays no output.

    # Display routes destined for 2001:4::0/64 on Switch A.

    <SwitchA> display ipv6 routing-table 2001:4::0 64 verbose
    Routing Table :
    Summary Count : 1
    
     Destination  : 2001:4::0                               PrefixLength : 64
     NextHop      : 2001:2::2                               Preference   : 15
     IpPrecedence :                                         QosLcId      :
     RelayNextHop : ::                                      Tag          : 0H
     Neighbor     : ::                                      ProcessID    : 0
     Interface    : Vlan-interface11                        Protocol     : ISISv6
     State        : Active  Adv                             Cost         : 30
     Tunnel ID    : 0x0                                     Label        : NULL
     Age          : 4610sec
    

    The output shows that Switch A and Switch B communicate through VLAN-interface 11.