cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
395
Views
0
Helpful
2
Replies

Port-Security on 4500 Switch

nsiddiqui
Level 1
Level 1

Hi,

I enable port-security on 4500 switch, I am running Version 12.2(25)EWA. I like to find out if I can configure my switch following way:

PC1 is connect to the switch and working fine, if some one connect PC2, it disable the port. Normally, I need to type shut and no shut command on the interface.

I like to configure port that if I connect my PC1 again to the port, port will reconized my MAC address and automatically enable after 5 min. or specify the aging time on the configuration.

I like to find out if it is possible?

Nadeem Siddiqui

2 Replies 2

pedroquiroga
Level 1
Level 1

Hi, try using this command:

errdisable recovery (cause/interval)

Regards

Thank you for the command, I tested this command and it work they way I wanted. Here are the command that I used:

Switch#configure terminal

Switch(config)#interface gigabitethernet 2/28

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 1

Switch(config-if)#switchport port-security

Switch(config-if)#switchport port-security mac-address sticky

Switch(config-if)#exit

Switch(config)#errdisable recovery cause psecure-violation