您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > H3C实验报告大全【含18个实验】7-多生成树MSTP
多生成树-MSTP目录:一.单域多生成树的配置二.多域生成树的配置一.单域多生成树的配置实验目的:创建多生成树的域创建实例----相当于捆绑在一起的vlan实现负载均衡实验步骤开启STP---创建vlan---配置的MST域---开启trunk链路[gaocw1]vlan2to30//创建vlan2到30请等待......完成.[gaocw1]stpenable//开启生成树协议[gaocw1]stpregion-configuration//进入MST域视图[gaocw1-mst-region]region-namewang//配置MST域名[gaocw1-mst-region]instance1vlan2to10//配置生成树实例[gaocw1-mst-region]instance2vlan11to20[gaocw1-mst-region]instance3vlan21to30[gaocw1-mst-region]activeregion-configuration此处我没有设置修订值,因为默认修订值都是0,不影响我们设置单域!介绍几个域内的命令checkregion-configuration:本命令用来显示尚未激活的MST域的配置信息,revision-level:命令用来配置交换机的MSTP修订级别缺省情况下MST域的三个参数:1.MST域名为交换机的第一个MAC地址2.所有VLAN均对应到CIST上,也就是实例03.MSTP修订级别取值为0注意:1.要想网络内的实例在同一个MST域,上面的三个参数必须相同!2.每修改一次MST域,就必须激活一次!查看MST与的信息[gaocw1]displaystpregion-configuration操作值:格式选择符:0域名:wang修订级别:0实例映射的VLAN01,31to409412to10211to20321to30[gaocw1]inte1/0/2[gaocw1-Ethernet1/0/2]portlink-typetrunk[gaocw1-Ethernet1/0/2]porttrunkpermitvlanall请等待...........................................完成.[gaocw1-Ethernet1/0/6]portlink-typetrunk[gaocw1-Ethernet1/0/6]porttrunkpermitvlanall请等待...........................................完成.配置sw2的过程同sw1[gaocw2]vlan2to30请等待......完成.[gaocw2]stpenable%2000/4/200:07:15:646gaocw2MSTP/3/STPSTART:-1-设备启用生成树功能[gaocw2]stpregion-configuration[gaocw2-mst-region]region-namewang[gaocw2-mst-region]instance1vlan2to10[gaocw2-mst-region]instance2vlan11to20[gaocw2-mst-region]instance3vlan21to30[gaocw2-mst-region]activeregion-configuration[gaocw2]displaystpregion-configuration操作值:格式选择符:0域名:wang修订级别:0实例映射的VLAN01,31to409412to10211to20321to30[gaocw2]inte1/0/2[gaocw2-Ethernet1/0/2]portlink-typetrunk[gaocw2-Ethernet1/0/2]porttrunkpermitvlanall请等待...........................................完成.[gaocw2]inte1/0/4[gaocw2-Ethernet1/0/4]portlink-typetrunk[gaocw2-Ethernet1/0/4]porttrunkpermitvlanall请等待...........................................完成.配置sw3的过程同sw1[H3C]sysgaocw3[gaocw3]stpenable%2000/4/200:14:33:275gaocw3MSTP/3/STPSTART:-1-设备启用生成树功能[gaocw3]vlan2to30请等待......完成.[gaocw3]stpregion-configuration[gaocw3-mst-region]region-namewang[gaocw3-mst-region]instance1vlan2to10[gaocw3-mst-region]instance2vlan11to20[gaocw3-mst-region]instance3vlan21to30[gaocw3-mst-region]activeregion-configuration[gaocw3]displaystpregion-configuration操作值:格式选择符:0域名:wang修订级别:0实例映射的VLAN01,31to409412to10211to20321to30[gaocw3]inte1/0/4[gaocw3-Ethernet1/0/4]portlink-typetrunk[gaocw3-Ethernet1/0/4]porttrunkpermitvlanall请等待...........................................完成.[gaocw3]inte1/0/6[gaocw3-Ethernet1/0/6]portlink-typetrunk[gaocw3-Ethernet1/0/6]porttrunkpermitvlanall请等待...........................................完成.当我们都设置完后,就可以看一下配置的情况,从sw1看起![gaocw1]displaystpbriefMSTID端口角色STP状态保护类型0Ethernet1/0/2ROOTFORWARDINGNONE0Ethernet1/0/6ALTEDISCARDINGNONE1Ethernet1/0/2ROOTFORWARDINGNONE1Ethernet1/0/6ALTEDISCARDINGNONE2Ethernet1/0/2ROOTFORWARDINGNONE2Ethernet1/0/6ALTEDISCARDINGNONE3Ethernet1/0/2ROOTFORWARDINGNONE3Ethernet1/0/6ALTEDISCARDINGNONE[gaocw2]displaystpbriefMSTID端口角色STP状态保护类型0Ethernet1/0/2DESIFORWARDINGNONE0Ethernet1/0/4DESIFORWARDINGNONE1Ethernet1/0/2DESIFORWARDINGNONE1Ethernet1/0/4DESIFORWARDINGNONE2Ethernet1/0/2DESIFORWARDINGNONE2Ethernet1/0/4DESIFORWARDINGNONE3Ethernet1/0/2DESIFORWARDINGNONE3Ethernet1/0/4DESIFORWARDINGNONE[gaocw3]displaystpbriefMSTID端口角色STP状态保护类型0Ethernet1/0/4ROOTFORWARDINGNONE0Ethernet1/0/6DESIFORWARDINGNONE1Ethernet1/0/4ROOTFORWARDINGNONE1Ethernet1/0/6DESIFORWARDINGNONE2Ethernet1/0/4ROOTFORWARDINGNONE2Ethernet1/0/6DESIFORWARDINGNONE3Ethernet1/0/4ROOTFORWARDINGNONE3Ethernet1/0/6DESIFORWARDINGNONE总结,此时我们看到的是--sw2是所有实例的跟桥,包括系统自动生成的实例0所以不符合我们所说的负责均衡!接下来,实现MSTP的负载均衡功能[gaocw1]inte1/0/1[gaocw1-Ethernet1/0/1]stpedged-portenable//配置连接终端设备的端口为域边界端口![gaocw1]stpinstance2root?primary主根交换机secondary备份根交换机[gaocw1]stpinstance2rootprimary//让sw1为实例二的主根桥,[gaocw1]stpinstance3rootsecondary//让sw1为实例三的备份跟桥。[gaocw3]stpinstance2rootsecondary//让sw3为实例二的备份跟桥[gaocw3]stpinstance3rootprimary//让sw1为实例三的主根桥现在查看----就实现了负载分担功能[gaocw2]displaystpbriefMSTID端口角色STP状态保护类型0Ethernet1/0/2DESIFORWARDINGNONE0Ethernet1/0/4DESIFORWARDINGNONE1Ethernet1/0/2DESIFORWARDINGNONE1Ethernet1/0/4DESIFORWARDINGNONE2Ethernet1/0/2ROOTFORWARDINGNONE2Ethernet1/0/4ALTEDISCARDINGNONE3Ethernet1/0/2ALTEDISCARDINGNONE3Ethernet1/0/4ROOTFORWARDINGNONE[gaocw1]displaystpbriefMSTID端口角色STP状态保护类型0Ethernet1/0/2ROOTFORWARDINGNONE0Ethernet1/0/6ALTEDISCARDINGNONE1Ethernet1/0/2ROOTFORWARDINGNONE1Ethernet1/0/6ALTEDISCARDINGNONE2Ethernet1/0/2DESIFORWARDINGNONE2Ethernet1/0/6DESIFORWARDINGNONE3Ethernet1/0/2DESIFORWARDINGNONE3Ethernet1/0/6ROOTFORWARDINGNONE二.多域生成树的配置通过此拓扑来实现多区域的生成树设置上图的补充,因为模拟器没有合适的实验拓扑。实验步骤开启stp--创建vlan---配置mstp域---开启trunk链路配置sw1,--实例2to5-----域名:wnt[sw1]vlan2to30Pleasewait...Done.[sw1]stpregion-configuration[sw1-mst-region]instance1vlan2to5[sw1-mst-region]region-namewnt[sw1-mst-region]activeregion-configuration[sw1]displaystpregion-configurationOperconfigurationFormatselector:0Regionname:wntRevisionlevel:0InstanceVlansMapped01,6to409412to5sw1]inte0/4/4[sw1-Ethernet0/4/4]portlink-typetrunk[sw1-Ethernet0/4/4]porttrunkpermitvlanall[sw1]int
本文标题:H3C实验报告大全【含18个实验】7-多生成树MSTP
链接地址:https://www.777doc.com/doc-5787214 .html