H3C实验报告大全含18个实验7多生成树MSTP.docx
《H3C实验报告大全含18个实验7多生成树MSTP.docx》由会员分享,可在线阅读,更多相关《H3C实验报告大全含18个实验7多生成树MSTP.docx(18页珍藏版)》请在冰豆网上搜索。
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与的信息
[gaocw1]displaystpregion-configuration
操作值:
格式选择符:
0
域名:
wang
修订级别:
0
实例映射的VLAN
01,31to4094
12to10
211to20
321to30
[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
实例映射的VLAN
01,31to4094
12to10
211to20
321to30
[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
实例映射的VLAN
01,31to4094
12to10
211to20
321to30
[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]displaystpbrief
MSTID端口角色STP状态保护类型
0Ethernet1/0/2ROOTFORWARDINGNONE
0Ethernet1/0/6ALTEDISCARDINGNONE
1Ethernet1/0/2ROOTFORWARDINGNONE
1Ethernet1/0/6ALTEDISCARDINGNONE
2Ethernet1/0/2ROOTFORWARDINGNONE
2Ethernet1/0/6ALTEDISCARDINGNONE
3Ethernet1/0/2ROOTFORWARDINGNONE
3Ethernet1/0/6ALTEDISCARDINGNONE
[gaocw2]displaystpbrief
MSTID端口角色STP状态保护类型
0Ethernet1/0/2DESIFORWARDINGNONE
0Ethernet1/0/4DESIFORWARDINGNONE
1Ethernet1/0/2DESIFORWARDINGNONE
1Ethernet1/0/4DESIFORWARDINGNONE
2Ethernet1/0/2DESIFORWARDINGNONE
2Ethernet1/0/4DESIFORWARDINGNONE
3Ethernet1/0/2DESIFORWARDINGNONE
3Ethernet1/0/4DESIFORWARDINGNONE
[gaocw3]displaystpbrief
MSTID端口角色STP状态保护类型
0Ethernet1/0/4ROOTFORWARDINGNONE
0Ethernet1/0/6DESIFORWARDINGNONE
1Ethernet1/0/4ROOTFORWARDINGNONE
1Ethernet1/0/6DESIFORWARDINGNONE
2Ethernet1/0/4ROOTFORWARDINGNONE
2Ethernet1/0/6DESIFORWARDINGNONE
3Ethernet1/0/4ROOTFORWARDINGNONE
3Ethernet1/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]displaystpbrief
MSTID端口角色STP状态保护类型
0Ethernet1/0/2DESIFORWARDINGNONE
0Ethernet1/0/4DESIFORWARDINGNONE
1Ethernet1/0/2DESIFORWARDINGNONE
1Ethernet1/0/4DESIFORWARDINGNONE
2Ethernet1/0/2ROOTFORWARDINGNONE
2Ethernet1/0/4ALTEDISCARDINGNONE
3Ethernet1/0/2ALTEDISCARDINGNONE
3Ethernet1/0/4ROOTFORWARDINGNONE
[gaocw1]displaystpbrief
MSTID端口角色STP状态保护类型
0Ethernet1/0/2ROOTFORWARDINGNONE
0Ethernet1/0/6ALTEDISCARDINGNONE
1Ethernet1/0/2ROOTFORWARDINGNONE
1Ethernet1/0/6ALTEDISCARDINGNONE
2Ethernet1/0/2DESIFORWARDINGNONE
2Ethernet1/0/6DESIFORWARDINGNONE
3Ethernet1/0/2DESIFORWARDINGNONE
3Ethernet1/0/6ROOTFORWARDINGNONE
二.多域生成树的配置
通过此拓扑来实现多区域的生成树设置
上图的补充,因为模拟器没有合适的实验拓扑。
实验步骤
开启stp--创建vlan---配置mstp域---开启trunk链路
配置sw1,--实例2to5-----域名:
wnt
[sw1]vlan2to30
Pleasewait...Done.
[sw1]stpregion-configuration
[sw1-mst-region]instance1vlan2to5
[sw1-mst-region]region-namewnt
[sw1-mst-region]activeregion-configuration
[sw1]displaystpregion-configuration
Operconfiguration
Formatselector:
0
Regionname:
wnt
Revisionlevel:
0
InstanceVlansMapped
01,6to4094
12to5
sw1]inte0/4/4
[sw1-Ethernet0/4/4]portlink-typetrunk
[sw1-Ethernet0/4/4]porttrunkpermitvlanall
[sw1]inte0/4/3
[sw1-Ethernet0/4/3]portlink-typetrunk
[sw1-Ethernet0/4/3]porttrunkpermitvlanall
配置sw2---实例2to6----域名:
gao
[sw2]vlan2to10
Pleasewait...Done.
[sw2]stpregion-configuration
[sw2-mst-region]instance1vlan2to6
[sw2-mst-region]region-namegao
[sw2-mst-region]activere
[sw2]inte0/4/3
[sw2-Ethernet0/4/3]portlink-typetrunk
[sw2-Ethernet0/4/3]porttrunkpermitvlanall
Pleasewait...........................................Done.
[sw2]inte0/4/6
[sw2-Ethernet0/4/6]portlink-typetrunk
[sw2-Ethernet0/4/6]porttrunkpermitvlanall
Pleasewait...........................................Done.
[sw2]displaystpbrief
MSTIDPortRoleSTPStateProtection
0Ethernet0/4/3ROOTFORWARDINGNONE
0Ethernet0/4/6DESIFORWARDINGNONE
1Ethernet0/4/3MASTFORWARDINGNONE
1Ethernet0/4/6DESIFORWARDINGNONE
配置sw3---实例2to7---域名:
cheng
[sw3]vlan2to10
Pleasewait...Done.
[sw3]stpregion-configuration
[sw3-mst-region]instance1vlan2to7
[sw3-mst-region]region-namecheng
[sw3-mst-region]activeregion-configuration
[sw3]inte0/4/4
[sw3-Ethernet0/4/4]portlink-typetrunk
[sw3-Ethernet0/4/4]porttrunkpermitvlanall
Pleasewait...........................................Done.
[sw3-Ethernet0/4/4]inte0/4/7
[sw3-Ethernet0/4/7]portlink-typetrunk
[sw3-Ethernet0/4/7]porttrunkpermitvlanall
Pleasewait...........................................Done.
[sw3]displaystpbrief
MSTIDPortRoleSTPStateProtection
0Ethernet0/4/4ROOTFORWARDINGNONE
0Ethernet0/4/7DESIFORWARDINGNONE
1Ethernet0/4/4MASTFORWARDINGNONE
1Ethernet0/4/7DESIFORWARDINGNONE
配置sw4--实例2to8----域名:
wang
[sw4]vlan2to10
[sw4]stpregion-configuration
[sw4-mst-region]instance1vlan2to8
[sw4-mst-region]region-namewang
[sw4-mst-region]activeregion-configuration
[sw4]displaystpregion-configuration
Operconfiguration
Formatselector:
0
Regionname:
wang
Revisionlevel:
0
InstanceVlansMapped
01,9to4094
12to8
[sw4]inte0/4/7
[sw4-Ethernet0/4/7]portlink-typetrunk
[sw4-Ethernet0/4/7]porttrunkpermitvlanall
Pleasewait...........................................Done.
[sw4-Ethernet0/4/7]inte0/4/6
[sw4-Ethernet0/4/6]portlink-typetrunk
[sw4-Ethernet0/4/6]porttrunkpermitvlanal
Pleasewait...........................................Done.
[sw4]displaystpbrief
MSTIDPortRoleSTPStateProtection
0Ethernet0/4/6ROOTFORWARDINGNONE
0Ethernet0/4/7ALTEDISCARDINGNONE
1Ethernet0/4/6MASTFORWARDINGNONE
1Ethernet0/4/7ALTEDISCARDINGNON
然后个vlan2配置ip地址,他们是可以ping通的!
从而实现了不同域之间的通信!
!
MSTP域内的参数---------------对应本实验
1.MST域
2.MSTI
3.VLAN映射表
4.IST
5.CST
6.CIST
7.域根
8.总根
9.端口角色
对上面的参数进行本实验的总结:
1.MST域:
本实验有4个MST域,分别是wnt、gao、cheng、wang。
2.MSTI:
一个生成树实例,例如:
wnt域中的所有实例1的集合。
3.Vlan映射表:
就是实例
4.IST:
下图介绍
5.CIT:
下图介绍
6.CIST:
下图介绍
7.域根:
有4个,多个域根相连组成一个CIST域
8.总根:
有1个。
9.端口状态
sw4中的e0/4/7属于整个大域(CIST)的阻塞端口!
Master端口是连接MST域到总根的端口,位于整个域到总根的最短路径上。
就相当于我们在单域中所说的根端口