other infractions.
informational (e.g. login, STP synchronization etc.), debugging logs (for debugging network
Example 6-5: Configuring port security
ML3000# port-security
ML3000(port-security)## ps enable
Port Security is already enabled
ML3000(port-security)## learn port=11 enable
Port Learning Enabled on selected port(s)
ML3000(port-security)## show port-security
PORT STATE SIGNAL ACTION LEARN COUNT MAC ADDRESS
---- ----- ------ ------ ----- ----- -----------
9 ENABLE LOG NONE ENABLE 6 00:e0:29:2a:f1:bd
00:01:03:e2:27:89
00:07:50:ef:31:40
00:e0:29:22:15:85
00:03:47:ca:ac:45
00:30:48:70:71:23
10 ENABLE NONE NONE DISABLE 0 Not Configured
11 ENABLE NONE NONE ENABLE 0 00:c1:00:7f:ec:00
12 ENABLE NONE NONE DISABLE 0 Not Configured
13 ENABLE NONE NONE DISABLE 0 Not Configured
14 ENABLE NONE NONE DISABLE 0 Not Configured
15 ENABLE NONE NONE DISABLE 0 Not Configured
16 ENABLE NONE NONE DISABLE 0 Not Configured
ML3000(port-security)## save
Saving current configuration
Configuration saved
ML3000(port-security)## learn port=11 disable
Port Learning Disabled on selected port(s)
ML3000(port-security)## action port=11 drop
Port security Action type set to Drop on selected
port(s)
ML3000(port-security)## show port-security port=11
PORT STATE SIGNAL ACTION LEARN COUNT MAC ADDRESS
---- ----- ------ ------ ----- ----- -----------
11 ENABLE NONE DROP ENABLE 0 00:c1:00:7f:ec:00
ML3000(port-security)## signal port=11 logandtrap
Port security Signal type set to Log and Trap on
selected port(s)