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

S9300, S9300E, and S9300X V200R012C00 Configuration Guide - Ethernet Switching

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, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, HVRP, 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-7, 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 GE1/0/0 due to incorrect fiber connection or high voltage damage, SwitchA is required to detect loopbacks on GE1/0/0. 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-7  Networking for configuring LBDT to detect loopbacks on an interface

Configuration Roadmap

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

  1. Enable LBDT on GE1/0/0 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.

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

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

    [SwitchA] interface gigabitethernet 1/0/0
    [SwitchA-GigabitEthernet1/0/0] loopback-detect action block
    [SwitchA-GigabitEthernet1/0/0] loopback-detect recovery-time 30
    [SwitchA-GigabitEthernet1/0/0] 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                                                                        
      -----------------------------------------------------------------
      GigabitEthernet1/0/0          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 GE1/0/0 is blocked.

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

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

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

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

      The preceding command output shows that GE1/0/0 is restored.

Configuration Files

SwitchA configuration file

#
sysname SwitchA
#
interface GigabitEthernet1/0/0
 loopback-detect recovery-time 30
 loopback-detect enable
 loopback-detect action block
#
return
Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038290

Views: 104008

Downloads: 24

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