switchport port-security maximum 10
However, if you don't configure something to happen if that limit is reached, then by default the port will just shut down. This can be a good security practice for ultimate lockdown; however, if you need to troubleshoot why the maximum is being reached, then it's helpful to specify what should happen when that happens, which you can do with the following command:
switchport port-security violation restrict
There are actually three options you can use at the end of this command to specify what should happen in case of a violation:
protect - This ignores traffic until the violation condition goes away.
restrict - This is the same as "protect" except that it sends an SNMP trap, so you can know what's happening and when.
shutdown (the default) - This causes the port to shut down completely.
For troubleshooting or figuring out what the proper configurations should be, use the "restrict" option, as it gives you the most information.
No comments:
Post a Comment