# How to configure port-security on Cisco Switch

**URL:** https://forum.networklessons.com/t/how-to-configure-port-security-on-cisco-switch/866
**Category:** Lessons Discussion
**Created:** [December 20, 2016, 10:03pm UTC](https://forum.networklessons.com/t/how-to-configure-port-security-on-cisco-switch/866 "2016-12-20T22:03:15Z")
**Posts on this page:** 1
**Showing post:** 73

<div class="post-metadata">

### Author: ![mcpp66](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mcpp66](https://forum.networklessons.com/u/mcpp66)
#### Post date: [October 10, 2022, 7:37pm UTC](https://forum.networklessons.com/t/how-to-configure-port-security-on-cisco-switch/866/73 "2022-10-10T19:37:03Z")

</div>

Is there a way to limit the number of MAC addresses that a particular port can learn? I’m aware of the switchport port-security maximum command, but I’m just wondering if I can simply limit the number of MACs on a port without configuring the switchport port-security command in either a dynamic, static, or sticky method? In other words, I don’t care what MAC address the port learns, but I only want it to allow 1, 2, or whatever number MAC addresses I choose. For example, I just want it to learn 3 mac addresses and every MAC after 3 gets ignored. I hope my question makes sense. Thank you.

---

_[View the full topic](https://forum.networklessons.com/t/how-to-configure-port-security-on-cisco-switch/866)._
