This document provides configuration steps to enable port security on a Cisco 2950 switch. It instructs to enter configuration mode, configure the FastEthernet 0/21 interface for port security with a maximum of 2 MAC addresses, enable sticky MAC address learning, and set violations to result in port shutdown.
3. SECURITY ON SWITCH:
? Switch>enable
? Switch#config t
? Enter configuration commands, one per line.
End with CNTL/Z.
? Switch(config)#int fa0/21
? Switch(config-if)#switchport port-security
maximum 2
? Switch(config-if)#switchport port-security mac-
address sticky
? Switch(config-if)#switchport port-security
violation shutdown
?