How to Configure Port Security
Table 35: Port Security Compatibility with Other Switch Features
Type of Port or Feature on Port
DTP
Trunk port
Dynamic-access port
Routed port
SPAN source port
SPAN destination port
EtherChannel
Tunneling port
Protected port
IEEE 802.1x port
Voice VLAN port
Private VLAN port
IP source guard
Dynamic Address Resolution Protocol (ARP) inspection
Flex Links
11 DTP=Dynamic Trunking Protocol
12
switchport mode dynamic
A port configured with the
13
A VLAN Query Protocol (VQP) port configured with the
14 You must set the maximum allowed secure addresses on the port to two plus the maximum number of secure addresses allowed on the access VLAN.
How to Configure Port Security
Enabling and Configuring Port Security
Before You Begin
This task restricts input to an interface by limiting and identifying MAC addresses of the stations allowed to
access the port:
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
340
11
12
port
13
14
interface configuration command.
switchport access vlan dynamic
Configuring Port-Based Traffic Control
Compatible with Port Security
No
Yes
No
No
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
interface configuration command.
OL-29434-01