S1(config-if)# switchport port-security #Enable port security on the port
S1(config-if)# switchport port-security mac-address xxxx.xxxx.xxxx #Configure a static entry

Verify
S1# show port-security interface f0/5
S1# show port-security
S1# show port-security address