1

I have a Cisco switch model 3500 series 48 port. I need to enable port security on this switch. Could you tell me the configuration commands to apply this policy?

5
  • 1
    OK, then enable it. Do you have an actual question, or are you simply making an announcement?
    – Ron Maupin
    Commented Dec 20, 2016 at 16:09
  • Dear I want a configuration command for this Commented Dec 20, 2016 at 16:17
  • You should edit your question to ask what you want.
    – Ron Maupin
    Commented Dec 20, 2016 at 16:17
  • Sorry, i edit it Commented Dec 20, 2016 at 16:21
  • Thanks a lot for your answer and explain. . I got the point Commented Dec 21, 2016 at 20:19

2 Answers 2

3

Enabling port security is extremely easy at its core. It gets more complicated with the options.

Enabling port security on a switch port is done with a simple command: switchport port-security

Cisco maintains documentation on its commands.

6
  • Thanks ,but when i need apply this policy on all ports on switch what can i do ?? Commented Dec 20, 2016 at 16:23
  • This is enabled on the ports individually. You don't want to do this on trunk ports, for example, only on access ports. You could use the interface range macro command to apply it to multiple ports at once.
    – Ron Maupin
    Commented Dec 20, 2016 at 16:25
  • if i don't know all mac address for PC's connected to the switches? Commented Jan 4, 2017 at 6:20
  • You don't need to know the MAC addresses for most options. MAC address restrictions are pretty bad because anyone can easily clone a MAC address. Maybe you should start another question that asks about what you are trying to achieve by using port security. There may be other, better ways to accomplish it.
    – Ron Maupin
    Commented Jan 4, 2017 at 14:46
  • just i need apply security ports on all switches i have but i don't have all mac add for these PC's connected to switches ?? no need to know all mac add foe these PC's right to apply port security command ?!! Commented Jan 8, 2017 at 6:45
0

In cisco environment there is feasiblity to configure authentication for ports .

If users wants to use specific ports , then users has to validate with credentials

Switch1(config)#interface fa0/1 Switch1(config-if)#switchport port-security Switch1(config-if)#switchport port-security maximum 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.