46
4.4.5 Command
Lines:
Feature
Command Line
RSTP
Enable
JetNet 5008G-P(config)# spanning-tree enable
Disable JetNet
5008G-P(config)# spanning-tree disable
Warning: STP disable will cause Dual Homing II not working.
RSTP mode
JetNet 5008G-P(config)# spanning-tree mode rapid-stp
SpanningTree Mode change to be RST(802.1w) .
STP mode
JetNet 5008G-P(config)# spanning-tree mode stp
SpanningTree Mode change to be STP(802.1d) .
Priority JetNet
5008G-P(config)# spanning-tree priority
<0-61440> valid range is 0 to 61440 in multiple of 4096
JetNet 5008G-P(config)# spanning-tree priority 4096
Max Age
JetNet 5008G-P(config)# spanning-tree max-age
<6-40> Valid range is 6~40 seconds
JetNet 5008G-P(config)# spanning-tree max-age 10
Hello Time
JetNet 5008G-P(config)# spanning-tree hello-time
<1-10> Valid range is 1~10 seconds
JetNet 5008G-P(config)# spanning-tree hello-time 2
Forward Delay
JetNet 5008G-P(config)# spanning-tree forward-time
<4-30> Valid range is 4~30 seconds
JetNet 5008G-P(config)# spanning-tree forward-time 15
Port Path Cost
JetNet 5008G-P(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
JetNet 5008G-P(config-if)# spanning-tree cost 200000
Port Priority
JetNet 5008G-P(config-if)# spanning-tree port-priority
<0-240> Number from 0 to 240, in multiple of 16
JetNet 5008G-P(config-if)# spanning-tree port-priority 128
Link Type - Auto
JetNet 5008G-P(config-if)# spanning-tree link-type auto
Link Type - P2P
JetNet 5008G-P(config-if)# spanning-tree link-type
point-to-point
Link Type – Share
JetNet 5008G-P(config-if)# spanning-tree link-type shared
Edge Port
JetNet 5008G-P(config-if)# spanning-tree edge-port enable
JetNet 5008G-P(config-if)# spanning-tree edge-port disable
RSTP Info
Active status
JetNet 5008G-P# 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)