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

S7700 and S9700 V200R011C10

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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

In Figure 2-19, a loop occurs on a user network because two LSWs are incorrectly connected using a network cable. The loop causes MAC address flapping in the MAC address table of the Switch.

To detect loops in a timely manner, configure MAC address flapping detection on the Switch. This function enables the Switch to detect loops by checking whether a MAC address flaps between interfaces. To remove loops on the network, configure an action against MAC address flapping on the interfaces.

Figure 2-19  Networking 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 an action against MAC address flapping on the interfaces to remove loops.

Procedure

  1. Enable MAC address flapping detection.

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

  2. Set the aging time of flapping MAC addresses.

    [Switch] mac-address flapping aging-time 500
    

  3. Configure the action against MAC address flapping to shutdown on the GE1/0/1 and GE1/0/2.

    [Switch] interface gigabitethernet 1/0/1
    [Switch-GigabitEthernet1/0/1] mac-address flapping action error-down
    [Switch-GigabitEthernet1/0/1] quit
    [Switch] interface gigabitethernet 1/0/2
    [Switch-GigabitEthernet1/0/2] mac-address flapping action error-down
    [Switch-GigabitEthernet1/0/2] quit
    

  4. Enable error-down interfaces to go Up automatically and set the automatic recovery delay.

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

  5. Verify the configuration.

    When the MAC address learned on the GE moves to GE1/0/2, GE1/0/2 is shut down automatically. You can run the display mac-address flapping record command to view MAC address flapping records.

    [Switch] display mac-address flapping record
     S  : start time                                                                
     E  : end time                                                                  
    (Q) : quit vlan                                                                 
    (D) : error down 
    -------------------------------------------------------------------------------
    Move-Time                 VLAN MAC-Address     Original-Port    Move-Ports   MoveNum
    -------------------------------------------------------------------------------
    S:2012-04-01 17:22:36     1    0000-0000-0007  GE1/0/1         GE1/0/2(D)   83
    E:2012-04-01 17:22:44
    
    -------------------------------------------------------------------------------
    Total items on slot 1: 1
    

Configuration Files

Switch configuration file

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

Document ID: EDOC1000178310

Views: 284984

Downloads: 141

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