DGS-6604
m
switchport port-security
CLI Reference Guide
889
The no form of the command can be used in global configuration so that one
command can use then disable port-security at all ports.
Examples
This example shows how to configure port security in
permanent
mode with
maximum number 5.
This example shows how to set the action to be taken when a security violation is
detected:
Verify the settings by entering the
show port-securit
y command
Switch# configure terminal
Switch(config)# interface eth3.1
Switch(config-if)# switchport port-security mode permanent
Switch(config-if)# switchport port-security maximum 5
Switch(config-if-range)# end
Switch# configure terminal
Switch(config)# interface eth3.1
Switch(config-if)# switchport port-security violation protect
Switch(config-if-range)# end