< Home

Example for Configuring Storm Control

Networking Requirements

In Figure 1, Switch A is connected to a Layer 2 network and a Layer 3 router. Switch A needs to be configured to prevent broadcast storms caused by a large number of broadcast packets, unknown multicast packets, or unknown unicast packets forwarded at Layer 2.

Figure 1 Networking diagram of storm control

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure storm control in the interface view of GE0/0/1 to prevent broadcast storms caused by a large number of broadcast packets, unknown multicast packets, or unknown unicast packets forwarded at Layer 2.

Procedure

  1. Enter the interface view.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface gigabitethernet0/0/1

  2. Configure storm control for broadcast packets.

    [SwitchA-GigabitEthernet0/0/1] storm-control broadcast min-rate 1000 max-rate 2000

  3. Configure storm control for unknown multicast packets.

    [SwitchA-GigabitEthernet0/0/1] storm-control multicast min-rate 1000 max-rate 2000

  4. Configure storm control for unknown unicast packets.

    [SwitchA-GigabitEthernet0/0/1] storm-control unicast min-rate 1000 max-rate 2000

  5. Set the storm control action to block.

    [SwitchA-GigabitEthernet0/0/1] storm-control action block

  6. Enable the system to record logs during storm control.

    [SwitchA-GigabitEthernet0/0/1] storm-control enable log

  7. Set the detection interval.

    [SwitchA-GigabitEthernet0/0/1] storm-control interval 90
    [SwitchA-GigabitEthernet0/0/1] quit

  8. Verify the configuration.

    Run the display storm-control interface command to view storm control configuration on GE0/0/1.

    [SwitchA] display storm-control interface gigabitethernet 0/0/1
    --------------------------------------------------------------------------------
    PortName     Type      Rate      Mode Action   Punish-  Trap Log Int Last-
                           (Min/Max)               Status                Punish-Time
    --------------------------------------------------------------------------------
    GE0/0/1      Broadcast 1000      Pps  Block    Normal   Off  On  90  -           
                           /2000                                                    
    GE0/0/1      Multicast 1000      Pps  Block    Normal   Off  On  90  -           
                           /2000                                                    
    GE0/0/1      Unicast   1000      Pps  Block    Normal   Off  On  90  -          
                           /2000                                                    
    --------------------------------------------------------------------------------
    

Configuration Files

Switch A configuration file

#
sysname SwitchA
#
interface GigabitEthernet0/0/1
 storm-control broadcast min-rate 1000 max-rate 2000
 storm-control multicast min-rate 1000 max-rate 2000
 storm-control unicast min-rate 1000 max-rate 2000
 storm-control interval 90
 storm-control action block
 storm-control enable log
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic