Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Specifies the interface to be configured, and enter
interface configuration mode.
interface interface-id
Example:
Switch(config)#
interface gigabitethernet1/0/1
Step 3
Blocks unknown multicast forwarding out of the port.
switchport block multicast
Step 4
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 5
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 6
Verifies your entries.
show interfaces interface-id switchport
Example:
Switch#
show interfaces gigabitethernet1/0/1
Step 7
switchport
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 8
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config startup-config
Step 9
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
430
OL-29048-01
Configuring Port-Based Traffic Control
How to Configure Port Blocking