Configuring Port-Based Traffic Control
How to Configure Port-Based Traffic Control
Command
4.
storm-control action {shutdown |
trap}
5.
end
Configuring Small-Frame Arrival Rate
Command
1.
configure terminal
2.
errdisable detect cause small-frame
3.
errdisable recovery interval interval
4.
errdisable recovery cause small-frame
5.
interface interface-id
6.
small violation-rate pps
7.
end
Configuring Protected Ports
Command
1.
configure terminal
2.
interface interface-id
3.
switchport protected
4.
end
Purpose
pps pps—Specifies the rising threshold level for broadcast, multicast, or
unicast traffic in packets per second (up to one decimal place). The port
blocks traffic when the rising threshold is reached. The range is 0.0 to
10000000000.0.
(Optional) pps-low—Specifies the falling threshold level in packets per
second (up to one decimal place). It can be less than or equal to the
rising threshold level. The port forwards traffic when traffic drops below
this level. The range is 0.0 to 10000000000.0.
For BPS and PPS settings, you can use metric suffixes such as k, m, and g
for large number thresholds.
Specifies the action to be taken when a storm is detected. The default is to
filter out the traffic and not to send traps.
shutdown—Error-disables the port during a storm.
trap—Generates an SNMP trap when a storm is detected.
Returns to privileged EXEC mode.
Purpose
Enters global configuration mode.
Enables the small-frame rate-arrival feature on the switch.
(Optional) Specifies the time to recover from the specified
error-disabled state.
(Optional) Configures the recovery time for error-disabled ports to
be automatically reenabled after they are error disabled by the
arrival of small frames
Enters interface configuration mode, and specifies the interface to
be configured.
Configures the threshold rate for the interface to drop incoming
packets and error disable the port. The range is 1 to 10,000
packets per second (pps).
Returns to privileged EXEC mode.
Purpose
Enters global configuration mode.
Specifies the interface to be configured, and enter interface
configuration mode.
Configures the interface to be a protected port.
Returns to privileged EXEC mode.
455