Enables port security on an interface port.
Port security is not enabled.
Interface configuration mode
Port mode change is not allowed when port security is enabled on the interface.
The no switchport port-security command disables port security on the interface.
The following example enables port MAC security on an interface:
device(config)# interface Ethernet 3/2 device(conf-if-eth-3/2)# switchport device(conf-if-eth-3/2)# switchport port-security