Вы находитесь на странице: 1из 20

Cu hnh STP cho mng nh hnh v:

Yu cu: C 4 VLAN 10, 20, 30, 40. CS1 l root bridge ca VLAN 10, 20 CS2 l root bridge ca VLAN 30, 40

1. Vi mi thay i, quan st h thng, xc nh h i t, thi gian thay i gia cc trng thi trong cc trng hp: - t kt ni 1 trong cc PC - t kt ni AS DS - t kt ni DS CS - t kt ni CS CS - 1 AS down - 1 DS down - 1 CS down 2. Cu hnh portfast, uplinkfast, backbonefast khc phc cc hin tng trn. Thc hin li cu a v quan st.

A. CU HNH CC SWITCH. Cu hnh VTP cho mng cc switch nhn thng tin VLAN t ng t core switch (l VTP server) v ch nh core CS1 lm root bridge ca VLAN 10, VLAN 20 v core CS2 lm root bridge cho VLAN 30, VLAN 40 Core CS1: cu hnh VTP server, khai bo cc VLAN, ch nh lm root bridge cho VLAN 10 20 v thng s STP timer
CS1#conf t CS1(config)#vtp mode server CS1(config)#vtp domain STP CS1(config)#vtp pass vp09 CS1(config)#int range f1/1 - 15 CS1(config-if-range)#sw mode trunk CS1(config-if-range)#exit CS1(config)#spanning-tree vlan 10 root CS1(config)#spanning-tree vlan 20 root CS1(config)#spanning-tree vlan 30 root CS1(config)#spanning-tree vlan 40 root CS1(config)#exit CS1#vlan database CS1(vlan)#vlan 10 name TECHNI CS1(vlan)#vlan 20 name MARKET CS1(vlan)#vlan 30 name FINANCE CS1(vlan)#vlan 40 name MANAGE CS1#conf t CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)# CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)# CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)# CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)#spanning-tree CS1(config)#exit

primary primary secondary secondary

vlan 10 hello-time 2 vlan 10 forward-time 10 vlan 10 max-age 15 vlan 20 hello-time 2 vlan 20 forward-time 10 vlan 20 max-age 15 vlan 30 hello-time 2 vlan 30 forward-time 10 vlan 30 max-age 15 vlan 40 hello-time 2 vlan 40 forward-time 10 vlan 40 max-age 15

Core CS2: cu hnh VTP client, ch nh root bridge cho vlan 30, 40 v cc thng s STP timer.
CS2#conf t CS2(config)#vtp CS2(config)#vtp CS2(config)#vtp CS2(config)#int

mode client domain STP pass vp09 range f1/1 - 15

CS2(config-if-range)#sw mode trunk CS2(config-if-range)#exit CS2(config)#spanning-tree vlan 30 root primary CS2(config)#spanning-tree vlan 40 root primary CS2(config)#spanning-tree vlan 10 root secondary CS2(config)#spanning-tree vlan 20 root secondary CS2(config)# CS2(config)#spanning-tree vlan 10 hello-time 2 CS2(config)#spanning-tree vlan 10 forward-time 10 CS2(config)#spanning-tree vlan 10 max-age 15 CS2(config)# CS2(config)#spanning-tree vlan 20 hello-time 2 CS2(config)#spanning-tree vlan 20 forward-time 10 CS2(config)#spanning-tree vlan 20 max-age 15 CS2(config)# CS2(config)#spanning-tree vlan 30 hello-time 2 CS2(config)#spanning-tree vlan 30 forward-time 10 CS2(config)#spanning-tree vlan 30 max-age 15 CS2(config)#spanning-tree vlan 40 hello-time 2 CS2(config)#spanning-tree vlan 40 forward-time 10 CS2(config)#spanning-tree vlan 40 max-age 15

Distributor DS1: cu hnh VTP v cc thng s STP timer


DS11#conf t DS11(config)#vtp mode client DS11(config)#vtp domain STP DS11(config)#vtp pass vp09 DS11(config)#int range f1/1 - 15 DS11(config-if-range)#sw mode trunk DS11(config-if-range)#exit DS11(config)# DS11(config)#spanning-tree vlan 10 hello-time 2 DS11(config)#spanning-tree vlan 10 forward-time DS11(config)#spanning-tree vlan 10 max-age 15 DS11(config)# DS11(config)#spanning-tree vlan 20 hello-time 2 DS11(config)#spanning-tree vlan 20 forward-time DS11(config)#spanning-tree vlan 20 max-age 15 DS11(config)# DS11(config)#spanning-tree vlan 30 hello-time 2 DS11(config)#spanning-tree vlan 30 forward-time DS11(config)#spanning-tree vlan 30 max-age 15 DS11(config)# DS11(config)#spanning-tree vlan 40 hello-time 2 DS11(config)#spanning-tree vlan 40 forward-time DS11(config)#spanning-tree vlan 40 max-age 15 DS11(config)#exit

10

10

10

10

Cu hnh tng t vi cc distributor cn li. Accessor AC111: cu hnh VTP, cc thng s STP timer v access vlan.

AS111#conf t AS111(config)#vtp mode client AS111(config)#vtp domain STP AS111(config)#vtp pass vp09 AS111(config)# AS111(config)#int range f1/1 - 15 AS111(config-if-range)#sw mode trunk AS111(config-if-range)#exit AS111(config)# AS111(config)#spanning-tree vlan 10 hello-time 2 AS111(config)#spanning-tree vlan 10 forward-time AS111(config)#spanning-tree vlan 10 max-age 15 AS111(config)# AS111(config)#spanning-tree vlan 20 hello-time 2 AS111(config)#spanning-tree vlan 20 forward-time AS111(config)#spanning-tree vlan 20 max-age 15 AS111(config)# AS111(config)#spanning-tree vlan 30 hello-time 2 AS111(config)#spanning-tree vlan 30 forward-time AS111(config)#spanning-tree vlan 30 max-age 15 AS111(config)# AS111(config)#spanning-tree vlan 40 hello-time 2 AS111(config)#spanning-tree vlan 40 forward-time AS111(config)#spanning-tree vlan 40 max-age 15 AS111(config)# AS111(config)#int f1/3 AS111(config-if)#sw mode acc AS111(config-if)#sw acc vlan 10 AS111(config-if)#exit AS111(config)#exit

10

10

10

10

Cu hnh tng t vi cc accessor cn li, ch khc cu hnh access vlan, ty thuc vo vlan m switch c php access.

B. QUAN ST MNG Sau khi cu hnh, cu trc cy ca mng nh sau (cc link khng v l b block) **VLAN 10:

Cc AS111 112 121 122 chn DS12 i v root swtich v Bridge ID ca DS12 nh nht (cng priority bng 32768 v a ch MAC nh hn DS11 C200 < C209 )
AS111#show spanning-tree vlan 10 brief VLAN10 Spanning tree enabled protocol ieee Root ID Priority 8192 Address c208.1600.0001 Cost 38 Port 43 (FastEthernet1/2) Hello Time 2 sec Max Age 15 sec Bridge ID Priority 32768 Address c203.1204.0001 Hello Time 2 sec Max Age 15 sec Aging Time 300

Forward Delay 10 sec

Forward Delay 10 sec

Interface Name -------------------FastEthernet1/1 FastEthernet1/2 FastEthernet1/3

Designated Port ID Prio Cost Sts Cost Bridge ID ------- ---- ----- --- ----- -------------------128.42 128 19 BLK 19 32768 c209.1600.0001 128.43 128 19 FWD 19 32768 c200.1204.0001 128.44 128 19 FWD 38 32768 c203.1204.0001

Port ID ------128.42 128.42 128.44

Tng t nh vy, cc AS 211 212 221 222 chn DS13 v n c a ch MAC nh hn DS14: C201 < C202

AS211#show spanning-tree vlan 10 brief VLAN10 Spanning tree enabled protocol ieee

Root ID

Priority Address Cost Port Hello Time

8192 c208.1600.0001 38 42 (FastEthernet1/1) 2 sec Max Age 15 sec

Forward Delay 10 sec

Bridge ID

Priority 32768 Address c205.0dd4.0001 Hello Time 2 sec Max Age 15 sec Aging Time 300

Forward Delay 10 sec

Interface Name -------------------FastEthernet1/1 FastEthernet1/2 FastEthernet1/3

Designated Port ID Prio Cost Sts Cost Bridge ID ------- ---- ----- --- ----- -------------------128.42 128 19 FWD 19 32768 c201.1204.0001 128.43 128 19 BLK 19 32768 c202.1204.0001 128.44 128 19 FWD 38 32768 c205.0dd4.0001

Port ID ------128.42 128.42 128.44

**VLAN 20: cu trc cy ging VLAN 10 do c cng root switch l CS2 **VLAN 30: Tng t nh VLAN 10, cc AS chn DS12 v DS13 i v root switch v n c Bridge ID nh hn, c th l cng priority v a ch MAC nh hn so vi hai switch DS11 v DS22.

**VLAN 40: ging VLAN 30 v c cng root switch l CS2

1. t kt ni PC AS - Giao thc STP ch chy trn cc switch v trong qu trnh ho t ng, PC khng gi gi tin g thuc giao thc STP nn nu kt ni ny t, switch khng detect c s kin ny, do cu trc cy STP ca mng khng thay i. - Sau khi t, nu ni dy li th mng hot ng bnh thng. 2. t kt ni AS DS Cho t kt ni interface f1/1 f1/1 gia AS111 v DS112, cu trc cy ca mng lc hi t: VLAN 10 v VLAN 20:

Ch switch access b t dy mi thay i ng i ti root bridge: i v DS11 CS1 VLAN 30 v VLAN 40

Tng t, swtich access AC111 thng qua DS11 v root bridge.

Thi gian h i t: Ta debug spanning tree event trn access switch AS111 v quan st thi gian h i t:
AS111#debug spanning-tree events Spanning Tree event debugging is on AS111# *Mar 1 00:09:42.083: STP: VLAN10 new root port Fa1/1, cost 38 *Mar 1 00:09:42.111: STP: VLAN10 Fa1/1 -> listening *Mar 1 00:09:52.111: STP: VLAN10 Fa1/1 -> learning *Mar 1 00:10:02.131: STP: VLAN10 sent Topology Change Notice on Fa1/1 *Mar 1 00:10:02.131: STP: VLAN10 Fa1/1 -> forwarding

Switch access mt thi gian l 15 + 2x10 = 35s (1 ln max age timer v 2 ln forward delay timer t 00:09:42.083 00:10:02.131) chuyn i trng thi port fa1/1 t blocking sang forwarding. Dng wireshark bt gi tin ICMP do PC1 ping lin tc 1 gi/1s sang PC5 thuc cng vlan 10. Xt trn 2 cng f1/1 v f1/2 ca CS1: o Port f1/2 (ng gi ICMP i trc khi ct dy):

o Port f1/1 (ng gi ICMP i sau khi ct dy):

Mng mt 40 7 = 33s tip tc ping thnh cng trong vlan 10.

** Gim thi gian hi t bng uplinkfast: Cu hnh uplinkfast cho t t c cc switch, ngoi tr 2 core CS1 v CS2 ( do khng c cng no b block):
DS11#conf t DS11(config)#spanning-tree uplinkfast

Khi mng h i t, ti AS111 c port f1/1 blocking v f1/2 l root port. Khi ct dy f1/2 v debug spannning tree:
AS111#debug spanning-tree events Spanning Tree event debugging is on AS111# *Mar 1 00:51:44.867: STP: VLAN10 new root port Fa1/1, cost 6038 *Mar 1 00:51:44.883: %SPANTREE_FAST-7-PORT_FWD_UPLINK: VLAN10 FastEthernet1/1 moved to Forwarding (UplinkFast). *Mar 1 00:51:44.899: STP: VLAN10 sent Topology Change Notice on Fa1/1 *Mar 1 00:51:44.931: STP: VLAN10 Fa1/2 -> listening *Mar 1 00:51:54.947: STP: VLAN10 Fa1/2 -> learning *Mar 1 00:52:04.967: STP: VLAN10 Fa1/2 -> forwarding

Nh cu hnh uplinkfast m f1/1 nhanh chng chuyn thnh rootport. Xt VLAN 10: ping lin tc 1 gi ICMP/1s trong 2 my thuc vlan 10, sau ct dy n i AS DS v quan st gi bng wireshark: o Port f1/11 ca CS1: ng i ca gi ICMP trc khi mng h i t.

o Port f1/12 ca CS1: ng i ca gi ICMP sau khi mng h i t.

Thi gian h i t: 19 4 = 15s. 15s ny chnh l kho ng thi gian Max age timer m switch access ch gi BPDU mi t root port trc khi thng bo thay i topology. Nh vy ta gim c 33 15 = 18s so vi trc khi cu hnh uplinkfast.

3. t kt ni DS CS Xt trng hp lin kt interface f1/11 ca DS12 v f1/2 ca CS1 b t. Do cu trc mng nn cc switch b nh hng l cc AS 111 112 121 122. Xt vlan 10, AS111 chn DS11 v CS1 v ng ny c path cost nh hn 19 so vi nu i theo ng DS12 CS2 CS1. Cu trc cy ca mng:

DS12#debug spanning-tree events Spanning Tree event debugging is on *Mar 1 00:13:35.559: STP: VLAN10 new root port Fa1/12, cost 38 *Mar 1 00:13:35.579: STP: VLAN10 Fa1/12 -> listening *Mar 1 00:13:45.595: STP: VLAN10 Fa1/12 -> learning *Mar 1 00:13:55.611: STP: VLAN10 sent Topology Change Notice on Fa1/12 *Mar 1 00:13:55.615: STP: VLAN10 Fa1/12 -> forwarding

DS12 mt t nht 2x10 = 20s hi t cc cng ca n. Cho ping lin tc v ct dy DS CS: o Port f1/2 ca AS111 (root trc khi ct dy):

o Port f1/1 ca AS111 (l root sau khi ct dy):

mng mt 38 5 = 33s c th tip tc ping li c. ***Cu hnh backbonefast:


DS12#debug spanning-tree events Spanning Tree event debugging is on *Mar 1 00:13:35.559: STP: VLAN10 new root port Fa1/12, cost 38 *Mar 1 00:13:35.579: STP: VLAN10 Fa1/12 -> listening *Mar 1 00:13:45.595: STP: VLAN10 Fa1/12 -> learning *Mar 1 00:13:55.611: STP: VLAN10 sent Topology Change Notice on Fa1/12 *Mar 1 00:13:55.615: STP: VLAN10 Fa1/12 -> forwarding

Khi t kt ni DS12 CS1, debug spanning tree event cho kt qu:

DS12#debug spanning-tree events Spanning Tree event debugging is on *Mar 1 01:33:38.079: STP: VLAN10 we are the spanning tree root *Mar 1 01:33:38.111: STP: VLAN10 heard root 8192-c208.1274.0001 on Fa1/1 *Mar 1 01:33:38.111: current Root has 49152-c200.15b0.0001 *Mar 1 01:33:38.111: supersedes 49152-c200.15b0.0001 *Mar 1 01:33:38.111: STP: VLAN10 new root is 8192, c208.1274.0001 on port Fa1/1, cost 9057 *Mar 1 01:33:38.111: STP: VLAN10 sent Topology Change Notice on Fa1/1 *Mar 1 01:33:38.155: STP: VLAN10 Fa1/2 -> blocking *Mar 1 01:33:38.171: STP: VLAN10 Fa1/3 -> blocking *Mar 1 01:33:38.311: STP: VLAN10 Fa1/4 -> blocking *Mar 1 01:33:38.515: STP: VLAN10 new root port Fa1/12, cost 6057 *Mar 1 01:33:38.515: STP: VLAN10 Fa1/1 -> blocking *Mar 1 01:33:40.111: STP: VLAN10 sent Topology Change Notice on Fa1/12

Mng h i t nhanh hn do b qua c 15s Max age timer.

Kim tra bng cch ping 2 PC thuc vlan 10 v ct dy: o Port f1/2 ca AS111 (ban u l root):

o Port f1/1 ca AS111 (l root sau khi ct du):

Mng ch cn 20 - 5 = 15s thit lp li ng truyn, gim c 33 15 = 18s so vi khi cha cu hnh backbonefast. 4. t kt ni CS CS a) VLAN 10 20 - Thng tin STP core CS2:
CS2#show spanning-tree vlan 10 br VLAN10 Spanning tree enabled protocol ieee Root ID Priority 8192 Address c208.1600.0001 Cost 38 Port 43 (FastEthernet1/2) Hello Time 2 sec Max Age 15 sec Bridge ID Priority 16384 Address c20a.1600.0001 Hello Time 2 sec Max Age 20 sec Aging Time 300

Forward Delay 10 sec

Forward Delay 15 sec

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet1/1 FastEthernet1/2 FastEthernet1/3 FastEthernet1/4 FastEthernet1/10

128.42 128.43 128.44 128.45 128.51

128 128 128 128 128

19 19 19 19 19

BLK FWD BLK BLK FWD

19 19 19 19 38

32768 32768 32768 32768 16384

c209.1600.0001 c200.1204.0001 c201.1204.0001 c202.1204.0001 c20a.1600.0001

128.53 128.53 128.53 128.53 128.51

CS2 chn port 1/2 lm root port v n c Bridge ID nh nht (do ac ch MAC ca DS12 nh nht so vi DS11, DS21 v DS22: C200 < C201 < C202 < C209)

b) VLAN 30 40 - Tng t nh trn, CS1 chn f1/2 lm root port v DS12 c a ch MAC nh nht:
CS1#show spanning-tree vlan 30 brief VLAN30 Spanning tree enabled protocol ieee Root ID Priority 8192 Address c20a.1600.0003 Cost 38 Port 43 (FastEthernet1/2) Hello Time 2 sec Max Age 20 sec Bridge ID Priority 16384 Address c208.1600.0003 Hello Time 2 sec Max Age 15 sec Aging Time 300

Forward Delay 15 sec

Forward Delay 10 sec

Interface Name -------------------FastEthernet1/1 FastEthernet1/2 FastEthernet1/3 FastEthernet1/4 FastEthernet1/10

Designated Port ID Prio Cost Sts Cost Bridge ID ------- ---- ----- --- ----- -------------------128.42 128 19 BLK 19 32768 c209.1600.0003 128.43 128 19 FWD 19 32768 c200.1204.0003 128.44 128 19 BLK 19 32768 c201.1204.0003 128.45 128 19 BLK 19 32768 c202.1204.0003 128.51 128 19 FWD 38 16384 c208.1600.0003

Port ID ------128.52 128.52 128.52 128.52 128.51

Kim tra thi gian h i t: gn thm 1 PC vo switch CS2 v ping PC1, ta kho st s h i t ca mng khi ct dy CS1 CS2.

Dng wireshark bt gi ping ICMP gi t PC9 sang PC1:

Mng cn 41 6 = 35s = 15 + 2x10, bng mt ln max age timer v (15s) hai ln forward delay timer (10s) port f1/2 ca CS2 chuyn t trng thi blocking sang forwarding. 5. 1 AS b down - V giao thc STP ch chy trn cc switch c h tr spanning tree nn khi k t ni PC switch b down, s h i t trong mng ch b thay i port ng vi dy b down. - Xt khi port f1/3 ca AS111 n i vi PC1 b down, sau khi ng li, cc STP event xy ra ti switch:
AS111(config)#int f1/3 AS111(config-if)#shut *Mar 1 06:17:22.354: STP: VLAN10 sent Topology Change Notice on Fa1/2 *Mar 1 06:17:22.458: STP: VLAN10 Fa1/3 -> blocking *Mar 1 06:17:24.350: %LINK-5-CHANGED: Interface FastEthernet1/3, changed state to administratively down *Mar 1 06:17:25.350: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/3, changed state to down AS111(config-if)#no shut *Mar 1 06:17:39.490: STP: VLAN10 Fa1/3 -> listening *Mar 1 06:17:42.370: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/3, changed state to up *Mar 1 06:17:49.502: STP: VLAN10 Fa1/3 -> learning AS111(config-if)# *Mar 1 06:17:59.518: STP: VLAN10 sent Topology Change Notice on Fa1/2 *Mar 1 06:17:59.522: STP: VLAN10 Fa1/3 -> forwarding

Switch mt 2x10 = 20s (t 06:17:39.490 ti 06:17:59.522) chuyn ngc li trng thi forwarding ** Cu hnh portfast Ta cu hnh portfast cho port f1/3 (n i vi my tnh) cho access switch AS111.
AS111(config)#int f1/3 AS111(config-if)#spanning-tree portfast

Kim tra bng cch cho shutdown v sau bt li cng f1/3. Kt qu:
AS111(config)#int f1/3 AS111(config-if)#spanning-tree portfast %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc.to this interface when portfast is enabled, can cause temporary spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet1/3 but will only

have effect when the interface is in a non-trunking mode. *Mar 1 02:20:17.591: Modified spanning port @ 66770EA0 AS111(config-if)#shut *Mar 1 02:20:36.039: STP: VLAN10 Fa1/3 -> blocking *Mar 1 02:20:36.043: Disabling spanning tree port @ 66770EA0 *Mar 1 02:20:36.043: Deleting spanning tree port @ 66770EA0 *Mar 1 02:20:36.043: stp_switch_shim: removing bpdu reception for port Fa1/3 vlan VLAN10 AS111(config-if)#no *Mar 1 02:20:37.983: %LINK-5-CHANGED: Interface FastEthernet1/3, changed state to administ ratively down *Mar 1 02:20:38.983: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/3, chan ged state to down AS111(config-if)#no shut *Mar 1 02:20:44.083: stp_switch_shim: setting up bpdu reception for port Fa1/3 vlan VLAN10 *Mar 1 02:20:44.087: Created spanning tree port @ 66770EA0 for tree @ 6773BEF0 *Mar 1 02:20:44.091: Enabling spanning tree port @ 66770EA0 *Mar 1 02:20:44.095: STP: VLAN10 Fa1/3 ->jump to forwarding from blocking *Mar 1 02:20:46.991: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/3, chan ged state to up

Port 1/3 ca switch lp access AS111 rt nhanh chng chuyn li trng thi forwarding, thay v phi ch 20s (2 ln forward delay timer cho trng thi learning v listenning) nh khi cha cu hnh portfast. 6. 1 DS b down - Gi s DS12 b down, xt VLAN 10: o Port f1/11 ca CS1 (ng i ca gi ICMP trc khi mng h i t):

o Port f1/12 ca CS1: (ng i ca gi ICMP sau khi mng h i t)

Thi gian h i t: 40 7 = 33s **Cu hnh uplinkfast Cu hnh v kim tra bng cch ping lin t c tng t nh trnh by trong mc 2. Kt qu: o Port f1/2 (ng i ca gi ICMP trc khi ct dy):

o Port f1/1 (ng i ca gi ICMP sau khi ct dy):

Mng cn 22 9 = 13s tip tc ping, gim c 33 13 = 20s so vi trc khi cu hnh uplinkfast. 20s ny l 2 ln forward timer, khi port trng thi listenning v learning.

7. 1 CS b down - Xt khi CS1 b down, s thay i trng thi ca DS12 (vlan 10):
DS12# *Mar 1 00:08:22.679: STP: VLAN10 heard root 32768-c203.15b0.0001 on Fa1/1 *Mar 1 00:08:22.683: current Root has 8192-c208.1274.0001 *Mar 1 00:08:22.731: STP: VLAN10 heard root 32768-c206.0d48.0001 on Fa1/2 *Mar 1 00:08:22.735: current Root has 8192-c208.1274.0001 *Mar 1 00:08:22.759: STP: VLAN10 heard root 32768-c207.0d48.0001 on Fa1/3 *Mar 1 00:08:22.759: current Root has 8192-c208.1274.0001 *Mar 1 00:08:22.795: STP: VLAN10 heard root 32768-c204.0d48.0001 on Fa1/4 *Mar 1 00:08:22.799: current Root has 8192-c208.1274.0001 *Mar 1 00:08:22.879: STP: VLAN10 heard root 16384-c20a.1274.0001 on Fa1/12 *Mar 1 00:08:22.883: current Root has 8192-c208.1274.0001 *Mar 1 00:08:23.627: STP: VLAN10 we are the spanning tree root *Mar 1 00:08:23.711: STP: VLAN10 Topology Change rcvd on Fa1/1 *Mar 1 00:08:23.759: STP: VLAN10 Topology Change rcvd on Fa1/2 *Mar 1 00:08:23.815: STP: VLAN10 Topology Change rcvd on Fa1/4 *Mar 1 00:08:23.931: STP: VLAN10 heard root 16384-c20a.1274.0001 on Fa1/12 *Mar 1 00:08:23.935: current Root has 32768-c200.15b0.0001 *Mar 1 00:08:23.935: supersedes 32768-c200.15b0.0001 *Mar 1 00:08:23.939: STP: VLAN10 new root is 16384, c20a.1274.0001 on port Fa1/12, cost 19 *Mar 1 00:08:23.943: STP: VLAN10 sent Topology Change Notice on Fa1/12 *Mar 1 00:08:23.963: STP: VLAN20 sent Topology Change Notice on Fa1/12 DS12# *Mar 1 00:08:25.783: STP: VLAN10 Topology Change rcvd on Fa1/3 *Mar 1 00:08:25.787: STP: VLAN10 sent Topology Change Notice on Fa1/12

CS1 ang l root bridge cho vlan 10, do b down nn khng gi gi BPDU na. sau thi gian ch Max age timer, cc switch bt u gi gi BPDU bu chn li root bridge. Sau khi bu chn, v CS2 c priority thp nht (ni vi DS12 bng cng f1/12 ) do lc ci t cu hnh lc ban u nn n tr thnh root cho vlan 10. Bt gi ping ICMP bng wireshark ti 2 port ni ln core switch ca distributor DS12: o Port f1/11 ca DS12: ng i ca gi ICMP trc khi mng h i t (ln CS1)

o Port f1/12 ca DS12: ng gi ICMP i sau k hi mng hi t (ln CS2)

Thi gian h i t (gia 2 ln ping thnh cng): 46 7 = 39s. **Cu hnh backbonefast v uplinkfast: Cu hnh backbonefast cho t t switch, uplinkfast cho cc switch thuc lp distributor v accessor:
DS11(config)#spanning-tree uplinkfast DS11(config)#spanning-tree backbone

Thc hin ping lin tc 2 PC trong vlan 10, cho shut down CS1 (root bridge) v dng wireshark quan st ng i ca gi ICMP:

o Port f1/11 ca DS12: ng i ca gi ICMP trc khi mng h i t (ln CS1)

o Port f1/12 ca DS12: ng gi ICMP i sau khi mng hi t (ln CS2)

Thi gian h i t ca mng (gia 2 ln ping thnh cng): 46 7 = 39s. Cu hnh backbonefast v uplinkfast khng gim c thi gian h i t trong trng hp root bridge b down. Nguyn nhn l do khi root down, trong mng khng cn BPDU t root na nn cc switch sau thi gian max age timer s gi gi BPDU t xung l root, v bt u bu chn t u. Trong cc trng hp trc, root vn gi BPDU ti cc switch nn n c th b qua 1 vi bc rt ngn thi gian h i t.

Вам также может понравиться