Cisco WS-C3750-48PS-S Software Configuration Manual page 501

Network switch
Table of Contents

Advertisement

Chapter 24
Configuring Port-Based Traffic Control
Command
Step 5
switchport port-security
maximum value [vlan [vlan-list]]
Step 6
switchport port-security violation
{protect | restrict | shutdown}
78-16180-02
Purpose
(Optional) Set the maximum number of secure MAC addresses for the
interface. The maximum number of secure MAC addresses that you can
configure on a switch stack is set by the maximum number of available MAC
addresses allowed in the system. This number is set by the active Switch
Database Management (SDM) template. See
Templates."This number is the total of available MAC addresses, including
those used for other Layer 2 functions and any other secure MAC addresses
configured on interfaces.
(Optional) For trunk ports, you can set the maximum number of secure MAC
addresses on a VLAN. If the vlan keyword is not entered, the default value is
used.
vlan—set a per-VLAN maximum value.
vlan vlan-list—set a per-VLAN maximum value on a range of VLANs
separated by a hyphen, or a series of VLANs separated by commas. For
non-specified VLANs, the per-VLAN maximum value is used.
(Optional) Set the violation mode, the action to be taken when a security
violation is detected, as one of these:
protect—When the number of port secure MAC addresses reaches the
maximum limit allowed on the port, packets with unknown source
addresses are dropped until you remove a sufficient number of secure
MAC addresses to drop below the maximum value or increase the number
of maximum allowable addresses. You are not notified that a security
violation has occurred.
Note
We do not recommend configuring the protect mode on a trunk port.
The protect mode disables learning when any VLAN reaches its
maximum limit, even if the port has not reached its maximum limit.
restrict—When the number of secure MAC addresses reaches the limit
allowed on the port, packets with unknown source addresses are dropped
until you remove a sufficient number of secure MAC addresses or
increase the number of maximum allowable addresses. An SNMP trap is
sent, a syslog message is logged, and the violation counter increments.
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.
When a secure port is in the error-disabled state, you can bring it out
Note
of this state by entering the errdisable recovery cause
psecure-violation global configuration command, or you can
manually re-enable it by entering the shutdown and no shutdown
interface configuration commands.
Catalyst 3750 Switch Software Configuration Guide
Configuring Port Security
Chapter 8, "Configuring SDM
24-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750

Table of Contents