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 MAC Address Flapping Detection

Example for Configuring MAC Address Flapping Detection

Networking Requirements

In Figure 2-19, a loop occurs on a network because two LSWs are connected in error 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, facilitating troubleshooting.

Figure 2-19  Configuring 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 eliminate loops.

Procedure

  1. Enable MAC address flapping detection.

    <Quidway> system-view
    [Quidway] 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 error-down on 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 GE1/0/1 moves to GE1/0/2, GE1/0/2 is shut down automatically. 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-01-18

Document ID: EDOC1100038290

Views: 104563

Downloads: 24

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