资源描述
MSTP原理与配置,Page1,前言,本课程介绍MSTP(多生成树协议)的原理与配置。MSTP用于解决启用了VLAN的交换网络中的环路问题。,Page2,培训目标,学完本课程后,您应该能:描述MSTP的基本概念描述MSTP高级配置,Page3,目录,MSTP基本概念MSTP高级配置,Page4,目录,MSTP基本概念MSTP高级配置,Page5,单个生成树的弊端部分VLAN路径不通,LANA,LANB,9300-A,9300-B,5300,VLAN2,VLAN3,Root,D,D,D,D,D,R,R,Discarding,A,VLAN2,此路径被断开,VLAN3路径不通,VLAN3,VLAN2,通过所有VLAN,Page6,单个生成树的弊端无法使用流量分担,LANA,LANB,9300-A,9300-B,5300,VLAN2,VLAN3,Root,D,D,D,D,D,R,R,Discarding,A,VLAN2,此路径被断开,不能流量分担,VLAN3,Page7,单个生成树的弊端次优二层路径,LANA,LANB,9300-A,9300-B,5300,VLAN2,VLAN3,Root,D,D,D,D,D,R,R,Discarding,A,VLAN2,创建VLAN3的三层接口,VLAN3,创建VLAN2的三层接口,VLAN3路径次优,Page8,MSTP基本概念多生成树实例(MSTInstance),LANA,LANB,9300-A,9300-B,5300,VLAN2,VLAN3,Root,D,D,D,D,D,R,R,Discarding,A,VLAN2,创建VLAN3的三层接口,VLAN3,创建VLAN2的三层接口,VLAN3路径次优,Page9,MSTP基本概念多生成树实例(MSTInstance),LANA,LANB,9300-A,9300-B,5300,VLAN2,VLAN3,D,D,D,D,R,R,A,Instance2的根交换机,Instance1:包含VLAN2,Instance2:包含VLAN3,Instance1的根交换机,D,R,A,D,D,R,D,Page10,MST配置表(MSTConfigurationTable),4096个两字节元素,此数值表示VLAN1所映射到的MSTInstance的MSTID,此数值表示VLAN4094所映射到的MSTInstance的MSTID,Page11,MSTP基本概念MST区域(MSTRegion),RegionA,RegionC,RegionB,Instance1的根交换机,Instance1:包含VLAN2,Instance1的根交换机,Instance1:包含VLAN2,Page12,MST配置标识(MSTConfigurationIdentifier),Page13,MSTInstance的基本计算过程,LANA,LANB,SWA,SWB,VLAN2,D,D,D,D,R,R,A,Instance1:VLAN2,MSTIRegionalRoot,4096.00e0-fc16-ee43,8192.00e0-fc41-4259,32768.00e0-fc41-43b9,SWC,Page14,MSTP基本配置物理拓扑,LANA,LANB,SWA,SWB,SWC,VLAN2,VLAN3,A,MSTIRegionalRoot,Instance1:VLAN2,Instance2:VLAN3,MSTIRegionalRoot,A,Trunk,Trunk,Trunk,E1/0/2,E1/0/3,E1/0/12,E1/0/13,E1/0/12,E1/0/13,E1/0/15,E1/0/15,Page15,MSTP基本配置配置SWA的MST域参数,SWAstpenableSWAstpmodemstpSWAstpregion-configurationSWA-mst-regionregion-nameRegionASWA-mst-regionrevision-level1SWA-mst-regioninstance1vlan2SWA-mst-regioninstance2vlan3SWA-mst-regionactiveregion-configurationSWA-mst-regionquitSWAstpinstance1priority4096SWAstpinstance2priority8192SWA,说明:SWB、SWC配置MST域参数类似,不再赘述。,Page16,MSTP基本配置设置RSTP点到点链路和边缘端口,SWAinterfaceEthernet1/0/12SWA-Ethernet1/0/12stppoint-to-pointforce-trueSWAinterfaceEthernet1/0/15SWA-Ethernet1/0/15stppoint-to-pointforce-true,SWBinterfaceEthernet1/0/13SWB-Ethernet1/0/13stppoint-to-pointforce-trueSWBinterfaceEthernet1/0/15SWB-Ethernet1/0/15stppoint-to-pointforce-true,SWCinterfaceEthernet1/0/12SWC-Ethernet1/0/12stppoint-to-pointforce-trueSWCinterfaceEthernet1/0/13SWC-Ethernet1/0/13stppoint-to-pointforce-trueSWCinterfaceEthernet1/0/2SWC-Ethernet1/0/2stpedged-portenableSWCinterfaceEthernet1/0/3SWC-Ethernet1/0/3stpedged-portenable,Page17,MSTP基本配置验证MSTP基本信息,SWAdisplaystpbriefMSTIDPortRoleSTPStateProtection0Ethernet1/0/12DESIFORWARDINGNONE0Ethernet1/0/15ROOTFORWARDINGNONE1Ethernet1/0/12DESIFORWARDINGNONE1Ethernet1/0/15DESIFORWARDINGNONE2Ethernet1/0/12DESIFORWARDINGNONE2Ethernet1/0/15ROOTFORWARDINGNONE,SWBdisplaystpbriefMSTIDPortRoleSTPStateProtection0Ethernet1/0/13DESIFORWARDINGNONE0Ethernet1/0/15DESIFORWARDINGNONE1Ethernet1/0/13DESIFORWARDINGNONE1Ethernet1/0/15ROOTFORWARDINGNONE2Ethernet1/0/13DESIFORWARDINGNONE2Ethernet1/0/15DESIFORWARDINGNONE,Page18,MSTP基本配置验证MSTP基本信息,SWCdisplaystpbriefMSTIDPortRoleSTPStateProtection0Ethernet1/0/2DESIFORWARDINGNONE0Ethernet1/0/3DESIFORWARDINGNONE0Ethernet1/0/12ALTEDISCARDINGNONE0Ethernet1/0/13ROOTFORWARDINGNONE1Ethernet1/0/2DESIFORWARDINGNONE1Ethernet1/0/12ROOTFORWARDINGNONE1Ethernet1/0/13ALTEDISCARDINGNONE2Ethernet1/0/3DESIFORWARDINGNONE2Ethernet1/0/12ALTEDISCARDINGNONE2Ethernet1/0/13ROOTFORWARDINGNONE,Page19,目录,MSTP基本概念MSTP高级配置,Page20,MSTP工作模式,SWBstpmodestpSWBstpmoderstpSWBstpmodemstp,SWBstpmcheck,Page21,设置交换机为主用/备用根交换机,SWAstpinstance0rootprimarySWAdisplaystpinstance0-CISTGlobalInfoModeMSTP-CISTBridge:0.000f-e212-f8e1BridgeTimes:Hello2sMaxAge20sFwDly15sMaxHop20CISTRoot/ERPC:0.000f-e212-f8e1/0CISTRegRoot/IRPC:0.000f-e212-f8e1/0CISTRootPortId:0.0CISTRootType:PRIMARYroot,SWBstpinstance0rootsecondarySWBdisplaystpinstance0-CISTGlobalInfoModeMSTP-CISTBridge:4096.000f-e212-f890BridgeTimes:Hello2sMaxAge20sFwDly15sMaxHop20CISTRoot/ERPC:0.000f-e212-f8e1/199999CISTRegRoot/IRPC:4096.000f-e212-f890/0CISTRootPortId:128.13CISTRootType:SECONDARYroot,Page22,配置MSTP最大跳数,SWAstpmax-hops30SWAdisplaystp-CISTGlobalInfoModeMSTP-CISTBridge:0.000f-e212-f8e1BridgeTimes:Hello2sMaxAge20sFwDly15sMaxHop30CISTRoot/ERPC:0.000f-e212-f8e1/0CISTRegRoot/IRPC:0.000f-e212-f8e1/0CISTRootPortId:0.0BPDU-Protection:disabledCISTRootType:PRIMARYrootTCorTCNreceived:3TimesincelastTC:0days1h:23m:36s,Page23,调整时间参数,SWAstptimer?forward-delaySpecifyforwarddelayhelloSpecifyhellotimeintervalmax-ageSpecifymaxage,SWAstptimer-factor?INTEGERAgedouttimefactor,Page24,网络直径与时间参数的关系,SWAstpbridge-diameter?INTEGERBridgediameter,Page25,配置边缘端口保护,SWAstpbpdu-protectionSWASWAdisplaystp-CISTGlobalInfoModeMSTP-CISTBridge:32768.000f-e212-f8e1BridgeTimes:Hello2sMaxAge20sFwDly15sMaxHop20CISTRoot/ERPC:32768.000f-e212-f8e1/0CISTRegRoot/IRPC:32768.000f-e212-f8e1/0CISTRootPortId:0.0BPDU-Protection:enabledTCorTCNreceived:0TimesincelastTC:0days1h:19m:5s,Page26,配置根交换机的指定端口保护,SWAstpinterfaceEthernet1/0/13root-protectionSWASWAdisplaystpinterfaceEthernet1/0/13-CISTPort13(Ethernet1/0/13)FORWARDING-PortProtocol:enabledPortRole:CISTDesignatedPortPortPriority:128PortCost(Dot1T):Config=auto/Active=199999Desg.Bridge/Port:0.000f-e212-f8e1/128.13PortEdged:Config=disabled/Active=disabledPoint-to-point:Config=auto/Active=trueTransitLimit:3packets/hello-timeProtectionType:RootNumofVlansMapped:1PortTimes:Hello2sMaxAge20sFwDly15sRemHop0BPDUSent:18TCN:0,Config:0,RST:0,MST:18BPDUReceived:0TCN:0,Config:0,RST:0,MST:0,Page27,配置环路保护功能,SWBstpinterfaceEthernet1/0/13loop-protectionSWBSWBdisplaystpinterfaceEthernet1/0/13-CISTPort13(Ethernet1/0/13)FORWARDING-PortProtocol:enabledPortRole:CISTRootPortPortPriority:128PortCost(Dot1T):Config=auto/Active=199999Desg.Bridge/Port:0.000f-e212-f8e1/128.13PortEdged:Config=disabled/Active=disabledPoint-to-point:Config=auto/Active=trueTransitLimit:3packets/hello-timeProtectionType:LoopNumofVlansMapped:1PortTimes:Hello2sMaxAge20sFwDly15sRemHop0BPDUSent:6TCN:0,Config:0,RST:0,MST:6BPDUReceived:705TCN:0,Config:0,RST:0,MST:705,Page28,配置TC-BPDU保护功能,SWBstptc-protection?disableTCprotectionfunctiondisableenableTCprotectionfunctionenable,Page29,问题,MST配置标识包括几部分?CIST包括几部分?Master端口有什么作用?,Page30,总结,MSTP概念MSTP基本配置,
展开阅读全文