Reference Guide

Layer 2 | 549
mac learning-limit no-station-move
The no-station-move option, also known as “sticky MAC,” provides additional port security by
preventing a station move. When this option is configured, the first entry in the table is maintained instead
of creating a new entry on the new interface.
no-station-move is the default behavior. Entries created
before this option is set are not affected.
Displaying MAC Learning-Limited Interfaces
To display a list of all interfaces with a MAC learning limit:
Learning Limit Violation Actions
Learning Limit Violation Actions are supported only on platform: e
You can configure the system to take an action when the MAC learning limit is reached on an interface and
a new address is received using one of the following options with the
mac learning-limit command:
FTOS Behavior: The C-Series and S-Series do not generate a station-move violation log entry for
physical interfaces or port-channels when you configure mac learning-limit or when you configure mac
learning-limit station-move-violation log. FTOS detects a station-move violation only when you
configure mac learning-limit dynamic, and logs the violation only when you configure the mac
learning-limit station-move-violation log, as shown below:
FTOS(conf-if-gi-1/1)#show config
!
interface GigabitEthernet 1/1
no ip address
switchport
mac learning-limit 1 dynamic no-station-move
mac learning-limit station-move-violation log
no shutdown
Task Command Syntax Command Mode
Display a list of all interfaces with a MAC learning limit. show mac learning-limit EXEC Privilege
Task Command Syntax Command Mode
Generate a system log message when the MAC learning limit is
exceeded.
learn-limit-violation log
INTERFACE
Shut down the interface and generate a system log message
when the MAC learning limit is exceeded.
learn-limit-violation shutdown
INTERFACE