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

Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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 LBDT to Detect Loopbacks on an Interface

Example for Configuring LBDT to Detect Loopbacks on an Interface

Networking Requirements

As shown in Figure 19-5, aggregation switch SwitchA on an enterprise network connects to a new access switch SwitchB. To prevent a loopback from occurring between the Tx and Rx ends of GE0/0/1 due to incorrect fiber connection or high voltage damage, SwitchA is required to detect loopbacks on GE0/0/1. Furthermore, it is required that the interface be blocked to reduce the impact of the loopback on the network when a loopback is detected, and the interface be restored after the loopback is removed.

Figure 19-5  Networking for configuring LBDT to detect loopbacks on an interface

Configuration Roadmap

To detect loopbacks on downlink interface GE0/0/1 of SwitchA, configure LBDT on GE0/0/1 of SwitchA. The configuration roadmap is as follows:

  1. Enable LBDT on GE0/0/1 of SwitchA to detect loopbacks.
  2. Configure an action taken after a loopback is detected and set the recovery time. After a loopback is detected, the system blocks the interface to reduce the impact of the loopback on the network. After a loop is eliminated, the system restores the interface.

Procedure

  1. Enable LBDT on an interface.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] loopback-detect enable
    [SwitchA-GigabitEthernet0/0/1] quit

  2. Configure an action taken after a loopback is detected and set the recovery time.

    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] loopback-detect action block
    [SwitchA-GigabitEthernet0/0/1] loopback-detect recovery-time 30
    [SwitchA-GigabitEthernet0/0/1] quit

  3. Verify the configuration.

    1. Run the display loopback-detect command to check the LBDT configuration.

      [SwitchA] display loopback-detect
      Loopback-detect sending-packet interval: 5                                     
                                                                                      
      (A): Auto Loopback-detect                                                                                                           
      -----------------------------------------------------------------                                                                   
      Interface                     RecoverTime  Action     Status                                                                        
      -----------------------------------------------------------------
      GigabitEthernet0/0/1          30           block      NORMAL
      -----------------------------------------------------------------

      The preceding command output shows that the LBDT configuration is successful.

    2. After about 5s, run the display loopback-detect command to check whether GE0/0/1 is blocked.

      [SwitchA] display loopback-detect 
      Loopback-detect sending-packet interval:  5 
                                          
      (A): Auto Loopback-detect                                                                                                           
      -----------------------------------------------------------------                                                                   
      Interface                     RecoverTime  Action     Status                                                                        
      -----------------------------------------------------------------
      GigabitEthernet0/0/1          30           block      BLOCK
      -----------------------------------------------------------------

      The preceding command output shows that GE0/0/1 is blocked, indicating that a loopback occurs on GE0/0/1.

    3. Manually remove the loopback. Run the display loopback-detect command to check whether GE0/0/1 is restored.

      [SwitchA] display loopback-detect
      Loopback-detect sending-packet interval: 5                                     
                                          
      (A): Auto Loopback-detect                                                                                                           
      -----------------------------------------------------------------                                                                   
      Interface                     RecoverTime  Action     Status                                                                        
      -----------------------------------------------------------------
      GigabitEthernet0/0/1          30           block      NORMAL
      -----------------------------------------------------------------

      The preceding command output shows that GE0/0/1 is restored.

Configuration Files

SwitchA configuration file

#
sysname SwitchA
#
interface GigabitEthernet0/0/1
 loopback-detect recovery-time 30
 loopback-detect enable
 loopback-detect action block
#
return
Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 161004

Downloads: 688

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