
Configuring STP/RSTP
13-27
Configuring Spanning Tree Protocol Type
The Corecess R1-SW24L2B supports both 802.1D STP and 802.1W RSTP. By default, spanning
tree protocol that is operating on a VLAN is 802.1W TSTP. For compatible of other device or
other reasons, you can set STP to operate on a particular VLAN.
To set spanning tree protocol to STP on a particular VLAN, use the following commands.
Table 13-14 Configuring Spanning Tree Protocol Type
Command Task
configure terminal 1. Enter Global configuration mode.
stp protocol-version
stp vlan id <vlan-id>
2. Set spanning tree protocol to STP on the specified VLAN.
y <vlan-id> VLAN ID (1 ~ 4094)
end 3. Return to Privileged mode.
show stp vlan id
<vlan-id>
4. Verify the configuration result.
The following example shows how to set spanning tree protocol to STP on the VLAN whose ID
is 2:
(config)# stp protocol-version stp vlan id 2
(config)# end
# show stp vlan id 2
VLAN ID: 2
Protocol Operation: enabled
Root Bridge: yes
STP version: stpCompatible(0)
Pathcost Encoding: 32bit
BridgeID: 0x8000-0001AB0DEF11
.
.
.
#