05-02-2005 01:32 PM - edited 03-02-2019 10:38 PM
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
05-02-2005 02:07 PM
Hi, try using this command:
errdisable recovery (cause/interval)
Regards
05-04-2005 12:10 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide