CLI ReferenceInterface Configuration Commands  MSTP Configuration Commands 
 
show spanning-tree [ summary | forward-time | hello-time | max-age | inconsistentports | 
tx-hold-count | pathcost method | max_hops | counters ] 
Show the information of MSTP instances and forwarding 
status of their interfaces. 
Show the blocked port due to root guard or loop guard. 
Show the maximum hops of an instance. 
Show the method used for calculating path cost. 
Show statistics of STP receiving/transmitting packets. 
Ruijie# show spanning-tree hello-time 
spanning-tree pathcost 
method 
Set the pathcost calculation method. 
spanning-tree forward-time 
Set the maximum hops of an instance. 
spanning-tree 
tx-hold-count 
show spanning-tree interface 
This command is used to show the STP configuration of the interface, including the optional 
spanning tree configuration. 
show spanning-tree interface interface-id [ { bpdufilter | portfast | bpduguard | link-type } ]