1243
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport port-security maximum
switchport port-security maximum
To set the maximum number of secure MAC addresses on a port, use the
switchport port-security
maximum
command. To revert to the default settings, use the
no
form of this command.
switchport port-security maximum
max-addr
[
vlan
vlan-ID
]
no switchport port-security maximum
max-addr
[
vlan
vlan-ID
]
Syntax Description
Command Default
1
Command Modes
Interface configuration mode
Command History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the maximum number of secure MAC addresses on a port:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
switchport port-security maximum 5
switch(config-if)#
This example shows how to override the maximum number of secure MAC addresses set for a specific
VLAN:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
switchport port-security maximum 3 vlan 10
switch(config-if)#
This example shows how to set the maximum number of secure MAC addresses on a port to the default
value:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport port-security maximum 5
switch(config-if)#
max-addr
Maximum number of secure MAC addresses for the interface; valid values
are from 1 to 1025.
vlan
vlan-ID
(Optional) Specifies the VLAN on which the MAC address should be
secured. The range is from 1 to 4094.
Release
Modification
5.2(1)N1(1)
This command was introduced.