Set the priority of the switch. 
Priority is an important reference to determine whether the switch will be 
selected to work as root bridge, and switch with higher priority will be 
selected to work as root bridge under equivalent conditions. The lower 
the value, the higher the priority. Priority is 32768 by default. 
Set  the  time  interval  to  2  seconds  by  default  for  the  switch  to  send 
BPDU. 
Set the maximum survival time of BPDU message when it is stored on 
the switch The default is 20 seconds. 
Maximum aging time must meet the following requirements: 
  Maximum aging time ≥ 2 * (Hello Time + 1) 
  Maximum aging time ≤ 2 * (forwarding delay time – 1) 
Set the delay time of port status transition of the switch when a change in 
network topology takes place. The default is 15 seconds. 
  Loopback Detection 
 
  Note 
  When the spanning tree functions are disabled, the loopback detection function, auto 
awakening and awakening time interval cannot be set. 
  When  the  spanning  tree  function  is  enabled  and  the  loopback  detection  function  is 
disabled, the auto wake-up function gets invalid. Auto wake-up function can get valid 
only when both the STP function and loopback detection function are enabled.