storm-constrain
Use storm-constrain to enable broadcast, multicast, or unknown unicast storm control on an Ethernet port.
Use undo storm-constrain to disable storm control.
Syntax
storm-constrain { broadcast | multicast | unicast } { pps | kbps | ratio } upperlimit lowerlimit
undo storm-constrain { all | broadcast | multicast | unicast }
Default
Traffic storm control is disabled.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
all: Disables storm control for all types of packets: broadcast, multicast, and unknown unicast.
broadcast: Enables or disables broadcast storm control.
multicast: Enables or disables multicast storm control.
unicast: Enables or disables unknown unicast storm control.
pps: Sets storm control thresholds in pps.
kbps: Sets storm control thresholds in kbps.
ratio: Sets storm control thresholds as a percentage of the transmission capacity of the interface.
upperlimit: Sets the upper threshold, in pps, kbps, or percentage.
lowerlimit: Sets the lower threshold, in pps, kbps, or percentage.
Usage guidelines
After you configure this command, the device collects the statistics of a particular type of traffic at the specified interval, which can be configured by using the storm-constrain interval command. When a particular type of traffic exceeds its upper threshold, the interface takes a certain action, which can be configured by using the storm-constrain control command.
The storm-constrain, broadcast-suppression, multicast-suppression, and unicast-suppression commands can suppress storm on a port.
The storm-constrain command uses software to suppress traffic, and affects the device performance to a certain extent.
The broadcast-suppression, multicast-suppression, and unicast-suppression commands use the chip to physically suppress traffic, and have less influence on the device performance than the storm-constrain command.
On the same type of traffic, do not configure the storm constrain command and either of the broadcast-suppression, multicast-suppression, and unicast-suppression commands at the same time. Otherwise, the traffic suppression result is not determined.
When configuring this command, make sure upperlimit is greater than lowerlimit.
Examples
# Enable unknown unicast storm control on Ten-GigabitEthernet 1/0/1, setting the upper and lower thresholds to 200 pps and 150 pps.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] storm-constrain unicast pps 200 150
# Enable broadcast storm control on Ten-GigabitEthernet 1/0/2, setting the upper and lower thresholds to 2000 kbps and 1500 kbps.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/2 [Sysname-Ten-GigabitEthernet1/0/2] storm-constrain broadcast kbps 2000 1500
# Enable multicast storm control on Ten-GigabitEthernet 1/0/3, setting the upper and lower thresholds to 80% and 15%.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/3 [Sysname-Ten-GigabitEthernet1/0/3] storm-constrain multicast ratio 80 15
Related commands
storm-constrain control
storm-constrain interval