SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
switchport block multicast
4.
switchport block unicast
5.
end
6.
show interfaces interface-id switchport
7.
copy running-config startup-config
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Specifies the interface to be configured, and enter
interface configuration mode.
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
Step 2
Blocks unknown multicast forwarding out of the port.switchport block multicast
Step 3
Example:
Switch(config-if)# switchport block multicast
Only pure Layer 2 multicast traffic is blocked.
Multicast packets that contain IPv4 or IPv6
information in the header are not blocked.
Note
Blocks unknown unicast forwarding out of the port.switchport block unicast
Example:
Switch(config-if)# switchport block unicast
Step 4
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 5
Verifies your entries.
show interfaces interface-id switchport
Example:
Switch# show interfaces gigabitethernet1/0/1
Step 6
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
334 OL-29434-01
Configuring Port-Based Traffic Control
Blocking Flooded Traffic on an Interface