In Figure 1, Switch A is connected to a Layer 2 network and a Layer 3 router. Switch A needs to be configured to prevent broadcast storms caused by a large number of broadcast packets, unknown multicast packets, and unknown unicast packets forwarded at Layer 2, and prevent heavy traffic caused by a large number of known multicast packets and known unicast packets at Layer 2 and Layer 3.
The configuration roadmap is as follows:
Configure traffic suppression in the view of GE0/0/1 to restrict a large number of broadcast packets, unknown multicast packets, and unknown unicast packets forwarded at Layer 2.
Configure traffic suppression in the view of GE0/0/1 and GE0/0/2 to restrict a large number of known multicast packets and known unicast packets forwarded at Layer 2 and Layer 3.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] broadcast-suppression 80
[SwitchA-GigabitEthernet0/0/1] multicast-suppression 80
[SwitchA-GigabitEthernet0/0/1] unicast-suppression 80 [SwitchA-GigabitEthernet0/0/1] quit
[SwitchA-GigabitEthernet0/0/1] known-multicast-suppression 80
[SwitchA-GigabitEthernet0/0/1] known-unicast-suppression 80 [SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] known-multicast-suppression 80
[SwitchA-GigabitEthernet0/0/2] known-unicast-suppression 80 [SwitchA-GigabitEthernet0/0/2] quit
Run the display flow-suppression interface command to view the traffic suppression configuration on GE0/0/1.
[SwitchA] display flow-suppression interface gigabitethernet 0/0/1 storm type rate mode set rate value ------------------------------------------------------------------------------- unknown-unicast percent percent: 80% multicast percent percent: 80% broadcast percent percent: 80% known-unicast percent percent: 80% known-multicas percent percent: 80% -------------------------------------------------------------------------------
Run the display flow-suppression interface command to view the traffic suppression configuration on GE0/0/2.
[SwitchA] display flow-suppression interface gigabitethernet 0/0/2 storm type rate mode set rate value ------------------------------------------------------------------------------- unknown-unicast percent percent: 100% multicast percent percent: 100% broadcast percent percent: 10% known-unicast percent percent: 80% known-multicas percent percent: 80% -------------------------------------------------------------------------------
Switch A configuration file
# sysname SwitchA # interface GigabitEthernet0/0/1 unicast-suppression 80 multicast-suppression 80 broadcast-suppression 80 known-unicast-suppression 80 known-multicast-suppression 80 # # interface GigabitEthernet0/0/2 known-unicast-suppression 80 known-multicast-suppression 80 # return