Professional Documents
Culture Documents
Content
Content
CHAPTER 1 MSTP CONFIGURATION..........................................1
1.1 INTRODUCTION TO MSTP..........................................................................1
1.1.1 MSTP Region.....................................................................................................1 1.1.2 Port Role ...........................................................................................................! 1.1.! MSTP "oa# $alan%e..........................................................................................!
1.2 MSTP CONFIGURATION TAS& "IST............................................................! 1.! MSTP E'AMP"E.......................................................................................( 1.) MSTP TROU$"ESHOOTING......................................................................11
MSTP Configuration
MSTP Configuration
Root
Root
3ig ,-, (4a!ple of "IST and MST Region In the abo$e networ-# if the bridges are running the STP or the RSTP# one port between 'ridge M and 'ridge ' should be bloc-ed. 'ut if the bridges in the 1ellow range run the MSTP and are configured in the sa!e MST region# MSTP will treat this region as a bridge. Therefore# one port between 'ridge ' and Root is bloc-ed and one port on 'ridge . is bloc-ed.
MSTP Configuration
region to beco!e the "ST. The MSTI is onl1 $alid within its MST region. An MSTI has nothing to do with MSTIs in other MST regions. The bridges in a MST region recei$e the MST 'P.& of other regions through 'oundar1 Ports. The1 onl1 process "IST related infor!ation and abandon MSTI infor!ation.
MSTP Configuration +anning0tree /o#e 1/ t+2 t+2 r t+3 no +anning0tree /o#e Port Mode +anning0tree /%*e%. 2. Configure in tan%e +ara/eter "o!!and 7lobal Mode
+anning0tree / t <instance-id> +riorit4 <bridge-priority> no +anning0tree / t <instance-id> +riorit4 +anning0tree +riorit4 priority> no +anning0tree +riorit4 Port Mode +anning0tree / t <instance-id> %o t <cost> no +anning0tree / t <instance-id> %o t +anning0tree / t <instance-id> +ort0 +riorit4 <port-priority> no +anning0tree / t <instance-id> +ort0+riorit4 +anning0tree / t <instance-id> rootguar# no +anning0tree / t <instance-id> rootguar# +anning0tree rootguard no +anning0tree rootguard <bridge-
"onfigure currentl1 port whether running rootguard in specified instance# configure the rootguard port can?t turn to root port. "onfigure currentl1 port whether running rootguard in instance *# configure the rootguard port can?t turn to root port.
!. Configure MSTP region +ara/eter "o!!and 7lobal Mode +anning0tree / t %onfiguration no +anning0tree / t %onfiguration MSTP region !ode (nter MSTP region !ode. The no co!!and restores the default setting. (4planation
MSTP Configuration
C*a+ter 1 MSTP Configuration "reate Instance and set !apping between %LA and Instance. Set MSTP region na!e. Set MSTP region re$ision le$el. @uit MSTP region !ode and return to 7lobal !ode without sa$ing MSTP region configuration. @uit MSTP region !ode and return to 7lobal !ode with sa$ing MSTP region configuration.
in tan%e <instance-id> 5lan <vlan-list> no in tan%e <instance-id> 65lan <vlanlist>7 na/e <name> no na/e re5i ion0le5el <level> no re5i ion0le5el a-ort
e8it
"o!!and 7lobal Mode +anning0tree for,ar#0ti/e <time> no +anning0tree for,ar#0ti/e +anning0tree *ello0ti/e <time> no +anning0tree *ello0ti/e +anning0tree /a8age <time> no +anning0tree /a8age +anning0tree /a80*o+ <hop-count> no +anning0tree /a80*o+
(4planation Set the $alue for switch forward dela1 ti!e. Set the =ello ti!e for sending 'P.& !essages. Set Aging ti!e for 'P.& !essages. Set Ma4i!u! nu!ber of hops of 'P.& region. !essages in the MSTP
"o!!and Port Mode +anning0tree lin.0t4+e +2+ 1auto2for%e0true2 for%e0fal e3 no +anning0tree lin.0t4+e +anning0tree -+#uguar#7 no +anning0tree +ortfa t +ortfa t 6-+#ufilter2
Set and cancel the port to be an boundar1 port. bpdufilter recei$es the 'P.& discardingA bpduguard recei$es the 'P.& will disable portA no para!eter recei$es the 'P.&# the port
MSTP Configuration :. Configure t*e for/at of MSTP "o!!and Port Mode +anning0tree for/at tan#ar# +anning0tree for/at +ri5a%4 +anning0tree for/at auto no +anning0tree for/at
spanning-tree
pac-et standard
for!at is pro$ided b1 I(((# pri$ac1 is co!patible with "IS"8 and auto !eans the for!at is deter!ined b1 chec-ing the recei$ed pac-et.
(. Configure t*e noo+ing attri-ute of aut*enti%ation .e4 "o!!and Port Mode +anning0tree #ige t0 noo+ing no +anning0tree #ige t0 noo+ing Set The the no port restores to to use use the the authentication string of partner port. generated string. ;. Configure t*e F"USH /o#e on%e to+olog4 %*ange "o!!and 7lobal Mode +anning0tree t%flu * 1ena-le2 #i a-le2 +rote%t3 no +anning0tree t%flu * (nable0 the spanning-tree flush once the topolog1 changes. .isable0 the spanning tree don?t flush when the topolog1 changes. Protect0 the spanning-tree flush not !ore than one ti!e e$er1 ten seconds. The no co!!and restores to default setting# Port Mode +anning0tree t%flu * 1ena-le2 #i a-le2 +rote%t3 no +anning0tree t%flu * "onfigure the port flush !ode. The no co!!and restores to use the global configured flush !ode. enable flush once the topolog1 changes. (4planation (4planation
MSTP Configuration
S,it%*2
1 )
2 !
28 ! 8
1 : (
S,it%*!
9 8
: 8
(8
S,it%*)
3ig ,-+ T1pical MSTP Application Scenario The connections a!ong the switches are shown in the abo$e figure. All the switches run in the MSTP !ode b1 default# their bridge priorit1# port priorit1 and port route cost are all in the default $alues (e6ual). The default configuration for switches is listed below0 'ridge a!e Switch, B**-**-*, /+<;) ,+) ,+) Switch+ B**-**-*+ /+<;) ,+) ,+) ,+) ,+) ,+) ,+) ,+) +***** +***** +***** +***** +***** +***** +***** +***** +***** +***** +***** +***** +***** +***** Switch/ B**-**-*/ /+<;) ,+) ,+) ,+) ,+) ,+) ,+) ,+) Switch9 B**-**-*9 /+<;)
'ridge MA" Address 'ridge Priorit1 Port Priorit1 Route "ost Port , Port + Port / Port 9 Port : Port ; Port < Port , Port + Port / Port 9 Port : Port ;
'1 default# the MSTP establishes a tree topolog1 (in blue lines) rooted with SwitchA. The ports !ar-ed with C4D are in the discarding status# and the other ports are in the forwarding status. "onfigurations Steps0 Step ,0 "onfigure port to %LA !apping0 "reate %LA +*# /*# 9*# :* in Switch+# Switch/ and Switch9. Set ports ,-< as trun- ports in Switch+ Switch/ and Switch9. Step +0 Set Switch+# Switch/ and Switch9 in the sa!e MSTP0 Set Switch+# Switch/ and Switch9 to ha$e the sa!e region na!e as !stp. Map %LA +* and %LA /* in Switch+# Switch/ and Switch9 to Instance /A Map %LA 9* and %LA :* in Switch+# Switch/ and Switch9 to Instance 9. Step /0 Set Switch/ as the root bridge of Instance /A Set Switch9 as the root bridge of Instance 9 Set the bridge priorit1 of Instance / in Switch/ as *. Set the bridge priorit1 of Instance 9 in Switch9 as *. The detailed configuration is listed below0 S,it%*2< Switch+(config)E$lan +* Switch+("onfig-%lan+*)Ee4it Switch+(config)E$lan /* Switch+("onfig-%lan/*)Ee4it Switch+(config)E$lan 9* Switch+("onfig-%lan9*)Ee4it Switch+(config)E$lan :* Switch+("onfig-%lan:*)Ee4it Switch+(config)Espanning-tree !st configuration Switch+("onfig-Mstp-Region)Ena!e !stp Switch+("onfig-Mstp-Region)Einstance / $lan +*A/* Switch+("onfig-Mstp-Region)Einstance 9 $lan 9*A:* Switch+("onfig-Mstp-Region)Ee4it Switch+(config)Einterface e,>,-< Switch+("onfig-Port-Range)Eswitchport !ode trunSwitch+("onfig-Port-Range)Ee4it Switch+(config)Espanning-tree S,it%*!< Switch/(config)E$lan +* Switch/("onfig-%lan+*)Ee4it Switch/(config)E$lan /*
MSTP Configuration
Switch/("onfig-%lan/*)Ee4it Switch/(config)E$lan 9* Switch/("onfig-%lan9*)Ee4it Switch/(config)E$lan :* Switch/("onfig-%lan:*)Ee4it Switch/(config)Espanning-tree !st configuration Switch/("onfig-Mstp-Region)Ena!e !stp Switch/("onfig-Mstp-Region)Einstance / $lan +*A/* Switch/("onfig-Mstp-Region)Einstance 9 $lan 9*A:* Switch/("onfig-Mstp-Region)Ee4it Switch/(config)Einterface e,>,-< Switch/("onfig-Port-Range)Eswitchport !ode trunSwitch/("onfig-Port-Range)Ee4it Switch/(config)Espanning-tree Switch/(config)Espanning-tree !st / priorit1 * S,it%*)< Switch9(config)E$lan +* Switch9("onfig-%lan+*)Ee4it Switch9(config)E$lan /* Switch9("onfig-%lan/*)Ee4it Switch9(config)E$lan 9* Switch9("onfig-%lan9*)Ee4it Switch9(config)E$lan :* Switch9("onfig-%lan:*)Ee4it Switch9(config)Espanning-tree !st configuration Switch9("onfig-Mstp-Region)Ena!e !stp Switch9("onfig-Mstp-Region)Einstance / $lan +*A/* Switch9("onfig-Mstp-Region)Einstance 9 $lan 9*A:* Switch9("onfig-Mstp-Region)Ee4it Switch9(config)Einterface e,>,-< Switch9("onfig-Port-Range)Eswitchport !ode trunSwitch9("onfig-Port-Range)Ee4it Switch9(config)Espanning-tree Switch9(config)Espanning-tree !st 9 priorit1 * After the abo$e configuration# Switch, is the root bridge of the instance * of the entire networ-. In the MSTP region which Switch+# Switch/ and Switch9 belong to# Switch+ is the region root of the instance *# Switch/ is the region root of the instance / and Switch9 is the region root of the instance 9. The traffic of %LA +* and %LA /* is sent through the topolog1 of the instance /. The traffic of %LA 9* and %LA :* is sent through the topolog1 of the instance 9. And the traffic of other %LA s is sent through the topolog1 of the instance *. The port , in Switch+ is the !aster port of the instance / and the instance 9. =
MSTP Configuration
The MSTP calculation generates / topologies0 the instance *# the instance / and the instance 9 (!ar-ed with blue lines). The ports with the !ar- C4D are in the status of discarding. The other ports are the status of forwarding. 'ecause the instance / and the instance 9 are onl1 $alid in the MSTP region# the following figure onl1 shows the topolog1 of the MSTP region. Switch, 1 1 2 1'
2 !
2 !'
Switch+
Switch/
) 9' Switch9
:' (' 8
3ig ,-/ The Topolog1 8f the Instance * after the MSTP "alculation
2 !' !
Switch+
Switch/
: (' 8
3ig ,-9 The Topolog1 8f the Instance / after the MSTP "alculation
1>
MSTP Configuration
2 !
2' !'
Switch+
9'
('
Switch/
) 9 Switch9
: ( 8
3ig ,-: The Topolog1 8f the Instance 9 after the MSTP "alculation
11