C
ONFIGURING
THE
S
WITCH
3-50
Web – Click Security, Port Security. Set the action to take when an invalid
address is detected on a port, mark the checkbox in the Status column to
enable security for a port, set the maximum number of MAC addresses
allowed on a port, and click Apply.
Figure 3-22 Configuring Port Security
CLI – This example sets the command mode to Port 5, sets the port
security action to send a trap and disable the port, and then enables port
security for the switch.
Console(config)#interface ethernet 1/5
Console(config-if)#port security action trap-and-shutdown 4-102
Console(config-if)#port security max-mac-count 20 4-102
Console(config-if)#port security
Console(config-if)#