Example for Configuring Storm Control
Networking Requirements
As shown in Figure 9-4, 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, multicast packets, or unicast packets forwarded at Layer 2.
Configuration Roadmap
The configuration roadmap is as follows:
Configure storm control in the interface view of 10GE1/0/1 to prevent broadcast storms caused by a large number of broadcast packets, multicast packets, or unicast packets forwarded at Layer 2.
Procedure
- Enter the interface view.
<HUAWEI> system-view [~HUAWEI] sysname SwitchA [*HUAWEI] commit [~SwitchA] interface 10ge 1/0/1
- Configure storm control for broadcast packets.
[~SwitchA-10GE1/0/1] storm control broadcast min-rate 1000 max-rate 2000
- Configure storm control for multicast packets.
[*SwitchA-10GE1/0/1] storm control multicast min-rate 1000 max-rate 2000
- Configure storm control for unicast packets.
[*SwitchA-10GE1/0/1] storm control unicast min-rate 1000 max-rate 2000
- Set the storm control action to error-down.
[*SwitchA-10GE1/0/1] storm control action error-down
- Enable the function of recording logs during storm control.
[*SwitchA-10GE1/0/1] storm control enable log
- Set the detection interval.
[*SwitchA-10GE1/0/1] storm control interval 90 [*SwitchA-10GE1/0/1] commit [~SwitchA-10GE1/0/1] quit [~SwitchA] quit
- Verify the configuration.
Run the display storm control interface command to view storm control configuration on 10GE1/0/1.
<SwitchA> display storm control interface 10ge 1/0/1 -------------------------------------------------------------------------------- NOTE: BC = Broadcast; MC = Multicast; UC = Unicast; UUC = Unknown Unicast Int = Interval value (unit: seconds) -------------------------------------------------------------------------------- PortName Type MaxRate Mode Action Punish- Trap Log Int Last Status Punish-Time -------------------------------------------------------------------------------- 10GE1/0/1 BC 2000 Pps ErrorDown Normal Off On 90 -- 10GE1/0/1 MC 2000 Pps ErrorDown Normal Off On 90 -- 10GE1/0/1 UC 2000 Pps ErrorDown Normal Off On 90 --
Configuration Files
Configuration file of Switch A
# sysname SwitchA # interface 10GE1/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 error-down storm control enable log # return