© Copyright Lenovo 2017 Chapter 10: Spanning Tree Protocols 183
Configuring Multiple STGs
ThisconfigurationshowshowtoconfigurethethreeinstancesofSTGsonthe
switchesA,B,CandDillustratedinFigure 14onpage 182.
BecauseVASAisenabledbydefault,eachnewVLANisautomaticallyassignedits
ownSTG.However,forthisconfigurationexample,someVLANsareexplicitly
reassignedtoother
STGs.
1. SettheSpanningTreemodeoneachswitchtoPVRST.
Note: PVRSTisthedefaultmodeontheCN4093.Thisstepisnotrequiredunless
theSTPmodehasbeenpreviouslychanged,andisshownheremerelyasan
exampleofmanualconfiguration.
2. ConfigurethefollowingonSwitchA:
a. Enable
VLAN2andVLAN3.
b. Addport17toVLAN2andport18toVLAN3.
VLAN2andVLAN3areremovedfromSTG1.
Note: InPVRSTmode,eachinstanceofSTGisenabledbydefault.
3. ConfigurethefollowingonSwitchB:
Addport8toVLAN2.
Ports1and2arebydefaultinVLAN1assignedtoSTG1.
CN 4093(config)# spanning-tree mode pvrst
CN 4093(config)# vlan 2
CN 4093(config-vlan)# exit
CN 4093(config)# vlan 3
CN 4093(config-vlan)# exit
If VASA is disabled, enter the following commands:
CN 4093(config)# spanning-tree stp 2 vlan 2
CN 4093(config)# spanning-tree stp 3 vlan 3
CN 4093(config)# interface port 17
CN 4093(config-if)# switchport access vlan 2
CN 4093(config-if)# exit
CN 4093(config)# interface port 18
CN 4093(config-if)# switchport access vlan 3
CN 4093(config-if)# exit
CN 4093(config)# vlan 2
CN 4093(config-vlan)# stg 2
CN 4093(config-vlan)# exit
CN 4093(config)# interface port 8
CN 4093(config-if)# switchport mode trunk
CN 4093(config-if)# exit
If VASA is disabled, enter the following command:
CN 4093(config)# spanning-tree stp 2 vlan 2