configure terminal
interface fast ethernet (port)
switchport mode access =>change dynamic to access mode
switchport port-security =>enable port security
switchport port-security =>enable port security
switchport port-security mac-address sticky =>remember mac-address
switchport port-security maximum 1 =>only allow 1 mac address
switchport port-security violation shutdown =>shutdown if detect other mac