Port security commmand on IOS version 12.0

Answered Question
Apr 16th, 2008


I am trying to run the switchport port-security command on this version of IOS and I keep getting an error.

Anyone know what this command is?


Correct Answer by Edison Ortiz about 8 years 10 months ago

You need 12.1(19)EA1 or later. Please upgrade the IOS code.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (3 ratings)
Correct Answer
Edison Ortiz Wed, 04/16/2008 - 10:15

You need 12.1(19)EA1 or later. Please upgrade the IOS code.



ece344609_2 Wed, 04/16/2008 - 10:16

Thanks Edison.

Just out of curiousity does this version support port security at all.

ece344609_2 Wed, 04/16/2008 - 10:36

Nope no issue just curious if it did or not.


Thanks for the reply but the issue is that the command is not executing. I thought as much that the version of IOS is the issue and Edison confirmed it.

Thanks guys.

Istvan_Rabai Wed, 04/16/2008 - 10:49


I just put my post because you asked:

"Anyone know what this command is? "



Istvan_Rabai Wed, 04/16/2008 - 10:27


The "switchport port-security" is a layer 2 command, together with its options it implements port-security based on mac-addresses.

If you are trying to apply it to a routed port, you will get error messages.

You can configure which source mac-addresses and/or how many of them are allowed on the port.

A small example:

interface fa1/1


switchport port-security

switchport port-security maximum 3

switchport port-security mac-address 0000.0000.0001

switchport port-security mac-address sticky

switchport port-security violation shutdown

The above config allows max. 3 mac-addresses on fa1/1.

The 1st is statically configured, the rest will be learned and put into the running-config (you have to use the copy run start to save the learned mac-addresses).

If someone wants more than 3 mac-addresses (more than 3 hosts) on the port, the port will shutdown for security.




This Discussion