port-security learn-mode mixed

Syntax

port-security <port-list> learn-mode mixed
no port-security <port-list>

Description

Configures static and limited-continuous MAC address learn-mode.

The no form of this command deletes the port-security configurations for each port in the port list.

Command context

config

Parameter

port-list

Specifies the list of the ports, or a port.

mixed

Configures static and dynamic MAC addresses.

Examples

switch(config)# port-security A3
action                Define the action in case of an intrusion detection.
address-limit         Define number of authorized addresses on the ports.
clear-intrusion-flag  Clear the intrusion indicator for the ports.
disable-timer         Configure number of seconds after which disabled ports
                       are automatically re-enabled.
eavesdrop-prevention  Enable Eavesdrop Prevention.
learn-mode            Define the mode for acquiring authorized MAC addresses.
mac-address           Configure the addresses authorized on the ports.

switch(config)#  port-security A3 learn-mode
continuous            Continuous MAC address learn mode.
static                Static MAC address learn mode.
configured            Static MAC address configured mode.
port-access           Learn port-access authorized MAC address only.
limited-continuous    Limited continuous MAC address learn mode.
mixed                 Static and limited-continuous MAC address learn mode.

switch(config)#  port-security A3 learn-mode mixed
action                Define the action in case of an intrusion detection.
address-limit         Define number of authorized addresses on the ports.
clear-intrusion-flag  Clear the intrusion indicator for the ports.
disable-timer         Configure number of seconds after which disabled ports
                       are automatically re-enabled.
eavesdrop-prevention  Enable Eavesdrop Prevention.
mac-address           Configure the addresses authorized on the ports.
<cr>
switch(config)#  port-security A3 learn-mode mixed action
none                  Prevent an SNMP trap from being send.No additional
                       action on intrusion. This is the default action.
send-alarm            Send an SNMP trap on intrusion.
send-disable          Send an SNMP trap and disable the port on intrusion.
switch(config)#  port-security A3 learn-mode mixed action send-alarm