Example for Configuring OSPFv3 IP FRR

This section describes the procedure for configuring OSPFv3 IP FRR, including how to block FRR on certain interfaces to prevent the links connected to these interfaces from functioning as backup links and how to bind OSPFv3 IP FRR to a BFD session.

Networking Requirements

When a fault occurs on the network, OSPFv3 IP FRR rapidly switches traffic to the backup link without waiting for route convergence. This ensures non-stop traffic forwarding.

As shown in Figure 1:
  • OSPFv3 runs on all devices.
  • The link cost meets the OSPFv3 IP FRR traffic protection inequality.
  • If the primary link T fails, it is required that the traffic from Device S be rapidly redirected to the backup link that passes through Device N.

  • Based on the network planning, the link passing through Device A does not function as a backup link.
Figure 1 Networking for configuring OSPFv3 IP FRR

Interfaces 1 through 4 in this example represent GE 0/1/0, GE 0/1/8, GE 0/1/16, and GE 0/1/1, respectively.


Context

When configuring OSPFv3 IP FRR, note the following points:

Before configuring OSPFv3 IP FRR, block FRR on certain interfaces to prevent the links connected to these interfaces from functioning as backup links. After that, the link where the interface resides is not calculated as a backup link during FRR calculation.

During the configuration of OSPFv3 IP FRR, the lower layer needs to fast respond to a link change so that traffic can be rapidly switched to the backup link. After the bfd all-interfaces frr-binding command is run, the BFD session status is associated with the link status of an interface so that link faults can be rapidly detected.

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure basic OSPFv3 functions on each router. (For configuration details, see Example for Configuring Basic OSPFv3 Functions.)

  2. Configure BFD for OSPFv3 on all devices in Area 0.

  3. Set the costs of links to ensure that link T is selected to transmit traffic.

  4. Block FRR on the specified interface on Device S.

  5. Enable OSPFv3 IP FRR on Device S to protect the traffic forwarded by Device S.

Data Preparation

To complete the configuration, you need the following data:

Device

Router ID

Interface

IPv6 Address

Device S

1.1.1.1

GE0/1/0

2001:DB8:1000::1/96

GE0/1/8

2001:DB8:1001::1/96

GE0/1/16

2001:DB8:1002::1/96

Device A

2.2.2.2

GE0/1/0

2001:DB8:1000::2/96

GE0/1/8

2001:DB8:2000::2/96

Device N

3.3.3.3

GE0/1/0

2001:DB8:1002::2/96

GE0/1/8

2001:DB8:2002::2/96

Device E

4.4.4.4

GE0/1/0

2001:DB8:2000::1/96

GE0/1/8

2001:DB8:2001::1/96

GE0/1/16

2001:DB8:2002::1/96

GE0/1/1

2001:DB8:3000::1/96

Procedure

  1. Assign an IPv6 address to each interface. For configuration details, see Configuration Files in this section.
  2. Configure basic OSPFv3 functions. See Example for Configuring Basic OSPFv3 Functions.
  3. Configure BFD for OSPFv3 on all devices in Area 0. See Example for Configuring BFD for OSPFv3.
  4. Set the costs of links to ensure that link T is selected to transmit traffic.

    # Configure Device S.

    [~DeviceS] interface gigabitethernet0/1/0
    [~DeviceS-GigabitEthernet0/1/0] ospfv3 cost 5
    [*DeviceS-GigabitEthernet0/1/0] quit
    [*DeviceS] interface gigabitethernet0/1/8
    [*DeviceS-GigabitEthernet0/1/8] ospfv3 cost 20
    [*DeviceS-GigabitEthernet0/1/8] quit
    [*DeviceS] interface gigabitethernet0/1/16
    [*DeviceS-GigabitEthernet0/1/16] ospfv3 cost 10
    [*DeviceS-GigabitEthernet0/1/16] quit
    [*DeviceS] commit

    # Configure Device A.

    [~DeviceA] interface gigabitethernet0/1/0
    [~DeviceA-GigabitEthernet0/1/0] ospfv3 cost 5
    [*DeviceA-GigabitEthernet0/1/0] quit
    [*DeviceA] interface gigabitethernet0/1/8
    [*DeviceA-GigabitEthernet0/1/8] ospfv3 cost 5
    [*DeviceA-GigabitEthernet0/1/8] quit
    [*DeviceA] commit

    # Configure Device N.

    [~DeviceN] interface gigabitethernet0/1/0
    [~DeviceN-GigabitEthernet0/1/0] ospfv3 cost 10
    [*DeviceN-GigabitEthernet0/1/0] quit
    [*DeviceN] interface gigabitethernet0/1/8
    [*DeviceN-GigabitEthernet0/1/8] ospfv3 cost 10
    [*DeviceN-GigabitEthernet0/1/8] quit
    [*DeviceN] commit

  5. Block FRR on the specified interface on Device S.

    [~DeviceS] interface gigabitethernet0/1/0
    [~DeviceS-GigabitEthernet0/1/0] ospfv3 frr block
    [*DeviceS-GigabitEthernet0/1/0] quit
    [*DeviceS] commit

  6. Enable OSPFv3 IP FRR on Device S.

    [~DeviceS] ospfv3
    [*DeviceS-ospfv3-1] frr
    [*DeviceS-ospfv3-1-frr] loop-free-alternate
    [*DeviceS-ospfv3] commit

  7. Verify the configuration.

    # Run the display ospfv3 routing command on Device S to view routing information.

    [~DeviceS-ospfv3-1-frr] display ospfv3 routing 2001:db8:3000::1 96
     Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area
    
     OSPFv3 Process (1)
       Destination                                Metric
         Nexthop
       2001:DB8:2000:1::/64                       3124
           via 2001:DB8:2001::1/96, GE0/1/8           backup via FE80::2000:10FF:4, GE0/1/16, LFA LINK-NODE
         Priority      :Low

    The command output shows that a backup link is generated by FRR calculation on Device S.

Configuration Files

  • Device S configuration file

    #
    sysname DeviceS
    #
     bfd
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1000::1 255.255.255.0
     ospfv3 cost 5
    #
    interface GigabitEthernet0/1/8
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1001::1 255.255.255.0
     ospfv3 cost 15
    #
    interface GigabitEthernet0/1/16
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1002::1 255.255.255.0
     ospfv3 frr block
     ospfv3 cost 10
    #
    ospfv3 1
     router-id 1.1.1.1
     bfd all-interfaces enable
     bfd all-interfaces frr-binding
     frr
      loop-free-alternate
     area 0.0.0.1
    #
    return
  • Device A configuration file

    #
    sysname DeviceA
    #
     bfd
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1000::2 255.255.255.0
     ospfv3 cost 5
    #
    interface GigabitEthernet0/1/8
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2000::2 255.255.255.0
     ospfv3 cost 5
    #
    ospfv3 1
     router-id 2.2.2.2
     bfd all-interfaces enable
     bfd all-interfaces frr-binding
     frr
      loop-free-alternate
     area 0.0.0.1
    #
    return
  • Device N configuration file

    #
    sysname DeviceN
    #
     bfd
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ip address 2001:db8:1002::2 255.255.255.0
     ospfv3 cost 10
    #
    interface GigabitEthernet0/1/8
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2002::2 255.255.255.0
     ospfv3 cost 10
    #
    ospfv3 1
     router-id 3.3.3.3
     bfd all-interfaces enable
     bfd all-interfaces frr-binding
     frr
     area 0.0.0.1
    #
    return
  • Device E configuration file

    #
    sysname DeviceE
    #
     bfd
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2000::1 255.255.255.0
    #
    interface GigabitEthernet0/1/8
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2001::1 255.255.255.0
    #
    interface GigabitEthernet0/1/16
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2002::1 255.255.255.0
    #
    interface GigabitEthernet0/1/1
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:3000::1 255.255.255.0
     ospfv3 cost 5
    #
    ospfv3 1
     router-id 4.4.4.4
     bfd all-interfaces enable
     bfd all-interfaces frr-binding
     area 0.0.0.1
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >