We have Cisco Catalyst 2960-S switches,

And we noticed some employees plug out the internet cables to connect them to their Lab top.

I want the command that I can use to make the port shutdown when someone plug out the cable from the PC.

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 15 '17 at 17:36

There's no such thing as block port administratively when it comes down operationally. Though as you mentioned in the tags, you can use port security for that and configure maximum MAC addresses per port. For example:

interface X
 switchport port-security
 switchport port-security maximum 1
 switchport port-security violation shutdown

Violation mode defaults to shutdown, so this line is optional

| improve this answer | |

Put the switch in a locked closet, or, get a wallmount lock box for it. enter image description here

| improve this answer | |

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.