LAB
Your task is to configure the Fa0/12 interface on the switch to limit the maximum number of MAC addresses that are allow to access the port to two and to shutdown the interface when there is a violation.
Answer: See the explanation
Explanation:
Switch1>enable
Switch1#config t
Switch1( config )#interface fa0/12
Switch1( config -if)# switchport mode access
Switch1( config -if)# switchport port-security maximum 2
Switch1( config -if)# switchport port-security violation shutdown
Switch1( config -if)#no shut
Switch1( config -if)#end
Switch1#copy run start