
实验三多生成树MSTP配置SW1SW2Ethernet a/oiEthernet 010/11Ethernet 0/02Ethernet 0/02Ethernet 0/2Ethernet o10/Ehernet onwaEthermet O/4Ethernet ovonEthernetoonPC1PC2Vlan3Vlan230.1.1.120.1.1.11:交换基本配置部分[SW1]vlanbatch23[SW2]vlanbatch23[SW3]vlanbatch23[SW3]inter:e0/0/3[SW3-Ethernet0/0/3]port link-t acce[SW3-Ethernet0/0/3]portdefavlan2[SW3-Ethernet0/0/3]inter e0/0/4[SW3-Ethernet0/0/4]port link-tacc[SW3-Ethernet0/0/4]port defavlan3[SWi]inter e0/0/][SWI-Etherneto/0/1]port link-t tr[SWI-Etherneto/o/1lport tru all vlan all[SW1-Ethernet0/0/1]intere0/0/2[SW1-Ethernet0/0/2]port link-t tr[SW1-Etherneto/0/2]port tru all vlan all[SW2]inter e0/0/1[SW2-Ethernet0/0/1]port link-t tr64

http://edu.51cto.com/lecturer/532091.html[SW2-Etherneto/0/]port truall vlan all[SW2-Ethernet0/0/1]intere0/0/2[SW2-Ethernet0/0/2]port link-t tr[SW2-Ethernet0/0/2]port tru all vlan al][SW3]inter e0/0/1[SW3-Ethernet0/o/1lport link-t tr[SW3-Etherneto/o/1lport truall vlan all[SW3-Ethernet0/0/1]inter-e0/0/2[SW3-Etherneto/0/2]portlink-ttr[SW3-Ethernet0/0/2]porttruall vlan al]2:查看默认MSTP的运行情况[swi]dis stpInfo] [Mode MSTP]------[CISTGlobal-CIST Bridge:32768.4c1f-cc9b-0aea:Hello 2s MaxAge 20sFwDly15s MaxHop 20Config TimesActive Times:Hello2s MaxAge 20s FwDly15sMaxHop20CIST ROOt/ERPC:32768.4c1f-cc01-73411/200000CIST RegRoot/IRPC:32768.4c1f-cc9b-0aea/0CIST RootPortId:128.2BPDU-Protection:Disabled:8TC or TCN receivedTCcount per hello:0:NormalSTP Converge ModeTime since last TC:0daysOh:9m:2sNumber of TC:5:Ethernet0/0/2Last Tc occurred[swi]dis stp briPortMSTIDRoleSTP StateProtection0Etherneto/o/1DESIFORWARDINGNONEDNONEEthernet0/0/2ROOTFORWARDING[Sw2]dis stpbriMSTIDPortRoleSTP stateProtection0Ethernet0/0/1ALTRDISCARDINGNONE0NONEEthernet0/0/2ROOTFORWARDING65

http://edu.51cto.com/lecturer/532091.html[Sw3]disstpbriPortRoleSTP StateProtectionMSTID0Ethernet0/0/1DESINONEFORWARDING0NONEEthernet0/0/2DESIFORWARDING0Ethernet0/0/3DESIFORWARDINGNONE0Etherneto/0/4DESIFORWARDINGNONE3:配置MSTP[SWi]stp region-configuration[SWi-mst-region]region-name xiaoniu[SWl-mst-region]revision-level 1[SWl-mst-region]instance 1 vlan 2[SW1-mst-region]instance 2 vlan 3[SWl-mst-region]active region-configuration[SW2]stp region-configuration[SW2-mst-region]region-name xiaoniu[SW2-mst-region]revision-level 1[SW2-mst-region]instance I vlan 2[SW2-mst-region]instance 2vlan 3[SW2-mst-region]active region-configuration[Sw3]stp region-configuration[SW3-mst-region]region-name-xiaoniu[SW3-mst-region]revision-level |[SW3-mst-region]instance 1 vlan 2[SW3-mst-region]instance2vlan 3[SW3-mst-region]active re[SW3-mst-regionlactive region-configuration4:配置MSTP根交换机和备份根交换机[SWi]stp instance 1 root primary[SW1]stp instance 2 root secondary[sw2]stp instance I root secondary[Sw2]stp instance 2 root primary5查看MSTP实现的负载均衡[Swi]dis stp ins 1--[MSTI 1 Global Info]--MSTI Bridge ID:0.4c1f-cc9b-0aeaMSTIRegRoot/IRPC:0.4c1f-cc9b-0aea/0MSTIRootPortId:0.0MSTI:PrimaryrootRoot Type66

http://edu.51cto.com/lecturer/532091.html[SW2]dis stpins 2--[MSTI2GlobalInfo]--MSTI Bridge ID:0.4c1f-ccf0-2dc8MSTIRegRoot/IRPC:0.4c1f-ccf0-2dc8/0:0.0MSTIRootPortId福MSTIRootType:Primaryroot[sw3]disstpins1briRoleSTP StateProtectionMSTIDPort1Ethernet0/0/1ALTEDISCARDINGNONE1zthernet0/0/2ROOTFORWARDINGNONE1NONEEthernet0/0/3DESIFORWARDING[8w3][sw3]disstpins2briRolesTp stateProtectionMSTIDPort2NONEEtherneto/o/1ROOTFORWARDING22Ethernet0/0/2ALTEDISCARDINGNONEEthernet0/0/4DESINONEFORWARDING0