Configure Storm Suppression Function
Network Requirements
Configure the storm suppression function on the port of the device to suppress the broadcast, unknown unicast and unknown multicast packets, realizing that PC2 can access Internet normally when PC1 sends lots of broadcast, unknown unicast and unknown multicast packets.
Network Topology
![Network topology of configuring storm suppression](/storage/images/Document/Maipu/interface/topology-for-config-storm-suppression.jpg)
Figure 2-1 Network topology of configuring storm suppression
Configuration Steps
Step1: Configure VLAN and port link type on Device.
# Create VLAN2 on Device.
Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit
|
#Configure the link type of port gigabitethernet0/1 and gigabitethernet0/2 on Device as Access, permitting the services of VLAN2 to pass.
Device(config)#interface gigabitethernet 0/1,0/2
Device(config-if-range)#switchport mode access
Device(config-if-range)#switchport access vlan 2
Device(config-if-range)#exit
|
#Configure the link type of port gigabitethernet0/3 on Device as Trunk, permitting the services of VLAN2 to pass.
Device(config)#interface gigabitethernet 0/3
Device(config-if-gigabitethernet0/3)#switchport mode trunk
Device(config-if-gigabitethernet0/3)#switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/3)#exit
|
Step2: Configure the storm suppression function
# Adopt bps limitation mode to suppress the broadcast, unknown unicast and unknown multicast packets on port gigabitethernet0/1 and the suppression rate is 1024bps.
Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#storm-control broadcast kbps 1024
Device(config-if-gigabitethernet0/1)#storm-control unicast kbps 1024
Device(config-if-gigabitethernet0/1)#storm-control multicast kbps 1024
Device(config-if-gigabitethernet0/1)#exit
|
Step3: Check the result
#View the storm suppression information of port gigabitethernet0/1 on Device.
Device#show storm-control interface gigabitethernet 0/1
Interface Unicast Broadcast Multicast Action
----------------------------------------------------------
gi0/1 enable enable enable logging
#When PC1 sends lots of broadcast, unknown unicast and unknown multicast packets, PC2 also can access Internet normally.