Escolar Documentos
Profissional Documentos
Cultura Documentos
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
ConfigurationexampletomigrateSpanningTreefromPVST+toMST
Updated: Dec13,2006
Contents
Introduction
Prerequisites
Requirements
ComponentsUsed
Conventions
BackgroundInformation
Configure
NetworkDiagram
Configurations
PVST+Configuration
MSTMigration
Verify
Troubleshoot
RelatedInformation
Introduction
ThisdocumentprovidesasampleconfigurationtomigratethespanningtreemodefromPVST+toMultiple
SpanningTree(MST)inthecampusnetwork.
Prerequisites
Requirements
RefertoUnderstandingMultipleSpanningTreeProtocol(802.1s)beforeyouconfigureMST.
ThistableshowsthesupportofMSTinCatalystswitchesandtheminimumsoftwarerequiredforthatsupport.
CatalystPlatform
MSTwithRSTP
Catalyst2900XLand3500XL
NotAvailable
Catalyst2950and3550
CiscoIOS12.1(9)EA1
Catalyst3560
CiscoIOS12.1(9)EA1
Catalyst3750
CiscoIOS12.1(14)EA1
Catalyst2955
AllCiscoIOSversions
Catalyst2948GL3and4908GL3
NotAvailable
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
1/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Catalyst4000,2948G,and2980G(CatalystOS(CatOS)) 7.1
Catalyst4000and4500(CiscoIOS)
12.1(12c)EW
Catalyst5000and5500
NotAvailable
Catalyst6000and6500(CatOS)
7.1
Catalyst6000and6500(CiscoIOS)
12.1(11b)EX,12.1(13)E,12.2(14)SX
Catalyst8500
NotAvailable
Catalyst3550/3560/3750:TheMSTimplementationinCiscoIOSRelease12.2(25)SECisbasedontheIEEE
802.1sstandard.TheMSTimplementationsinearlierCiscoIOSreleasesareprestandard.
Catalyst6500(IOS):TheMSTimplementationinCiscoIOSRelease12.2(18)SXFisbasedontheIEEE
802.1sstandard.TheMSTimplementationsinearlierCiscoIOSreleasesareprestandard.
ComponentsUsed
ThisdocumentiscreatedwiththeCiscoIOSSoftwareRelease12.2(25)andCatOS8.5(8),buttheconfiguration
isapplicabletotheminimumIOSversionmentionedinthetable.
Theinformationinthisdocumentwascreatedfromthedevicesinaspecificlabenvironment.Allofthedevices
usedinthisdocumentstartedwithacleared(default)configuration.Ifyournetworkislive,makesurethatyou
understandthepotentialimpactofanycommand.
Conventions
RefertotheCiscoTechnicalTipsConventionsformoreinformationondocumentconventions.
BackgroundInformation
TheMSTfeatureistheIEEE802.1sandisanamendmentto802.1Q.MSTextendsthe802.1wRapidSpanning
Tree(RST)algorithmtomultiplespanningtrees.Thisextensionprovidesforbothrapidconvergenceandload
balancinginaVLANenvironment.PVST+andRapidPVST+runspanningtreeinstanceforeachVLAN.InMST,
youcangroupVLANsintoasingleinstance.ItusesBridgeProtocolDataUnit(BPDU)version3whichis
backwardcompatiblewiththe802.1DSTPwhichusesBPDUversion0.
MSTPConfiguration:Theconfigurationincludesthenameoftheregion,therevisionnumber,andtheMST
VLANtoinstanceassignmentmap.Youconfiguretheswitchforaregionwiththespanningtreemst
configurationglobalconfigurationcommand.
MSTRegion:AnMSTregionconsistsofinterconnectedbridgesthathavethesameMSTconfiguration.Thereis
nolimitonthenumberofMSTregionsinthenetwork.
SpanningtreeInstancesInsidetheMSTRegion:AninstanceisnothingbutagroupofVLANsmappedinthe
spanningtreemstconfigurationcommand.Bydefault,alltheVLANsaregroupedintoIST0,whichiscalledan
InternalSpanningTree(IST).Youcanmanuallycreateinstancesnumbered1to4094,andtheyarelabeledMSTn
(n=1to4094),buttheregioncansupportonlyupto65instances.Someofthereleasessupportsonly16
instances.Referthesoftwareconfigurationguideforyourswitchplatform.
IST/CST/CIST:ISTistheonlyinstancethatcansendandreceiveBPDUsintheMSTnetwork.AnMSTn
instanceislocaltotheregion.ISTsindifferentregionsareinterconnectedthroughaCommonSpanningTree
(CST).ThecollectionofISTsineachMSTregionandtheCSTthatconnectstheISTsarecalledtheCommon
andInternalSpanningTree(CIST).
BackwardCompatibility:MSTisbackwardcompatiblewithPVST+,RapidPVST+,andPrestandardMST
(MISTP).MSTswitchisconnectedtotheotherSTP(PVST+andRapidPVST+)switchesbytheCommon
SpanningTree(CST).OtherSTP(PVST+andRapidPVST+)switchesseetheentireMSTregionasasingle
switch.WhenyouconnecttheprestandardMSTswitchwiththestandardMSTswitch,youneedtoconfigure
spanningtreemstprestandardintheinterfaceofthestandardMSTswitch,.
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
2/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Configure
Thisexamplecontainstwosections.ThefirstsectionshowsthecurrentPVST+configuration.Thesecond
sectionshowstheconfigurationthatmigratesfromPVST+toMST.
Note:UsetheCommandLookupTool(registeredcustomersonly)toobtainmoreinformationonthecommands
usedinthissection.
NetworkDiagram
Thisdocumentusesthisnetworksetup:
Thisdiagramincludestheseswitches:
Distribution1andDistribution2,whichareinthedistributionlayer
TwoaccesslayerswitchescalledAccess1(IOS)andAccess2(CatOS)
TwoserveraggregationswitchescalledServices1andServices2
VLANs10,30,and100carrydatatraffic.VLANs20,40,and200carryvoicetraffic.
Configurations
Thisdocumentusestheseconfigurations:
PVST+Configuration.
MSTmigration.
PVST+Configuration
TheswitchesareconfiguredinPVST+tocarrythedataandvoicetrafficasperthenetworkdiagram.Thisisa
shortsummaryoftheconfiguration:
TheDistribution1switchisconfiguredtobecomeaprimaryrootbridgeforthedataVLANs10,30,and100with
theDistribution1(config)#spanningtreevlan10,30,100rootprimarycommand,andthesecondaryroot
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
3/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
bridgeforthevoiceVLANs20,40,and200usestheDistribution1(config)#spanningtreevlan20,40,200
rootsecondarycommand.
TheDistribution2switchisconfiguredtobecomeaprimaryrootbridgeforthevoiceVLANs20,40,and200
withtheDistribution2(config)#spanningtreevlan20,40,200rootprimarycommand,andthesecondary
rootbridgeforthedataVLANs10,30,and100usestheDistribution2(config)#spanningtreevlan10,30,100
rootsecondarycommand.
ThespanningtreebackbonefastcommandisconfiguredonalltheswitchestoconvergetheSTPmore
quicklyincaseofindirectlinkfailureinthenetwork.
ThespanningtreeuplinkfastcommandisconfiguredontheaccesslayerswitchestoconvergetheSTPmore
quicklyincaseofdirectuplinkfailure.
Distribution1
Distribution1#showrunningconfig
Buildingconfiguration...
spanningtreemodepvst
spanningtreeextendsystemid
spanningtreebackbonefast
spanningtreevlan10,30,100priority24576
spanningtreevlan20,40,200priority28672
!
vlan10,20,30,40,100,200
!
interfaceFastEthernet1/0/1
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20
!
interfaceFastEthernet1/0/3
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan30,40
!
interfaceFastEthernet1/0/5
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet1/0/23
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20,30,40,100,2
00
!
interfaceFastEthernet1/0/24
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20,30,40,100,2
00
!
!
end
YoucanseethattheportFa1/0/24isconfiguredwiththespanningtreevlan20,40,200portpriority64
command.Distribution2istheconfiguredrootforVLANs20,40,and200.Distribution2hastwolinksto
Distribution1:Fa1/0/23andFa1/0/24.BothportsaredesignatedportsforVLANs20,40,and200because
Distribution2istherootforthoseVLANs.Bothportshavethesamepriority128(default).Also,thesetwolinks
havethesamecostfromDistribution1:fa1/0/23andfa1/0/24.Distribution1choosesthelowestportnumberofthe
twoportsinordertosettheportintotheforwardingstate.ThelowestportnumberisFa1/0/23but,,asperthe
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
4/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
networkdiagram,voiceVLANs20,40,and200canflowthroughFa1/0/24.Youcanaccomplishthiswiththese
methods:
DecreasetheportcostinDistribution1:Fa1/0/24.
DecreasetheportpriorityinDistribution2:Fa1/0/24.
Inthisexample,portpriorityisdecreasedtoforwardVLANs20,40,200throughfa1/0/24.
Distribution2
Distribution2#showrunningconfig
Buildingconfiguration...
!
spanningtreemodepvst
spanningtreeextendsystemid
spanningtreebackbonefast
spanningtreevlan10,30,100priority28672
spanningtreevlan20,40,200priority24576
!
vlan10,20,30,40,100,200
!
interfaceFastEthernet1/0/2
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20
!
interfaceFastEthernet1/0/4
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan30,40
!
interfaceFastEthernet1/0/6
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet1/0/23
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20,30,40,100,2
00
!
interfaceFastEthernet1/0/24
switchporttrunkencapsulationdot1q
switchportmodetrunk
spanningtreevlan20,40,200portpriority64
switchporttrunkallowedvlan10,20,30,40,100,2
00
end
YoucanseethatportFa0/5inServices1,andbothFa0/6andFa0/48inServices2havetheSpanningTreeport
costandportpriorityconfiguration.HeretheSTPistunedsothatVLAN100and200ofServices1andServices2
canpassthroughthetrunklinksbetweenthem.Ifthisconfigurationisnotapplied,Services1and2cannotpass
trafficthroughthetrunklinksbetweenthem.Instead,itchoosesthepaththroughDistribution1andDistribution2.
Services2seestwoequalcostpathstotheVLAN100root(Distribution1):onethroughServices1andthesecond
onethroughDistribution2.TheSTPchoosesthebestpath(rootport)inthisorder:
Thepathcost
ThebridgeIDoftheforwardingswitch
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
5/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Thelowestportpriority
Thelowestinternalportnumber
Inthisexample,boththepathshavethesamecost,buttheDistribution2(24576)hasalowerprioritythan
Services1(32768)fortheVLAN100,soServices2choosesDistribution2.Inthisexample,theportcoston
Services1:fa0/5issetlowertoletServices2choosetheServices1.Thepathcostoverridestheforwarding
switchprioritynumber.
Services1
Services1#showrunningconfig
Buildingconfiguration...
spanningtreemodepvst
spanningtreeportfastbpduguarddefau
lt
spanningtreeextendsystemid
spanningtreebackbonefast
!
vlan100,200
!
interfaceFastEthernet0/5
switchporttrunkencapsulationdot1q
switchportmodetrunk
spanningtreevlan100cost18
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet0/47
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet0/48
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan100,200
!
!
end
ThesameconceptisappliedforServices1tochooseServices2toforwardVLAN200.Afteryoureducethecost
forVLAN200inServices2fa0/6,Services1choosesfa0/47toforwardVLAN200.Therequirementhereisto
forwardVLAN200throughfa0/48.Youcanaccomplishthiswiththesetwomethods:
DecreasetheportcostinServices1:Fa0/48.
DecreasetheportpriorityinServices2:Fa0/48.
Inthisexample,portpriorityinServices2isdecreasedtoforwardVLAN200throughfa0/48.
Services2
Services2#showrunningconfig
Buildingconfiguration...
spanningtreemodepvst
spanningtreeportfastbpduguarddefau
lt
spanningtreeextendsystemid
spanningtreebackbonefast
!
vlan100,200
!
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
6/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
interfaceFastEthernet0/6
switchporttrunkencapsulationdot1q
switchportmodetrunk
spanningtreevlan200cost18
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet0/47
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan100,200
!
interfaceFastEthernet0/48
switchporttrunkencapsulationdot1q
switchportmodetrunk
spanningtreevlan200portpriority
64
switchporttrunkallowedvlan100,200
!
!
end
Access1
Access1#showrunningconfig
Buildingconfiguration...
!
spanningtreemodepvst
spanningtreeportfastbpduguarddefau
lt
spanningtreeextendsystemid
spanningtreeuplinkfast
spanningtreebackbonefast
!
vlan10,20
!
interfaceFastEthernet0/1
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20
!
interfaceFastEthernet0/2
switchporttrunkencapsulationdot1q
switchportmodetrunk
switchporttrunkallowedvlan10,20
!
end
Access2
Access2>(enable)showconfigall
#macaddressreduction
setspantreemacreductionenable
!
#stpmode
setspantreemodepvst+
!
#uplinkfastgroups
setspantreeuplinkfastenablerate15allprotocolso
ff
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
7/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
!
#backbonefast
setspantreebackbonefastenable
!
#vlanparameters
setspantreepriority491521
setspantreepriority4915230
setspantreepriority4915240
!
#vlan(defaults)
setspantreeenable1,30,40
setspantreefwddelay151,30,40
setspantreehello21,30,40
setspantreemaxage201,30,40
!
#vtp
setvlan1,30,40
!
#module3:48port10/100BaseTXEthernet
settrunk3/3ondot1q30,40
settrunk3/4ondot1q30,40
!
end
MSTMigration
ItisdifficulttoconvertalltheswitchesintheenterprisenetworktoMSTatthesametime.Becauseofthe
backwardcompatibility,youcanconvertitphasebyphase.Implementthechangesinthescheduled
maintenancewindowbecausethespanningtreereconfigurationcandisruptthetrafficflow.Whenyouenable
MST,italsoenablesRSTP.ThespanningtreeuplinkfastandbackbonefastfeaturesarePVST+features,andit
isdisabledwhenyouenableMSTbecausethosefeaturesarebuiltwithinRSTP,andMSTreliesonRSTP.Within
themigration,youcanremovethosecommandsinIOS.IncatOSbackbonefastanduplinkfast,commandsare
automaticallyclearedfromtheconfiguration,buttheconfigurationofthefeaturessuchasthePortFast,
bpduguard,bpdufilter,rootguard,andloopguardarealsoapplicableinMSTmode.Theusageofthesefeaturesis
thesameasinPVST+mode.IfyouhavealreadyenabledthesefeaturesinthePVST+mode,itremainsactive
afterthemigrationtoMSTmode.WhenyouconfigureMST,followtheseguidelinesandrestrictions:
Thefirststepinthemigrationto802.1s/wistoproperlyidentifypointtopointandedgeports.Ensurethatall
switchtoswitchlinks,onwhicharapidtransitionisdesired,arefullduplex.Edgeportsaredefinedthroughthe
PortFastfeature.
Chooseaconfigurationnameandrevisionnumberthatarecommontoallswitchesinthenetwork.Cisco
recommendsthatyouplaceasmanyswitchesaspossibleintoasingleregionitisnotadvantageousto
segmentanetworkintoseparateregions.
Carefullydecidehowmanyinstancesareneededintheswitchednetwork,andkeepinmindthataninstance
translatestoalogicaltopology.AvoidmappinganyVLANsontoinstance0.DecidewhatVLANstomaponto
thoseinstances,andcarefullychoosearootandbackuprootforeachinstance.
EnsurethattrunkscarryalltheVLANsthataremappedtoaninstanceordonotcarryanyVLANsatallforthis
instance.
MSTcaninteractwithlegacybridgesthatrunPVST+onaperportbasis,soitisnotaproblemtomixboth
typesofbridgesifinteractionsareclearlyunderstood.AlwaystrytokeeptherootoftheCSTandISTinside
theregion.IfyouinteractwithaPVST+bridgethroughatrunk,ensurethattheMSTbridgeistherootforall
VLANsthatareallowedonthattrunk.DonotusePVSTbridgesastherootofCST.
EnsurethatallPVSTspanningtreerootbridgeshavelower(numericallyhigher)prioritythantheCSTroot
bridge.
DonotdisablethespanningtreeonanyVLANinanyofthePVSTbridges.
DonotconnectswitcheswithaccesslinksbecauseaccesslinkscanpartitionaVLAN.
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
8/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
AnyMSTconfigurationthatinvolvesalargenumberofeithercurrentornewlogicalVLANportsmustbe
completedwithinamaintenancewindowbecausethecompleteMSTdatabasegetsreinitializedforany
incrementalchange,suchastheadditionofnewVLANstoinstancesorthemovementofVLANsacross
instances.
Inthisexample,thecampusnetworkhasoneMSTregionnamedregion1andtwoinstancesofMST1Data
VLANs10,30,and100,andMST2voiceVLANs20,40,and200.YoucanseethatMSTrunsonlytwo
instances,butthePVST+runssixinstances.Distribution1ischosenasCISTregionalroot.Itmeansthat
Distribution1istherootforIST0.Inordertoloadbalancethetrafficinthenetworkasperthediagram,
Distribution1isconfiguredastherootforMST1(instanceforDataVLANs),andMST2isconfiguredastheroot
forMST2(instanceforvoiceVLANs).
Youneedtomigratethecorefirstandworkyourwaydowntotheaccessswitches.Beforeyouchangethe
spanningtreemode,configuretheMSTconfigurationontheswitches.ThenchangetheSTPtypetoMST.Inthis
example,migrationoccursinthisorder:
Distribution1andDistribution2
Services1andServices2
Access1
Access2
Distribution1andDistribution2migration:
!Distribution1configuration:
Distribution1(config)#spanningtreemstconfiguration
Distribution1(configmst)#nameregion1
Distribution1(configmst)#revision10
Distribution1(configmst)#instance1vlan10,30,100
Distribution1(configmst)#instance2vlan20,40,200
Distribution1(configmst)#exit
Distribution1(config)#spanningtreemst01rootprimary
Distribution1(config)#spanningtreemst2rootsecondary
!Distribution2configuration:
Distribution2(config)#spanningtreemstconfiguration
Distribution2(configmst)#nameregion1
Distribution2(configmst)#revision10
Distribution2(configmst)#instance1vlan10,30,100
Distribution2(configmst)#instance2vlan20,40,200
Distribution2(configmst)#exit
Distribution2(config)#spanningtreemst2rootprimary
Distribution2(config)#spanningtreemst01rootsecondary
!MakesurethattrunkscarryalltheVLANsthataremappedtoaninstance.
Distribution1(config)#interfaceFastEthernet1/0/1
Distribution1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution1(config)#interfaceFastEthernet1/0/3
Distribution1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution1(config)#interfaceFastEthernet1/0/5
Distribution1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
9/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
!
Distribution1(config)#interfaceFastEthernet1/0/23
Distribution1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution1(config)#interfaceFastEthernet1/0/24
Distribution1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
Distribution2(config)#interfaceFastEthernet1/0/2
Distribution2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution2(config)#interfaceFastEthernet1/0/4
Distribution2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution2(config)#interfaceFastEthernet1/0/6
Distribution2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution2(config)#interfaceFastEthernet1/0/23
Distribution2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Distribution2(config)#interfaceFastEthernet1/0/24
Distribution2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!STPmodeconversion.
Distribution1(config)#spanningtreemodemst
Distribution2(config)#spanningtreemodemst
!MSTtuningtoloadbalancedataandvoiceVLANtraffic.
Distribution2(config)#interfaceFastEthernet1/0/24
Distribution2(configif)#spanningtreemst2portpriority64
!PVST+cleanup.
Distribution1(config)#nospanningtreebackbonefast
Distribution2(config)#nospanningtreebackbonefast
Distribution2(config)#interfaceFastEthernet1/0/24
Distribution2(configif)#nospanningtreevlan20,40,200portpriority64
Note:ItisrecommendedthatyousettheMST0rootmanually.Inthisexample,Distribution1ischosenasthe
MST0root,soDistribution1becomestheCISTroot.
Nowthenetworkisinmixedconfiguration.Itcanberepresentedasperthisdiagram:
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
10/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Distribution1andDistribution2areinMSTregion1,andthePVST+switchesseetheregion1asasinglebridge.
ThetrafficflowafterthereconvergeisshowninDiagram2.YoucanstilltunethePVST+(spanningtreeVLAN
Xcost)switchestoloadbalancethedataandvoicetrafficasperDiagram1.Afteryoumigratealltheother
switchesaspersteps2through4,yougetthefinalspanningtreetopologyasperDiagram1.
Services1andServices2migration:
!Services1configuration:
Services1(config)#spanningtreemstconfiguration
Services1(configmst)#nameregion1
Services1(configmst)#revision10
Services1(configmst)#instance1vlan10,30,100
Services1(configmst)#instance2vlan20,40,200
Services1(configmst)#exit
!Services2configuration:
Services2(config)#spanningtreemstconfiguration
Services2(configmst)#nameregion1
Services2(configmst)#revision10
Services2(configmst)#instance1vlan10,30,100
Services2(configmst)#instance2vlan20,40,200
Services2(configmst)#exit
!Makesurethattrunkscarryallthe!VLANsthataremappedtoaninstance.
Services1(config)#interfaceFastEthernet0/5
Services1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Services1(config)#interfaceFastEthernet0/47
Services1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
11/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
!
Services1(config)#interfaceFastEthernet0/48
Services1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Services2(config)#interfaceFastEthernet0/6
Services2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Services2(config)#interfaceFastEthernet0/47
Services2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Services2(config)#interfaceFastEthernet0/48
Services2(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!STPModeconversion:
Services1(config)#spanningtreemodemst
Services2(config)#spanningtreemodemst
!MSTtuningtoloadbalancedataandvoiceVLANtraffic:
Services1(config)#interfacefastEthernet0/46
Services1(configif)#spanningtreemst2cost200000
Services1(configif)#exit
Services1(config)#interfacefastEthernet0/47
Services1(configif)#spanningtreemst2cost100000
Services1(configif)#exit
Services2(config)#interfaceFastEthernet0/6
Services2(configif)#spanningtreemst1cost500000
Services2(configif)#exit
!PVST+cleanup:
Services1(config)#nospanningtreeuplinkfast
Services1(config)#nospanningtreebackbonefast
Services1(config)#interfaceFastEthernet0/5
Services1(configif)#nospanningtreevlan100cost18
Services1(configif)#exit
Services2(config)#nospanningtreeuplinkfast
Services2(config)#nospanningtreebackbonefast
Services2(config)#interfaceFastEthernet0/6
Services2(configif)#nospanningtreevlan200cost18
Services2(configif)#exit
Services2(config)#interfaceFastEthernet0/48
Services2(configif)#nospanningtreevlan200portpriority64
Services2(configif)#exit
Access1migration:
!Access1configuration:
Access1(config)#spanningtreemstconfiguration
Access1(configmst)#nameregion1
Access1(configmst)#revision10
Access1(configmst)#instance1vlan10,30,100
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
12/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Access1(configmst)#instance2vlan20,40,200
Access1(configmst)#exit
!MakesurethattrunkscarryalltheVLANsthataremappedtoaninstance.
Access1(config)#interfaceFastEthernet0/1
Access1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!
Access1(config)#interfaceFastEthernet0/2
Access1(configif)#switchporttrunkallowedvlan10,20,30,40,100,200
!STPmodeconversion:
Access1(config)#spanningtreemodemst
!PVST+cleanup:
Access1(config)#nospanningtreeuplinkfast
Access1(config)#nospanningtreebackbonefast
Access2migration:
!Access2configuration:
Access2>(enable)setspantreemstconfignameregion1revision10
EditBuffermodified.
Use'setspantreemstconfigcommit'toapplythechanges
Access2>(enable)setspantreemst1vlan10,30,100
EditBuffermodified.
Use'setspantreemstconfigcommit'toapplythechanges
Access2>(enable)setspantreemst2vlan20,40,200
EditBuffermodified.
Use'setspantreemstconfigcommit'toapplythechanges
Access2>(enable)setspantreemstconfigcommit
!EnsurethattrunkscarryalltheVLANsthataremappedtoaninstance:
Access2>(enable)settrunk3/3ondot1q10,20,30,40,100,200
Access2>(enable)settrunk3/4ondot1q10,20,30,40,100,200
STPmodeconversion
Access2>(enable)setspantreemodemst
PVST+databasecleanedup.
SpantreemodesettoMST.
!Backbonefastanduplinkfastconfigurationsarecleanedupautomatically.
Verify
Itisrecommendedtoverifythespanningtreetopologyeverytimetheconfigurationischanged.
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
13/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
VerifythattheDistribution1switchistherootbridgefordataVLANs10,30,and100,andverifythatthespanning
treeforwardingpathmatchesasperthepathinthediagram.
Distribution1#showspanningtreemst0
#####MST0vlansmapped:19,1119,2129,3139,4199,101199,2014094
Bridgeaddress0015.63f6.b700priority24576(24576sysid0)
RootthisswitchfortheCIST
Operationalhellotime2,forwarddelay15,maxage20,txholdcount6
Configuredhellotime2,forwarddelay15,maxage20,maxhops20
InterfaceRoleStsCostPrio.NbrType
Fa1/0/1DesgFWD200000128.1P2p
Fa1/0/3DesgFWD200000128.3P2p
Fa1/0/5DesgFWD200000128.5P2p
Fa1/0/23DesgFWD200000128.23P2p
Fa1/0/24DesgFWD200000128.24P2p
Distribution1#showspanningtreemst1
#####MST1vlansmapped:10,30,100
Bridgeaddress0015.63f6.b700priority24577(24576sysid1)
RootthisswitchforMST1
InterfaceRoleStsCostPrio.NbrType
Fa1/0/1DesgFWD200000128.1P2p
Fa1/0/3DesgFWD200000128.3P2p
Fa1/0/5DesgFWD200000128.5P2p
Fa1/0/23DesgFWD200000128.23P2p
Fa1/0/24DesgFWD200000128.24P2p
Distribution1#showspanningtreemst2
#####MST2vlansmapped:20,40,200
Bridgeaddress0015.63f6.b700priority28674(28672sysid2)
Rootaddress0015.c6c1.3000priority24578(24576sysid2)
portGi1/0/24cost200000remhops4
InterfaceRoleStsCostPrio.NbrType
Gi1/0/1DesgFWD200000128.1P2p
Gi1/0/3DesgFWD200000128.3P2p
Gi1/0/23AltnBLK200000128.23P2p
Gi1/0/24RootFWD200000128.24P2p
Distribution2#showspanningtreemst0
#####MST0vlansmapped:19,1119,2129,3139,4199,101199,2014094
Bridgeaddress0015.c6c1.3000priority28672(28672sysid0)
Rootaddress0015.63f6.b700priority24576(24576sysid0)
portFa1/0/23pathcost0
RegionalRootaddress0015.63f6.b700priority24576(24576sysid0)
internalcost200000remhops19
Operationalhellotime2,forwarddelay15,maxage20,txholdcount6
Configuredhellotime2,forwarddelay15,maxage20,maxhops20
InterfaceRoleStsCostPrio.NbrType
Fa1/0/2DesgFWD200000128.54P2p
Fa1/0/4DesgFWD200000128.56P2p
Fa1/0/6DesgFWD200000128.58P2p
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
14/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
Fa1/0/23RootFWD200000128.75P2p
Fa1/0/24AltnBLK200000128.76P2p
!CISTrootisDistribution1.Allthe!switchesareinthesameregion"region1".!Hencein
Distribution2#showspanningtreemst1
#####MST1vlansmapped:10,30,100
Bridgeaddress0015.c6c1.3000priority28673(28672sysid1)
Rootaddress0015.63f6.b700priority24577(24576sysid1)
portGi2/0/23cost200000remhops1
InterfaceRoleStsCostPrio.NbrType
Gi2/0/2DesgFWD200000128.54P2p
Gi2/0/4DesgFWD200000128.56P2p
Gi2/0/23RootFWD200000128.75P2p
Gi2/0/24AltnBLK200000128.76P2p
Distribution2#showspanningtreemst2
#####MST2vlansmapped:20,40,200
Bridgeaddress0015.c6c1.3000priority24578(24576sysid2)
RootthisswitchforMST2
InterfaceRoleStsCostPrio.NbrType
Gi2/0/2DesgFWD200000128.54P2p
Gi2/0/4DesgFWD200000128.56P2p
Gi2/0/6DesgFWD200000128.58P2p
Gi2/0/23DesgFWD200000128.75P2p
Gi2/0/24DesgFWD20000064.76P2p
Access2>(enable)showspantreemst1
SpanningtreemodeMST
Instance1
VLANsMapped:10,30,100
DesignatedRoot001563f6b700
DesignatedRootPriority24577(rootpriority:24576,sysIDext:1)
DesignatedRootCost200000RemainingHops19
DesignatedRootPort3/3
BridgeIDMACADDR00d000503000
BridgeIDPriority32769(bridgepriority:32768,sysIDext:1)
PortStateRoleCostPrioType
3/3forwardingROOT20000032P2P
3/4blockingALTR20000032P2P
Access2>(enable)showspantreemst2
SpanningtreemodeMST
Instance2
VLANsMapped:20,40,200
DesignatedRoot0015c6c13000
DesignatedRootPriority24578(rootpriority:24576,sysIDext:2)
DesignatedRootCost200000RemainingHops19
DesignatedRootPort3/4
BridgeIDMACADDR00d000503000
BridgeIDPriority32770(bridgepriority:32768,sysIDext:2)
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
15/16
9/1/2016
ConfigurationexampletomigrateSpanningTreefromPVST+toMSTCisco
PortStateRoleCostPrioType
3/3blockingALTR20000032P2P
3/4forwardingROOT20000032P2P
Troubleshoot
Thereiscurrentlynospecifictroubleshootinginformationavailableforthisconfiguration.
RelatedInformation
UnderstandingMultipleSpanningTreeProtocol(802.1s)
UnderstandingRapidSpanningTreeProtocol(802.1w)
SpanningTreeProtocolProblemsandRelatedDesignConsiderations
SpanningTreeProtocolRootGuardEnhancement
SwitchesProductSupport
LANSwitchingTechnologySupport
TechnicalSupport&DocumentationCiscoSystems
2016Ciscoand/oritsaffiliates.Allrightsreserved.
http://www.cisco.com/c/en/us/support/docs/switches/catalyst6500seriesswitches/72844MST.html
16/16