![H3C S5120-SI Series Operation Manual Download Page 72](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174072.webp)
1-10
Follow these steps to configure the storm constrain function on an Ethernet port:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Set the interval for generating
traffic statistics
storm-constrain interval
seconds
Optional
10 seconds by default
Enter Ethernet port view
interface interface-type
interface-number
—
Enable the storm constrain
function and set the lower
threshold and the upper
threshold
storm-constrain
{
broadcast
|
multicast
|
unicast
}
pps
max-pps-values
min-pps-values
Required
Disabled by default
Set the action to be taken when
the traffic exceeds the upper
threshold
storm-constrain control
{
block
|
shutdown
}
Optional
Disabled by default
Specify to send trap messages
when the traffic detected
exceeds the upper threshold or
drops down below the lower
threshold from a point higher
than the upper threshold
storm-constrain enable trap
Optional
By default, the system sends
trap messages when the traffic
detected exceeds the upper
threshold or drops down below
the lower threshold from a point
higher than the upper
threshold.
Specify to send log when the
traffic detected exceeds the
upper threshold or drops down
below the lower threshold from
a point higher than the upper
threshold
storm-constrain enable log
Optional
By default, the system sends
log when the traffic detected
exceeds the upper threshold or
drops down below the lower
threshold from a point higher
than the upper threshold.
z
For network stability sake, configure the interval for generating traffic statistics to a value that is not
shorter than the default.
z
The storm constrain function, after being enabled, requires a complete statistical period (specified
by the
storm-constrain interval
command) to collect traffic data, and analyzes the data in the next
period. Thus, it is normal that a period longer than one statistic period is waited for a control action
to happen if you enable the function while the packet storm is present. However, the action will be
taken within two periods.
z
The storm constrain function is applicable to unicast packets, multicast packets, and broadcast
packets; and you can specify the upper and lower threshold for any of the three types of packets.