Command Line Interface
672 1553-KDU 137 365 Uen D 2006-06-16
Example
The following example enables port security for port 5, and sets the response to
a security violation to issue a trap message:
Related Commands
shutdown (section 7.9.8 on page 746)
mac-address-table static (section 7.14.1 on page 787)
show mac-address-table (section 7.14.3 on page 789)
7.7.32 mac-learning
This command enables MAC address learning on the selected port. Use the no
form to disable MAC address learning.
Syntax
[no] mac-learning
Default Setting
Enabled
Command Mode
Interface Configuration (Ethernet)
Command Usage
•The port security command (section 7.7.31 on page 670) stops the
ECN330-switch from learning new MAC addresses on the specified port
when it has reached a configured maximum number. Only incoming
traffic with source addresses already stored in the dynamic or static
address table will be accepted.
Console(config)#interface ethernet 1/5
Console(config-if)#port security action trap