The storm-control enable command configures the system to record logs or report traps during storm control.
The undo storm-control enable command configures the system not to record logs or report traps during storm control.
By default, the system does not record logs or report traps.
Parameter |
Description |
Value |
---|---|---|
log |
Enables the log function. |
- |
trap |
Enables the trap function. |
- |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group view
After storm control is configured, the switch monitors the broadcast, unknown multicast, and unknown unicast packets received on an interface. When the packet rate within a detection interval exceeds the upper limit, the switch executes the storm control action (block packets or shut down the interface) on the interface. This may affect services. You can configure the log or trap for storm control so that the administrator can quickly take actions to protect the switch.
# Enable the trap reporting function during storm control on GE0/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] storm-control broadcast min-rate 3000 max-rate 5000 [HUAWEI-GigabitEthernet0/0/1] storm-control action block [HUAWEI-GigabitEthernet0/0/1] storm-control enable trap