Re-enabling an error-disabled port automatically

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter STP configuration mode.
    device(config)# protocol spanning-tree stp
    
  3. Enable the error-disable-timeout timer.
    device(config-stp)# error-disable-timeout enable
    
  4. Set an interval after which port shall be enabled.
    device(config-stp)# error-disable-timeout interval 60
    
    The interval range is from 0 to 1000000 seconds, the default is 300 seconds.
  5. Return to privileged EXEC mode.
    device(config-stp)# end
    
  6. Verify the configuration.
    device# show spanning-tree
     Spanning-tree Mode: Spanning Tree Protocol
    
     Root Id: 8000.768e.f805.5800 (self)
     Bridge Id: 8000.768e.f805.5800
    
     Root Bridge Forward Delay: 15; Hello Time: 2; Max Age: 20; Max-hops: 20
     Configured Forward Delay: 15; Hello Time: 2; Max Age: 20; Max-hops: 20
     Number of topology change(s): 0
    
     Bpdu-guard errdisable timeout: enabled
     Bpdu-guard errdisable timeout interval: 60 sec
    

Automatically re-enable an error-disabled port configuration example

device# configure terminal
device(config)# protocol spanning-tree stp
device(config-stp)# error-disable-timeout enable
device(config-stp)# error-disable-timeout interval 60
device(config-stp)# end
device# show spanning-tree