How to Configure Port Security
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Switch> enable
Step 2
configure terminal
Example:
Switch# configure terminal
Step 3
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
Step 4
switchport protected
Example:
Switch(config-if)# switchport protected
Step 5
end
Example:
Switch(config)# end
Step 6
show interfaces interface-id switchport
Example:
Switch# show interfaces gigabitethernet1/0/1
switchport
Step 7
show running-config
Example:
Switch# show running-config
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1502
Purpose
Enables privileged EXEC mode. Enter your
password if prompted.
Enters the global configuration mode.
Specifies the interface to be configured, and enter
interface configuration mode.
Configures the interface to be a protected port.
Returns to privileged EXEC mode.
Verifies your entries.
Verifies your entries.