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 - Reliability

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

This document provides guidance for configuring reliability services, including interface backup, BFD, VRRP, and EFM.
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 Associating the BFD Session Status with the Interface Status

Example for Associating the BFD Session Status with the Interface Status

Networking Requirements

As shown in Figure 6-25, RouterA is directly connected to RouterB and Layer 2 transmission devices SwitchA and SwitchB are deployed between them. It is required that RouterA and RouterB fast detect link faults to trigger fast route convergence.

Figure 6-25  Associating the BFD session status with the interface status

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure BFD sessions on RouterA and RouterB to detect faults on the link between them.

  2. Set PVIDs on SwitchA and SwitchB to ensure Layer 2 connectivity.

  3. Configure association between the BFD session status and interface status on RouterA and RouterB after the BFD session becomes Up.

Procedure

  1. Set IP addresses of the directly connected interfaces on RouterA and RouterB.

    # Set the PVID on the interface of RouterA.

    <Router> system-view
    [Router] sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] port trunk pvid vlan 10
    [RouterA-GigabitEthernet1/0/0] quit
    

    # Set the PVID on the interface of RouterB.

    <Router> system-view
    [Router] sysname RouterB
    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] port trunk pvid vlan 10
    [RouterB-GigabitEthernet1/0/0] quit
    

  2. Configure single-hop BFD.

    # Enable BFD on RouterA and configure the BFD session between RouterA and RouterB.

    [RouterA] bfd
    [RouterA-bfd] quit
    [RouterA] bfd atob bind peer-ip default-ip interface gigabitethernet 1/0/0
    [RouterA-bfd-session-atob] discriminator local 10
    [RouterA-bfd-session-atob] discriminator remote 20
    [RouterA-bfd-session-atob] commit
    [RouterA-bfd-session-atob] quit

    # Enable BFD on RouterB and set up the BFD session between RouterA and RouterB.

    [RouterB] bfd
    [RouterB-bfd] quit
    [RouterB] bfd btoa bind peer-ip default-ip interface gigabitethernet 1/0/0
    [RouterB-bfd-session-btoa] discriminator local 20
    [RouterB-bfd-session-btoa] discriminator remote 10
    [RouterB-bfd-session-btoa] commit
    [RouterB-bfd-session-btoa] quit

    # After the configuration is complete, run the display bfd session all verbose command on RouterA and RouterB. You can see that a single-hop BFD session is set up and its status is Up. The display on RouterA is used as an example.

    [RouterA] display bfd session all verbose
    --------------------------------------------------------------------------------
      Session MIndex : 16384     (One Hop) State : Up        Name : atob
    --------------------------------------------------------------------------------
      Local Discriminator    : 10               Remote Discriminator   : 20
      Session Detect Mode    : Asynchronous Mode Without Echo Function
      BFD Bind Type          : Interface(GigabitEthernet1/0/0)
      Bind Session Type      : Static
      Bind Peer Ip Address   : 224.0.0.184
      NextHop Ip Address     : 224.0.0.184
      Bind Interface         : GigabitEthernet1/0/0
      FSM Board Id           : 3                TOS-EXP                : 7
      Min Tx Interval (ms)   : 10               Min Rx Interval (ms)   : 10
      Actual Tx Interval (ms): 10               Actual Rx Interval (ms): 10
      Local Detect Multi     : 3                Detect Interval (ms)   : 30
      Echo Passive           : Disable          Acl Number             : --
      Destination Port       : 3784             TTL                    : 255
      Proc interface status  : Disable          Process PST            : Disable
      WTR Interval (ms)      : 300000 
      Active Multi           : 3
      Last Local Diagnostic  : No Diagnostic
      Bind Application       : No Application Bind
      Session TX TmrID       : --               Session Detect TmrID   : --
      Session Init TmrID     : --               Session WTR TmrID      : --
      Session Echo Tx TmrID  : - 
      PDT Index              : FSM-0 | RCV-0 | IF-0 | TOKEN-0
      Session Description    : --
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 1/0

  3. Configuring association between BFD session status and interface status.

    # Configure association between the BFD status and the interface status on RouterA.

    [RouterA] bfd atob 
    [RouterA-bfd-session-atob] process-interface-status
    [RouterA-bfd-session-atob] commit
    [RouterA-bfd-session-atob] quit

    # Configure association between the BFD status and the interface status on RouterB.

    [RouterB] bfd btoa
    [RouterB-bfd-session-btoa] process-interface-status
    [RouterB-bfd-session-btoa] commit
    [RouterB-bfd-session-btoa] quit

  4. Verify the configuration.

    # After the configuration is complete, run the display bfd session all verbose command on RouterA and RouterB. You can see that the value of the Proc interface status field is Enable.

    # The display on RouterA is used as an example.

    [RouterA] display bfd session all verbose
    --------------------------------------------------------------------------------
      Session MIndex : 16384     (One Hop) State : Up        Name : atob
    --------------------------------------------------------------------------------
      Local Discriminator    : 10               Remote Discriminator   : 20
      Session Detect Mode    : Asynchronous Mode Without Echo Function
      BFD Bind Type          : Interface(GigabitEthernet1/0/0)
      Bind Session Type      : Static
      Bind Peer Ip Address   : 224.0.0.184
      NextHop Ip Address     : 224.0.0.184
      Bind Interface         : GigabitEthernet1/0/0
      FSM Board Id           : 3                TOS-EXP                : 7
      Min Tx Interval (ms)   : 10               Min Rx Interval (ms)   : 10
      Actual Tx Interval (ms): 10               Actual Rx Interval (ms): 10
      Local Detect Multi     : 3                Detect Interval (ms)   : 30
      Echo Passive           : Disable          Acl Number             : --
      Destination Port       : 3784             TTL                    : 255
      Proc interface status  : Enable          Process PST            : Disable
      WTR Interval (ms)      : 300000 
      Active Multi           : 3
      Last Local Diagnostic  : No Diagnostic
      Bind Application       : No Application Bind
      Session TX TmrID       : --               Session Detect TmrID   : --
      Session Init TmrID     : --               Session WTR TmrID      : --
      Session Echo Tx TmrID  : - 
      PDT Index              : FSM-0 | RCV-0 | IF-0 | TOKEN-0
      Session Description    : --
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 1/0

    # Run the shutdown command on GE1/0/1 of SwitchB to simulate a fault. The BFD session becomes Down.

    [SwitchB] interface gigabitethernet 1/0/1
    [SwitchB-GigabitEthernet1/0/1] shutdown
    [SwitchB-GigabitEthernet1/0/1] quit

    # Run the display bfd session all verbose and display interface gigabitethernet 1/0/0 commands on RouterA. You can see that the BFD session status is Down, and the protocol status of GE 1/0/0 is Down (BFD status down).

    [RouterA] display bfd session all verbose
    --------------------------------------------------------------------------------
      Session MIndex : 16384     (One Hop) State : Down        Name : atob
    --------------------------------------------------------------------------------
      Local Discriminator    : 10               Remote Discriminator   : 20
      Session Detect Mode    : Asynchronous Mode Without Echo Function
      BFD Bind Type          : Interface(GigabitEthernet1/0/0)
      Bind Session Type      : Static
      Bind Peer Ip Address   : 224.0.0.184
      NextHop Ip Address     : 224.0.0.184
      Bind Interface         : GigabitEthernet1/0/0
      FSM Board Id           : 3                TOS-EXP                : 7
      Min Tx Interval (ms)   : 10               Min Rx Interval (ms)   : 10
      Actual Tx Interval (ms): 10               Actual Rx Interval (ms): 10
      Local Detect Multi     : 3                Detect Interval (ms)   : 30
      Echo Passive           : Disable          Acl Number             : --
      Destination Port       : 3784             TTL                    : 255
      Proc interface status  : Enable          Process PST            : Disable
      WTR Interval (ms)      : 300000 
      Active Multi           : 3
      Last Local Diagnostic  : Control Detection Time Expired
      Bind Application       : No Application Bind
      Session TX TmrID       : --               Session Detect TmrID   : --
      Session Init TmrID     : --               Session WTR TmrID      : --
      Session Echo Tx TmrID  : - 
      PDT Index              : FSM-0 | RCV-0 | IF-0 | TOKEN-0
      Session Description    : --
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 0/1
    [RouterA] display interface gigabitethernet 1/0/0
    GigabitEthernet1/0/0 current state : UP                                         
    Line protocol current state : Down(BFD status down)                                        
    Last line protocol up time : 2012-05-08 10:29:51                                
    Description:HUAWEI, AR Series, GigabitEthernet1/0/0 Interface                   
    Route Port,The Maximum Transmit Unit is 1500                                    
    Internet Address is 10.1.1.1/24                                                 
    IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc01-0009 
    Last physical up time   : 2012-05-08 10:29:51                                   
    Last physical down time : 2012-05-08 10:23:49                                   
    Current system time: 2012-05-08 14:26:25                                        
    Port Mode: COMMON COPPER                                                        
    Speed : 1000,  Loopback: NONE                                                   
    Duplex: FULL,  Negotiation: ENABLE                                              
    Mdi   : AUTO                                                                    
    Last 300 seconds input rate 120 bits/sec, 0 packets/sec                         
    Last 300 seconds output rate 2832 bits/sec, 0 packets/sec                       
    Input peak rate 1552 bits/sec,Record time: 2012-05-07 17:28:14                  
    Output peak rate 4968 bits/sec,Record time: 2012-05-08 14:20:09                 
                                                                                    
    Input:  29617 packets, 14279461 bytes                                           
      Unicast:                  0,  Multicast:               29617                  
      Broadcast:                0,  Jumbo:                       0                  
      Discard:                  0,  Total Error:                 0                  
                                                                                    
      CRC:                      0,  Giants:                      0                  
      Jabbers:                  0,  Throttles:                   0                  
      Runts:                    0,  Alignments:                  0                  
      Symbols:                  0,  Ignoreds:                    0                  
      Frames:                   0                                                   
                                                                                    
    Output:  203740 packets, 309230984 bytes                                        
      Unicast:                  0,  Multicast:              203740                  
      Broadcast:                0,  Jumbo:                       0                  
      Discard:                  0,  Total Error:                 0                  
                                                                                    
      Collisions:               0,  ExcessiveCollisions:         0                  
      Late Collisions:          0,  Deferreds:                   0                  
      Buffers Purged:           0                                                   
                                                                                    
        Input bandwidth utilization threshold : 100.00%                             
        Output bandwidth utilization threshold: 100.00%                             
        Input bandwidth utilization  : 0.01%                                        
        Output bandwidth utilization : 0.01% 

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
     bfd
    #
    interface GigabitEthernet1/0/0
      undo port trunk allow-pass vlan 1
      port trunk pvid vlan 10
    #
    bfd atob bind peer-ip default-ip interface GigabitEthernet1/0/0
     discriminator local 10
     discriminator remote 20
     process-interface-status
     commit
    #
    return
  • RouterB configuration file

    #
     sysname RouterB
    #
     bfd
    #
    interface GigabitEthernet1/0/0
     undo port trunk allow-pass vlan 1
     port trunk pvid vlan 10
    #
    bfd btoa bind peer-ip default-ip interface GigabitEthernet1/0/0
     discriminator local 20
     discriminator remote 10
     process-interface-status
     commit
    #
    return
Translation
Download
Updated: 2019-08-12

Document ID: EDOC1100034076

Views: 56926

Downloads: 107

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