67
4.5.5
Command Lines:
Feature
Command Line
RSTP
Enable
Switch(config)# spanning-tree enable
Disable
Switch (config)# spanning-tree disable
RSTP mode
Switch(config)# spanning-tree mode rapid-stp
SpanningTree Mode change to be RST(802.1w) .
STP mode
Switch(config)# spanning-tree mode stp
SpanningTree Mode change to be STP(802.1d) .
Priority
Switch(config)# spanning-tree priority
<0-61440> valid range is 0 to 61440 in multiple of 4096
Switch(config)# spanning-tree priority 4096
Max Age
Switch(config)# spanning-tree max-age
<6-40> Valid range is 6~40 seconds
Switch(config)# spanning-tree max-age 10
Hello Time
Switch(config)# spanning-tree hello-time
<1-10> Valid range is 1~10 seconds
Switch(config)# spanning-tree hello-time 2
Forward Delay
Switch(config)# spanning-tree forward-time
<4-30> Valid range is 4~30 seconds
Switch(config)# spanning-tree forward-time 15
Port Path Cost
Switch(config-if)# spanning-tree cost
<1-200000000> 16-bit based value range from 1-65535, 32-bit based
value range
from 1-200,000,000
Switch(config-if)# spanning-tree cost 200000
Port Priority
Switch(config-if)# spanning-tree port-priority
<0-240> Number from 0 to 240, in multiple of 16
Switch(config-if)# spanning-tree port-priority 128
Link Type - Auto
Switch(config-if)# spanning-tree link-type auto
Link Type - P2P
Switch(config-if)# spanning-tree link-type point-to-point
Link Type – Share
Switch(config-if)# spanning-tree link-type shared
Edge Port
Switch(config-if)# spanning-tree edge-port enable
Switch(config-if)# spanning-tree edge-port disable
RSTP Info
Active status
Switch# show spanning-tree active
Rapid Spanning-Tree feature Enabled
Spanning-Tree BPDU transmission-limit 3
Root Address 0012.7701.0386 Priority 4096
Root Path Cost : 200000 Root Port : 7
Root Times : max-age 20 sec, hello-time 2 sec, forward-delay 15 sec
Bridge Address 0012.77ff.0102 Priority 4096
Bridge Times : max-age 10 sec, hello-time 2 sec, forward-delay 15 sec
Aging time : 300
Port Role Port-State Cost Prio.Nbr Type
------- ---------- ------------ --------- ---------- -----------
fa6 Designated Forwarding 200000 128.6 Auto(RST)
fa7 Root Forwarding 200000 128.7 Shared(STP)
RSTP Summary
Switch# show spanning-tree summary
Switch is in rapid-stp mode.
BPDU skewing detection disabled for the bridge.
Backbonefast disabled for bridge.
Summary of connected spanning tree ports :