C613-50102-01 REV C
Command Reference for x510 Series
485
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
S
WITCHING
C
OMMANDS
SWITCHPORT
PORT
-
SECURITY
MAXIMUM
switchport port-security maximum
Overview
Use this command to set the maximum number of MAC addresses that each port
can learn.
Use the
no
variant of this command to unset the maximum number of MAC
addresses that each port can learn. This is same as setting the maximum number
to 0. This command also resets the intrusion list table.
If a new MAC is seen on a port with port security enabled and the MAC is statically
configured for another port, a violation is triggered. The maximum learn limit will
be ignored and the specified intrusion action for the port will be carried out.
Syntax
switchport port-security maximum <0-256>
no switchport port-security maximum
Mode
Interface Configuration
Examples
To learn 3 MAC addresses on
port1.0.4
, use the following commands:
awplus#
configure terminal
awplus(config)#
interface port1.0.4
awplus(config-if)#
switchport port-security maximum 3
To remove the MAC learning limit on
port1.0.4
, use the following commands:
awplus#
configure terminal
awplus(config)#
interface port1.0.4
awplus(config-if)#
no switchport port-security maximum
Related
Commands
switchport port-security aging
switchport port-security violation
Parameter
Description
maximum <0-256>
Specify the maximum number of addresses to learn.