switchport port-security maximum
To configure the maximum number of secure MAC addresses, use the switchport port-security maximum
command in interface configuration mode. To return to the default settings, use the no form of this command.
switchport port-security maximum value [vlan [vlan-list| [access| voice]]]
no switchport port-security maximum value [vlan [vlan-list| [access| voice]]]
Syntax Description
Sets the maximum number of secure MAC addresses for the interface.
The default setting is 1.
value
(Optional) For trunk ports, sets the maximum number of secure MAC addresses on a
VLAN or range of VLANs. If the vlan keyword is not entered, the default value is used.
vlan
(Optional) Range of VLANs separated by a hyphen or a series of VLANs separated by
commas. For nonspecified VLANs, the per-VLAN maximum value is used.
vlan-list
(Optional) On an access port only, specifies the VLAN as an access VLAN.access
(Optional) On an access port only, specifies the VLAN as a voice VLAN.
The voice keyword is available only if voice VLAN is configured on a port
and if that port is not the access VLAN.
Note
voice
Command Default
When port security is enabled and no keywords are entered, the default maximum number of secure MAC
addresses is 1.
Command Modes
Interface configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
The maximum number of secure MAC addresses that you can configure on a switch or switch stack is set by
the maximum number of available MAC addresses allowed in the system. This number is determined by the
active Switch Database Management (SDM) template. See the sdm prefer command. This number represents
the total of available MAC addresses, including those used for other Layer 2 functions and any other secure
MAC addresses configured on interfaces.
A secure port has the following limitations:
•
A secure port can be an access port or a trunk port; it cannot be a dynamic access port.
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
836
switchport port-security maximum