Setting the port state change delay – H3C Technologies H3C S3100 Series Switches User Manual

Page 151

Advertising
background image

1-10

z

With traffic upper and lower thresholds specified on a port, the system periodically collects

statistics about the broadcast/multicast traffic on the port. Once it finds that a type of traffic exceeds

the specified upper threshold, it blocks this type of traffic on the port or directly shuts down the port,

and outputs trap/log information according to your configuration.

z

When a type of traffic on the port falls back to the specified lower threshold, the system cancels the

blocking of this type of traffic on the port or brings up the port to restore traffic forwarding for the port,

and outputs log/trap information according to your configuration.

Follow these steps to configure storm control on a port:

To do...

Use the command...

Remarks

Enter system view

system-view

Set the interval at which the port
collects traffic statistics

storm-constrain interval
interval-value

Optional

It is 10 seconds by default.

Enter Ethernet port view

interface interface-type
interface-number

Set the upper and lower thresholds
of broadcast/multicast traffic
received on the port

storm-constrain { broadcast |
multicast } max-packets
min-packets { pps | kbps }

Required

Set the action to be taken when a
type of traffic received on the port
exceeds the upper threshold.

storm-constrain control { block |
shutdown }

Optional

By default, no action is taken when
a type of traffic reaches the upper
threshold.

Enable log/trap information to be
output when a type of traffic
received on the port exceeds the
upper threshold or falls below the
lower threshold

storm-constrain enable { log |
trap }

Optional

Enabled by default.

z

If the broadcast-suppression command, or multicast-suppression command is configured on a

port, you cannot configure the storm control function on the port, and vice versa.

z

You are not recommended to set the upper and lower traffic thresholds to the same value.

z

If you specify the block keyword when executing the storm-constrain control command, only the

packets beyond the upper thresholds are blocked when the overall traffic exceeds the upper

threshold. In this case, the blocked packets are still taken into account when generating traffic

statistics. If you specify the shutdown keyword when executing the command, the port will be shut

down when the traffic passing through the port exceeds the upper threshold. You bring up the port

again by executing the undo shutdown or the undo storm-constrain { all | broadcast |

multicast } command.

Setting the Port State Change Delay

During a short period after you connect your switch to another device, the connecting port may go up

and down frequently due to hardware compatibility, resulting in service interruption.

To avoid situations like this, you may introduce a port state change delay.

Advertising