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 IPv6 Static Routes

Example for Configuring BFD for IPv6 Static Routes

To improve IPv6 network reliability, you can configure BFD for IPv6 static route to rapidly detect link faults and speed up route convergence.

Networking Requirements

As shown in Figure 2-11:
  • Router A is connected to Router B through Switch C.
  • It is required that Router A can communicate with other routers and the network.
  • a BFD session is configured between Router A and Router B to detect the link between the two devices.
Figure 2-11 Networking diagram for configuring BFD for IPv6 static routes

Because the network topology is very simple, static routes can be configured to make RouterA communicate with other Routers and the network. By binding BFD sessions to static routes, BFD sessions can detect the link status, which provides the detection mechanism for static routes.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure a BFD session on Router A and Router B to detect the link between the two devices.

  2. Configure a default static route from Router A to the external network and bind the default static route to a BFD session.

Procedure

  1. Configure an IPv6 address for each interface.

    The configuration details are not described here.

  2. Configure a BFD session between Router A and Router B.

    # On Router A, configure a BFD session with Router B.

    <RouterA> system-view
    [RouterA] bfd
    [RouterA-bfd] quit
    [RouterA] bfd aa bind peer-ipv6 2001:db8:1::2
    [RouterA-bfd-session-aa] discriminator local 10
    [RouterA-bfd-session-aa] discriminator remote 20
    [RouterA-bfd-session-aa] commit
    [RouterA-bfd-session-aa] quit

    # On Router B, configure a BFD session with Router A.

    <RouterB> system-view
    [RouterB] bfd
    [RouterB-bfd] quit
    [RouterB] bfd bb bind peer-ipv6 2001:db8:1::1
    [RouterB-bfd-session-bb] discriminator local 20
    [RouterB-bfd-session-bb] discriminator remote 10
    [RouterB-bfd-session-bb] commit
    [RouterB-bfd-session-bb] quit

  3. Configure a default static route and bind it to a BFD session.

    # On Router A, configure a default static route to the external network and bind it to a BFD session named aa.

    [RouterA] ipv6 route-static 0::0 0 2001:db8:1::2 track bfd-session aa

  4. Verify the configuration.

    # After the configuration, run the display bfd session all command on Router A and Router B. The command output shows that a BFD session has been established and is in the Up state. Then, run the display current-configuration | include bfd command in the system view. The command output shows that the default static route has been bound to the BFD session.

    Take the display on Router A as an example.

    [RouterA] display bfd session all
    --------------------------------------------------------------------------------
    Local Remote PeerIpAddr      State     Type        InterfaceName
    --------------------------------------------------------------------------------
    10    20     2001:db8:1::2
                                 Up        S_IP_PEER         -
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 1/0
    [RouterA] display current-configuration | include bfd
     bfd
    bfd aa bind peer-ipv6 2001:db8:1::2
     ipv6 route-static :: 0 2001:db8:1::2 track bfd-session aa

    # Check the IP routing table of Router A. The command output shows that the static route exists in the routing table.

    [RouterA] display ipv6 routing-table
    Routing Table : Public
             Destinations : 5        Routes : 5
    
     Destination  : ::                              PrefixLength : 0
     NextHop      : 2001:db8:1::2                   Preference   : 60
     Cost         : 0                               Protocol     : Static
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : GigabitEthernet 1/0/0           Flags        : RD
    
     Destination  : ::1                             PrefixLength : 128
     NextHop      : ::1                             Preference   : 0
     Cost         : 0                               Protocol     : Direct
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : InLoopBack0                     Flags        : D
    
     Destination  : 2001:db8:1::                    PrefixLength : 64
     NextHop      : 2001:db8:1::1                   Preference   : 0
     Cost         : 0                               Protocol     : Direct
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : GigabitEthernet 1/0/0           Flags        : D
    
     Destination  : 2001:db8:1::1                   PrefixLength : 128
     NextHop      : ::1                             Preference   : 0
     Cost         : 0                               Protocol     : Direct
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : GigabitEthernet 1/0/0           Flags        : D
    
     Destination  : FE80::                          PrefixLength : 10
     NextHop      : ::                              Preference   : 0
     Cost         : 0                               Protocol     : Direct
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : NULL0                           Flags        : D

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

    [RouterB] interface GigabitEthernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] shutdown

    # Check the IP routing table of Router A. The command output shows that default route 0::0/0 does not exist. This is because the default static route is bound to a BFD session. When BFD detects a link fault, BFD rapidly notifies that the bound static route becomes unavailable. If the static route is not bound to a BFD session, the default route 0.0.0.0/0 will always exist in IP routing table, this may cause traffic loss.

    [RouterA] display ipv6 routing-table
    Routing Table : Public
             Destinations : 1        Routes : 1
    
     Destination  : ::1                             PrefixLength : 128
     NextHop      : ::1                             Preference   : 0
     Cost         : 0                               Protocol     : Direct
     RelayNextHop : ::                              TunnelID     : 0x0
     Interface    : InLoopBack0                     Flags        : D

Configuration Files

  • Configuration file of Router A

    #
     sysname RouterA
    #
     ipv6
    #
     bfd
    #
    interface GigabitEthernet 1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::1/64
    #
    bfd aa bind peer-ipv6 2001:db8:1::2
     discriminator local 10
     discriminator remote 20
     commit
    #
     ipv6 route-static :: 0 2001:db8:1::2 track bfd-session aa
    #
    return
  • Configuration file of Router B

    #
     sysname RouterB
    #
     ipv6
    #
     bfd
    #
    interface GigabitEthernet 1/0/0
     undo shutdown
     shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::2/64
    #
    interface Pos2/0/0
     link-protocol ppp
     ipv6 enable
     ipv6 address 2001:db8:2::1/64
    #
    bfd bb bind peer-ipv6 2001:db8:1::1
     discriminator local 20
     discriminator remote 10
     commit
    #
    return
Translation
Download
Updated: 2019-08-12

Document ID: EDOC1100034072

Views: 117567

Downloads: 172

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