No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring BFD for OSPFv3

Example for Configuring BFD for OSPFv3

This part provides an example for configuring BFD for OSPFv3. After BFD for OSPFv3 is configured, BFD can fast detect link faults and report them to OSPFv3 so that service traffic can be transmitted through the backup link.

Networking Requirements

As shown in Figure 6-13, it is required as follows:

  • Run OSPFv3 between Router A, Router B, and Router C.

  • Enable BFD of the OSPFv3 process on Router A, Router B, and Router C.

  • Traffic is transmitted on the active link Router A → Router B. The link Router A → Router C → Router B acts as the standby link.

  • When a fault occurs on the link, BFD can quickly detect the fault and notify OSPFv3 of the fault; therefore, the traffic is transmitted on the standby link.

Figure 6-13 Networking diagram for configuring BFD for OSPFv3

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable the basic OSPFv3 functions on each router.

  2. Configuring BFD for OSPFv3.

Procedure

  1. Assign an IPv6 address to each router interface.

    The detailed configuration is not mentioned here.

  2. Configure the basic OSPFv3 functions.

    # Configure Router A.

    [RouterA] ipv6
    [RouterA] ospfv3
    [RouterA-ospfv3-1] router-id 1.1.1.1
    [RouterA-ospfv3-1] quit
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ospfv3 1 area 0
    [RouterA-GigabitEthernet1/0/0] quit
    [RouterA] interface gigabitethernet 1/0/1
    [RouterA-GigabitEthernet1/0/1] ipv6 enable
    [RouterA-GigabitEthernet1/0/1] ospfv3 1 area 0.0.0.0
    [RouterA-GigabitEthernet1/0/1] quit

    # Configure Router B.

    [RouterB] ipv6 enable
    [RouterB] ospfv3 1
    [RouterB-ospfv3-1] router-id 2.2.2.2
    [RouterB-ospfv3-1] quit
    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] ipv6 enable
    [RouterB-GigabitEthernet1/0/0] ospfv3 1 area 0.0.0.0
    [RouterB-GigabitEthernet1/0/0] quit
    [RouterB] interface gigabitethernet 1/0/1
    [RouterB-GigabitEthernet1/0/1] ipv6 enable
    [RouterB-GigabitEthernet1/0/1] ospfv3 1 area 0.0.0.0
    [RouterB-GigabitEthernet1/0/1] quit
    [RouterB] interface gigabitethernet 1/0/2
    [RouterB-GigabitEthernet1/0/2] ipv6 enable
    [RouterB-GigabitEthernet1/0/2] ospfv3 1 area 0.0.0.0

    # Configure Router C.

    [RouterC] ospfv3 1
    [RouterC-ospfv3-1] router-id 3.3.3.3
    [RouterC-ospfv3-1] quit
    [RouterC] interface gigabitethernet 1/0/0
    [RouterC-GigabitEthernet1/0/0] ipv6 enable
    [RouterC-GigabitEthernet1/0/0] ospfv3 1 area 0.0.0.0
    [RouterC-GigabitEthernet1/0/0] quit
    [RouterC] interface gigabitethernet 1/0/1
    [RouterC-GigabitEthernet1/0/1] ipv6 enable
    [RouterC-GigabitEthernet1/0/1] ospfv3 1 area 0.0.0.0

    # After the preceding configurations are complete, run the display ospfv3 peer command. You can view that the neighboring relationship is set up between Router A and Router B, and that between Router B and Router C. Take the display of Router A as an example:

    [RouterA] display ospfv3 peer verbose
    OSPFv3 Process (1)
    Neighbor 2.2.2.2 is Full, interface address FE80::E0:CE19:8142:1
        In the area 0.0.0.0 via interface GE1/0/0
        DR Priority is 1 DR is 2.2.2.2 BDR is 1.1.1.1
        Options is 0x000013 (-|R|-|-|E|V6)
        Dead timer due in 00:00:34
        Neighbour is up for 01:30:52
        Database Summary Packets List 0
        Link State Request List 0
        Link State Retransmission List 0
        Neighbour Event: 6
        Neighbour If Id : 0xe
    Neighbor 3.3.3.3 is Full, interface address FE80::E0:9C69:8142:2
        In the area 0.0.0.0 via interface GE1/0/1
        DR Priority is 1 DR is 3.3.3.3 BDR is 1.1.1.1
        Options is 0x000013 (-|R|-|-|E|V6)
        Dead timer due in 00:00:37
        Neighbour is up for 01:31:18
        Database Summary Packets List 0
        Link State Request List 0
        Link State Retransmission List 0
        Neighbour Event: 6
        Neighbour If Id : 0x9

    # Display the information in the OSPFv3 routing table on Router A. You can view the routing entries to Router B and Router C.

    [RouterA] display ospfv3 routing
    Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
    N - NSSA, U - Uninstalled, D - Denied by Import Policy
    OSPFv3 Process (1)
    Destination                                                 Metric
      Next-hop
    2001:DB8:1::/64                                               1
     directly connected, GigabitEthernet1/0/0
    2001:DB8:2::/64                                               2
     via FE80::E0:9C69:8142:2, GigabitEthernet1/0/1
     via FE80::E0:CE19:8142:1, GigabitEthernet1/0/0
    2001:DB8:3::/64                                               1
     directly connected, GigabitEthernet1/0/1
    2001:DB8:4::1/64                                              1
     via FE80::E0:CE19:8142:1, GigabitEthernet1/0/0                

    As shown in the OSPFv3 routing table, the next hop address of the route to 2001:DB8:4::1/64 is GigabitEthernet1/0/0 and traffic is transmitted on the active link Router A → Router B.

  3. Configure OSPFv3 BFD.

    # Enable global BFD on Router A.

    [RouterA] bfd
    [RouterA-bfd] quit
    [RouterA] ospfv3
    [RouterA-ospfv3-1] bfd all-interfaces enable
    [RouterA-ospfv3-1] bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4

    # Enable global BFD on Router B.

    [RouterB] bfd
    [RouterB-bfd] quit
    [RouterB] ospfv3
    [RouterB-ospfv3-1] bfd all-interfaces enable
    [RouterB-ospfv3-1] bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4

    # Enable global BFD on Router C.

    [RouterC] bfd
    [RouterC-bfd] quit
    [RouterC] ospfv3
    [RouterC-ospfv3-1] bfd all-interfaces enable
    [RouterC-ospfv3-1] bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4

    # After the preceding configurations are complete, run the display ospfv3 bfd session command on Router A or Router B. You can view that the status of the BFD session is Up.

    Take the display of Router B as an example:

    <RouterB> display ospfv3 bfd session verbose
    * - STALE
    OSPFv3 Process (1)
       Neighbor-Id: 1.1.1.1
       BFD Status: Up
       Interface: GE1/0/0
       IPv6-Local-Address: FE80::E0:CE19:8142:1
       IPv6-Remote-Address: FE80::E0:4C3A:143:1
       BFD Module preferred timer values
          Transmit-Interval(ms): 100
          Receive-Interval(ms): 100
          Detect-Multiplier: 3
       OSPFv3 Module preferred timer values
          Transmit-Interval(ms): 100
          Receive-Interval(ms): 100
          Detect-Multiplier: 3
       Configured timer values
          Transmit-Interval(ms): 100
          Receive-Interval(ms): 100
          Detect-Multiplier: 3
       Neighbor-Id: 3.3.3.3
       BFD Status: Down
       Interface: GE1/0/1
       IPv6-Local-Address: FE80::E0:CE19:8142:2
       IPv6-Remote-Address: FE80::E0:9C69:8142:1
       BFD Module preferred timer values
          Transmit-Interval(ms): 2200
          Receive-Interval(ms): 2200
          Detect-Multiplier: 0
       OSPFv3 Module preferred timer values
          Transmit-Interval(ms): 1000
          Receive-Interval(ms): 1000
          Detect-Multiplier: 3
       Configured timer values
          Transmit-Interval(ms): 1000
          Receive-Interval(ms): 1000
          Detect-Multiplier: 3

  4. Verify the configuration.

    # Run the shutdown command on GE 1/0/0 of Router B to simulate the active link failure.

    [RouterB] interface gigabitethernet1/0/0
    [RouterB-GigabitEthernet1/0/0] shutdown

    # Display the routing table on Router A. The standby link Router A → Router C → Router B takes effect after the active link fails. The next hop address of the route to 2001:DB8:4::1/64 becomes GigabitEthernet1/0/1.

    <RouterA> display ospfv3 routing
    Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
    N - NSSA, U - Uninstalled, D - Denied by Import Policy
    OSPFv3 Process (1)
    Destination                                                 Metric
      Next-hop
    2001:DB8:1::/64                                               1
           directly connected, GigabitEthernet/0/0
    2001:DB8:2::/64                                               2
           via FE80::E0:9C69:8142:2, GigabitEthernet1/0/1
    2001:DB8:3::/64                                               1
           directly connected, GigabitEthernet1/0/1
    2001:DB8:4::1/64                                              2
           via FE80::E0:9C69:8142:2, GigabitEthernet1/0/1          

Configuration Files

  • Configuration file of Router A

    #
     sysname RouterA
    #
     ipv6
    #
     bfd
    #
    ospfv3 1
     router-id 1.1.1.1
     bfd all-interfaces enable
     bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4
    #
    interface gigabitethernet1/0/0 
     ipv6 enable
     ipv6 address 2001:DB8:1::3/64
     ospfv3 1 area 0.0.0.0
    #
    interface gigabitethernet1/0/1
     ipv6 enable
     ipv6 address 2001:DB8:3::1/64
     ospfv3 1 area 0.0.0.0
    #
    return
  • Configuration file of Router B

    #
     sysname RouterB
    #
     ipv6
    #
     bfd
    #
    ospfv3 1
     router-id 2.2.2.2
     bfd all-interfaces enable
     bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4
    #
    interface gigabitethernet1/0/0
     ipv6 enable
     ipv6 address 2001:DB8:1::2/64
     ospfv3 1 area 0.0.0.0
    #
    interface gigabitethernet1/0/1
     ipv6 enable
     ipv6 address 2001:DB8:2::1/64
     ospfv3 1 area 0.0.0.0
    #
    interface gigabitethernet1/0/2
     ipv6 enable
     ipv6 address 2001:DB8:4::1/64
     ospfv3 1 area 0.0.0.0
    #
    return
  • Configuration file of Router C

    #
     sysname RouterC
    #
     ipv6
    #
    ospfv3 1
     router-id 3.3.3.3
     bfd all-interfaces enable
     bfd all-interfaces min-transmit-interval 100 min-receive-interval 100 detect-multiplier 4
    #
    interface gigabitethernet1/0/0
     ipv6 enable
     ipv6 address 2001:DB8:2::2/64
     ospfv3 1 area 0.0.0.0
    #
    interface gigabitethernet1/0/1
     ipv6 enable
     ipv6 address 2001:DB8:3::3/64
     ospfv3 1 area 0.0.0.0
    #
    return
Translation
Download
Updated: 2019-08-12

Document ID: EDOC1100034072

Views: 122124

Downloads: 180

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next