生成树典型配置举例_第1页
生成树典型配置举例_第2页
生成树典型配置举例_第3页
生成树典型配置举例_第4页
生成树典型配置举例_第5页
已阅读5页,还剩23页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

H3CS5130-EICopyright©2014杭H3CS5130-EICopyright©2014杭通信技和个人不得擅自摘抄,保留一切权利本文档内容的部分或全部非经本并不得。本文档中的信息可能变动,恕不另行通知目录简 目录简 配置前 组网需 配置思 使用版 配置步 配置Device 配置Device 配置Device 配置Device 验证配 配置文 组网需 配置思 使用版 配置步 配置Device 配置Device 配置Device 配置Device 验证配 配置文 组网需 配置思 使用版 配置步 配置Device 配置Device 配置Device 配置DeviceD、 i验证配验证配 配置文 相关资 12。312。3层设备,DeviceCDeviceDDeviceCDeviceDVLAN11~20报文、VLAN21~30DeviceADeviceB,实现流量负载分担和链路备份MSTP图MSTDeviceDevicePermit:VLAN11toVLAN11-20VLAN21-30DeviceDevice1MST(修订级别(缺省为0,无需配置表(VLANMSTI1,VLANMSTI为了使MSTIMST(修订级别(缺省为0,无需配置表(VLANMSTI1,VLANMSTI为了使MSTI1和MSTI2拓扑中的上行链路不同并互相作为冗余备份,配置DeviceA为1的根桥,DeviceB为MSTI2的根桥。另外,本例中配置DeviceA、B、C、D在MSTI0的优先级依次降低,使DeviceA成为IST2所示。各VLAN对应的生成树实例的拓图0.7425-8a02-A32768.0cda-41b1-B32768.7425-8a02-A0.0cda-41b1-BC32768.00e0-fc00-D32768.7425-8a0f-CD32768.7425-8a0f-32768.00e0-fc00-VLAN11-20对应的MSTIVLAN21-30对应的MSTI0.7425-8a02-A4096.0cda-41b1-B未被协议阻断的链CD被协议阻断的链32768.00e0-fc00-36864.7425-8a0f-其他VLAN对应的MSTI本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的3.4.1配置Device#vlan11to30erfacerangegigabitethernet1/0/1togigabitethernet[DeviceA-if-range]portlink-type2MSTporttrunkpermitvlan11totestVLANMSTI1,VLANMSTI2[DeviceA]stpMSTporttrunkpermitvlan11totestVLANMSTI1,VLANMSTI2[DeviceA]stpregion-region-nametestinstance1vlan11toinstance2vlan21to30activeregion-configurationMSTI01[DeviceA]stpinstance0to1root[DeviceA]stpglobal配置Device#vlan11to30erfacerangegigabitethernet1/0/1togigabitethernetMSTportlink-typeporttrunkpermitvlan11to30testVLANMSTI1,VLANMSTI2[DeviceB]stpregion-region-nametestinstance1vlan11toinstance2vlan21to30activeregion-configurationMSTI2MSTI0[DeviceB]stpinstance2rootprimary[DeviceBstpinstance0rootsecondary#全局使能生成树协议。[DeviceB]stpglobal配置Device#vlan11to30erfacerangegigabitethernet1/0/1togigabitethernetMSTportlink-typeporttrunkpermitvlan11to30testVLANMSTI1,VLANMSTI23[DeviceC]stpregion-region-nametestinstance1vlan11toinstance2vlan21toactiveregion-configuration[DeviceC]stpglobal配置Device[DeviceC]stpregion-region-nametestinstance1vlan11toinstance2vlan21toactiveregion-configuration[DeviceC]stpglobal配置Device#vlan11to30erfacerangegigabitethernet1/0/1togigabitethernetMSTportlink-typeporttrunkpermitvlan11to30testVLANMSTI1,VLANMSTI2[DeviceD]stpregion-#配置本设备在region-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration0的优先级为36864,从而使本设备在MSTI0Device32768[DeviceD]stpinstance0priority[DeviceD]stpglobal3.5DeviceAdisplaystpbrief00111STPe224 ALTEDISCARDINGDeviceBdisplaystpbrief001STPe1222DeviceCdisplaystp0STPeDeviceBdisplaystpbrief001STPe1222DeviceCdisplaystp0STPe1122DeviceDdisplaystpSTPe012根据上述显示信息中的Alternate端口(阻塞端口,可以绘出各VLAN所对应MSTI5 ALTEDISCARDING ALTEDISCARDING ALTEDISCARDING ALTEDISCARDING ALTEDISCARDING图3MSTI0~2可以看到,DeviceCDeviceDVLAN11~20VLAN21~30DeviceCGE1/0/1图3MSTI0~2可以看到,DeviceCDeviceDVLAN11~20VLAN21~30DeviceCGE1/0/1(DeviceCMSTI0~1中的上行链路所在端口DeviceA、B、C、D上生成树的简要信息displaystpbriefdisplaystpbriefdisplaystpbrief01122STPe00111222STPe1STPe62displaystpbriefSTPe012根据上述显示信息中的Alternate端口(阻塞端口,可以绘出各VLAN所对应MSTI42displaystpbriefSTPe012根据上述显示信息中的Alternate端口(阻塞端口,可以绘出各VLAN所对应MSTI4图4MSTI0~2可以看到,DeviceCMSTI0~1GE1/0/1GE1/0/23.6##Device111tostpregion-configurationregion-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration#stpinstance0to1root7 ALTEDISCARDING ALTEDISCARDING ALTEDISCARDINGstpglobalenableerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/2portlink-typetrunkstpglobalenableerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/3portlink-typetrunkporttrunkpermitvlan111###Device111tostpregion-configurationregion-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration##instance0rootinstance2rootprimaryglobalenableerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/3portlink-typetrunkporttrunkpermitvlan111###Device111to8stpregion-configurationregion-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration#stpglobalstpregion-configurationregion-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration#stpglobalenableerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan111###Device111tostpregion-configurationregion-nametestinstance1vlan11toinstance2vlan21to30activeregion-configuration#stpinstance0priority36864stpglobalenable#erfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan111toerfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan111#DeviceADeviceB为汇聚层设备,DeviceCDeviceD为接入层设备。9图VLAN10、20、30中的报文分别按图VLAN10、20、30中的报文分别按照其VLAN所对应的生成树转发PVSTVLANVLANVLAN所DeviceAVLAN1030对应生成树的根桥,DeviceBVLAN20对应生成树的根桥。当设备在指定VLAN中被配置为根桥时,其优先级强制变为0;由于各端口路径开销相同,根据STP算法可以得到各VLAN6所示。图各VLAN所对应生成树的拓扑4.3本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的4.44.4.1配置Device#4.3本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的4.44.4.1配置Device#<DeviceA>system-view[DeviceA]vlan10vlanvlan30erfacelink-typetrunktrunkpermitvlanerfacelink-typetrunktrunkpermitvlanerfacelink-typetrunktrunkpermitvlanPVST[DeviceA]stpmodeVLAN1030[DeviceA]stpvlan1030root[DeviceA]stpglobal配置Device#<DeviceB>system-view[DeviceB]vlan10vlanvlan30erfacelink-typetrunkpermitvlan20erfacelink-typetrunkpermitvlan10erfacelink-typetrunkpermitvlanlink-typetrunkpermitvlan10erfacelink-typetrunkpermitvlan1020PVST[DeviceB]stpmodeVLAN20[DeviceB]stpvlan20root[DeviceB]stpglobal配置DeviceVLAN1020TrunkVLAN<DeviceC>system-view[DeviceC]vlan10[DeviceC-vlan10]vlan[DeviceC-vlan20]erfacerangegigabitethernet1/0/1gigabitethernetportlink-typeporttrunkpermitvlan1020PVST[DeviceC]stpmode[DeviceC]stpglobal配置DeviceVLAN2030TrunkVLAN<DeviceD>system-view[DeviceD]vlan20[DeviceD-vlan20]vlan[DeviceD-vlan30]erfacerangegigabitethernet1/0/1gigabitethernetportlink-typeporttrunkpermitvlan2030PVST[DeviceD]stpmode[DeviceD]stpglobalDeviceAdisplaystpbrief11STPeDeviceBdisplaystpbrief11STPeDeviceAdisplaystpbrief11STPeDeviceBdisplaystpbrief11STPeDeviceCdisplaystpbrief1STPeDeviceDdisplaystpbrief1STPe ALTEDISCARDING ALTEDISCARDING ALTEDISCARDING ALTEDISCARDING根据上述显示信息中VLAN10、2030的Alternate端口(阻塞端口,可以绘出各VLAN所对应7所示。图根据上述显示信息中VLAN10、2030的Alternate端口(阻塞端口,可以绘出各VLAN所对应7所示。图7VLAN10、20、30可以看到,PVSTVLANVLAN##Device1vlan1030rootprimarymodepvstglobalerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan11020erfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan120#erfaceGigabitEthernet1/0/3portlink-typetrunkporttrunkpermitvlan110###erfaceGigabitEthernet1/0/3portlink-typetrunkporttrunkpermitvlan110###Device1vlan20rootprimarymodepvstglobalerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan12030erfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan11020erfaceGigabitEthernet1/0/3portlink-typetrunkporttrunkpermitvlan110###Device1modeglobalerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan11020erfaceportlink-typeporttrunkpermitvlan110###Device1porttrunkpermitvlan110###Device1modeglobalerfaceGigabitEthernet1/0/1portlink-typetrunkporttrunkpermitvlan12030erfaceGigabitEthernet1/0/2portlink-typetrunkporttrunkpermitvlan120#5RSTPDeviceA层设备,DeviceB、DeviceC为汇聚层设备,DeviceD、DeviceERSTPDeviceADeviceCDeviceBDeviceBDeviceCDeviceD、EBPDU图RSTPDeviceCDeviceBDeviceB图RSTPDeviceCDeviceBDeviceBDeviceB的优先级为4096,DeviceC8192A的MAC地址小于DeviceB(如9所示,配置DeviceA4096就可以使它成为stprootprimarystppriority00可以在完成本例的配置步骤后,在各设备上用displaystpbrief命令查找角色为DESI或者根据STP图9RSTP4096.0000-fc00-A未被协议阻断的链8192.0cda-41b1-被协议阻断的链4096.7425-8a02-BC指定端阻塞端DE图9RSTP4096.0000-fc00-A未被协议阻断的链8192.0cda-41b1-被协议阻断的链4096.7425-8a02-BC指定端阻塞端DE32768.00e0-fc00-32768.7425-8a0f-5.3本举例是在S5130EI_E-CMW710-R3106版本上进行配置和验证的5.45.4.1配置DeviceRSTP<DeviceA>system-view[DeviceA]stpmoderstp4096[DeviceA]stppriority[DeviceA]stpglobalDeviceB、Cerfacerangegigabitethernet1/0/1[DeviceA-if-range]stp[DeviceA-if-range]配置DeviceRSTP<DeviceB>system-view[DeviceB]stpmoderstp4096[DeviceB]stppriority[DeviceB]stpglobalerfacerange[DeviceB-if-range]stp[DeviceB-if-range]配置DeviceRSTP<DeviceC>system-view[DeviceC]stpmoderstp8192[DeviceC]stppriority[DeviceC]stpglobalerfacerange[DeviceB-if-range]stp[DeviceB-if-range]配置DeviceRSTP<DeviceC>system-view[DeviceC]stpmoderstp8192[DeviceC]stppriority[DeviceC]stpglobalerfacerange[DeviceC-if-range]stp[DeviceC-if-range]配置DeviceD、DeviceD、EDeviceDRSTP<DeviceD>system-view[DeviceDstpmoderstp#全局使能生成树协议。[DeviceD]stpglobal#将与用户直接相连的端口配置为边缘端口(此处仅以BPDU保护功能,并使能erfacegigabitethernet[DeviceD-GigabitEthernet1/0/4]stpedged-port[DeviceD-GigabitEthernet1/0/4]quit[DeviceD]stp5.5DeviceAdisplaystpbrief0STPeFORWARDINGFORWARDINGDeviceB[DeviceB]displaystpMSTSTPe0000DeviceCdisplaystpbrief0STPe0DeviceDdisplaystpbrief0STPe0DeviceEdisplaystpSTPe000000DeviceCdisplaystpbrief0STPe0DeviceDdisplaystpbrief0STPe0DeviceEdisplaystpSTPe00,可以绘出10所示。图10RSTPA根设未被协议阻断的链BC被协指定端DE阻塞端初始状态,DeviceDDeviceA[DeviceD]display-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:32768.00e0-fc00-:o2sMaxAge20sFwdDelay15sMaxHops ALTEDISCARDING ALTEDISCARDING ALTEDISCARDINGRoot :4096.0000-fc00-47cd,RegRoot:32768.00e0-fc00-c518,可以看到,DeviceDIDDeviceAID#DeviceD0(DeviceA的优先级更高DeviceD认为自己是根桥,并往Root :4096.0000-fc00-47cd,RegRoot:32768.00e0-fc00-c518,可以看到,DeviceDIDDeviceAID#DeviceD0(DeviceA的优先级更高DeviceD认为自己是根桥,并往外发送根桥ID0.00e0-fc00-c518BPDU[DeviceD]stppriority0[DeviceD]displaystp-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:0.00e0-fc00-:o2sMaxAge20sFwdDelay15sMaxHopsRoot :0.00e0-fc00-c518,RegRoot:0.00e0-fc00-c518,#DeviceE0ID0.7425-8a0f-8000BPDU。[DeviceE]stppriority0[DeviceE]displaystp-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:0.7425-8a0f-:o2sMaxAge20sRoot :0.7425-8a0f-8000,RegRoot:0.7425-8a0f-8000,DeviceB、C[DeviceB]display-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:4096.7425-8a02-:o2sMaxAge20sRoot :4096.0000-fc00-47cd,RegRoot:4096.7425-8a02-4c00,[DeviceC]display-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:8192.0cda-41b1-:o2sMaxAge20sRoot :4096.0000-fc00-47cd,RegRoot:8192.0cda-41b1-d1c0,DeviceB、CIDDeviceAIDDeviceB、CDeviceD、EBPDU影响。#DeviceB的指定端口(DeviceEGigabitEthernet1/0/2)去掉根保护功DeviceBDeviceA失去根桥的地位,引起网络拓扑结构的错误变动。erfacegigabitethernet[DeviceB-GigabitEthernet1/0/2]undostp[DeviceB-GigabitEthernet1/0/2]display-------[CISTBridgeIDBridgetimesInfo][ModeRSTP]------:4096.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论