Search

How to enable back an interface, after a Port Security violation related shutdown (Errdisable state)

Once a Port Security violation happened, the interface is shut down and it is in a state called as Errdisable state. Use any of the following methods to bring the interface up after a Port Security violation related shutdown.

• One method to enable back an interface, after a Port Security violation related shutdown (Errdisable state) is to bring the interface down and again up by issuing the commands "shutdown" and "no shutdown".

 

OmniSecuSW1#configure terminal
OmniSecuSW1(config)#interface gigabitethernet 0/0
OmniSecuSW1(config-if)#shutdown
OmniSecuSW1(config-if)#no shutdown
OmniSecuSW1(config-if)#exit
OmniSecuSW1(config)#exit
OmniSecuSW1#

• Other method is to bring up the switch port automatically after a period of time in Errdisable state. The following set of commands enable the autorecovery feature 60 seconds after a shutdown related with Port Security violation.

OmniSecuSW1(config)# errdisable recovery cause psecure-violation
OmniSecuSW1(config)# errdisable recovery interval 60
    

 

Related Tutorials