Cisco Catalyst 2960-XR Security Configuration Manual page 365

Ios release 15.0 2 ex1
Hide thumbs Also See for Catalyst 2960-XR:
Table of Contents

Advertisement

Configuring Port-Based Traffic Control
Command or Action
Step 8
switchport port-security
[mac-address mac-address [vlan
{vlan-id | {access | voice}}]
Example:
Switch(config-if)# switchport
port-security mac-address
00:A0:C7:12:C9:25 vlan 3 voice
Step 9
switchport port-security
mac-address sticky
Example:
Switch(config-if)# switchport
port-security mac-address sticky
Step 10
switchport port-security
mac-address sticky [mac-address |
vlan {vlan-id | {access | voice}}]
Example:
Switch(config-if)# switchport
port-security mac-address sticky
OL-29434-01
Purpose
• shutdown—The interface is error-disabled when a violation occurs, and the
port LED turns off. An SNMP trap is sent, a syslog message is logged, and
the violation counter increments.
• shutdown vlan—Use to set the security violation mode per VLAN. In this
mode, the VLAN is error disabled instead of the entire port when a violation
occurs.
Note
When a secure port is in the error-disabled state, you can bring it
out of this state by entering the errdisable recovery cause
psecure-violation global configuration command. You can manually
re-enable it by entering the shutdown and no shutdown interface
configuration commands or by using the clear errdisable interface
vlan privileged EXEC command.
(Optional) Enters a secure MAC address for the interface. You can use this
command to enter the maximum number of secure MAC addresses. If you configure
fewer secure MAC addresses than the maximum, the remaining MAC addresses
are dynamically learned.
If you enable sticky learning after you enter this command, the secure
Note
addresses that were dynamically learned are converted to sticky secure
MAC addresses and are added to the running configuration.
(Optional) vlan—sets a per-VLAN maximum value.
Enter one of these options after you enter the vlan keyword:
• vlan-id—On a trunk port, you can specify the VLAN ID and the MAC
address. If you do not specify a VLAN ID, the native VLAN is used.
• access—On an access port, specifies the VLAN as an access VLAN.
• voice—On an access port, specifies the VLAN as a voice VLAN.
Note
The voice keyword is available only if a voice VLAN is configured on a
port and if that port is not the access VLAN. If an interface is configured
for voice VLAN, configure a maximum of two secure MAC addresses.
(Optional) Enables sticky learning on the interface.
(Optional) Enters a sticky secure MAC address, repeating the command as many
times as necessary. If you configure fewer secure MAC addresses than the
maximum, the remaining MAC addresses are dynamically learned, are converted
to sticky secure MAC addresses, and are added to the running configuration.
If you do not enable sticky learning before this command is entered, an
Note
error message appears, and you cannot enter a sticky secure MAC address.
(Optional) vlan—sets a per-VLAN maximum value.
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
Enabling and Configuring Port Security
343

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents