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?

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

Enabling port security is extremely easy at is 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.

  • Thanks ,but when i need apply this policy on all ports on switch what can i do ?? – Network_infrastructure Dec 20 '16 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 Dec 20 '16 at 16:25
  • if i don't know all mac address for PC's connected to the switches? – Network_infrastructure Jan 4 '17 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 Jan 4 '17 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 ?!! – Network_infrastructure Jan 8 '17 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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