27 switchport port-security violation – CANOGA PERKINS 9175 Command Reference User Manual
Page 63
![background image](/manuals/651401/63/background.png)
CanogaOS Command Reference
4-19
Examples
This example sets the maximum number of secure MAC addresses on a port.
Switch(config-if)# switchport port-security maximum 1024
This example returns the maximum number of secure MAC addresses on a port to default value.
Switch(config-if)# no switchport port-security maximum
Related Commands
switchport port-security violation
show port-security maximum mac-num interface IFNAME
4.27 switchport port-security violation
To set the action to be taken when a security violation is detected, use the switchport port-security
violation command. To return to the default settings, use the no form of this command.
Command Syntax
switchport port-security violation {discard-logon |discard-silence}
discard-logon:
discard packet and exception to cpu
discard-silence:
discard packet silently
Command Mode
Interface configuration
Defaults
Discard packet silently
Usage
To use this command, enable switchport port-security first.
When the action is changed, the port-security mac learned dynamically will be cleared and the mac
configured statically will not be affected.
Examples
This example sets port-security violation to .discard packet silently.
Switch(config-if)# switch port-security violation-mode discard-silence
Related Commands
switchport port-security