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

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, 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 MAC Address Flapping Detection

Example for Configuring MAC Address Flapping Detection

Networking Requirements

As shown in Figure 2-15, a loop occurs on a user network because network cables between two LSWs are incorrectly connected. The loop causes MAC address flapping and bridge table flapping.

You can enable MAC address flapping detection on the Switch to detect MAC address flapping and discover loops.

Figure 2-15 Networking diagram of MAC address flapping detection

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable MAC address flapping detection.

  2. Set the aging time of flapping MAC addresses.

  3. Configure the action performed on the interface when MAC address flapping is detected on the interface to prevent loops.

Procedure

  1. Enable MAC address flapping detection.

    <HUAWEI> system-view
    [~HUAWEI] sysname Switch
    [*HUAWEI] commit
    [~Switch] mac-address flapping detection
    [*Switch] commit

  2. Set the aging time of flapping MAC addresses.

    [~Switch] mac-address flapping aging-time 500
    [*Switch] commit

  3. Shut down 10GE1/0/1 and 10GE1/0/2 when MAC address flapping is detected.

    [~Switch] interface 10ge 1/0/1
    [~Switch-10GE1/0/1] mac-address flapping trigger error-down
    [*Switch-10GE1/0/1] quit
    [*Switch] interface 10ge 1/0/2
    [*Switch-10GE1/0/2] mac-address flapping trigger error-down
    [*Switch-10GE1/0/2] quit
    [*Switch] commit

  4. Configure automatic recovery and set the automatic recovery time for the shutdown interface.

    [~Switch] error-down auto-recovery cause mac-address-flapping interval 500
    [*Switch] commit

  5. Verify the configuration.

    After the configuration is complete, when the MAC address on 10GE1/0/1 flaps to 10GE1/0/2, 10GE1/0/2 is shut down. Run the display mac-address flapping command to view the flapping records.

    [~Switch] display mac-address flapping
    MAC Address Flapping Configurations :
    -------------------------------------------------------------------------------
      Flapping detection          : Enable
      Aging  time(s)              : 500
      Quit-VLAN Recover time(m)   : --
      Exclude VLAN-list           : --
      Security level              : Middle
      Exclude BD-list             : --
    -------------------------------------------------------------------------------
    S  : start time    E  : end time    (D) : error down
    -------------------------------------------------------------------------------
    Time         : S:2017-08-24 14:40:11           E:2017-08-24 14:40:23
    VLAN/BD      : 1/-
    MAC Address  : 0025-9e95-7c24
    Original-Port: 10GE1/0/1
    Move-Ports   : 10GE1/0/2(D)                      
    MoveNum      : 83
    -------------------------------------------------------------------------------
    Total items on slot 1: 1
    

Configuration Files

Switch configuration file

#
sysname Switch
#                                                                               
mac-address flapping aging-time 500    
#                                                                               
error-down auto-recovery cause mac-address-flapping interval 500
#
interface 10GE1/0/1
 mac-address flapping trigger error-down    
#
interface 10GE1/0/2
 mac-address flapping trigger error-down    
#
return
Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 127383

Downloads: 296

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