2021年4月9日 MSTP的原理以及实验
MSTP的原理以及实验
MSTP的概念
MSTP兼容STP和RSTP,通过多实例能实现对业务流量和用户流量的隔离,同时还提供了数据转发的多个冗余路径,在数据转发过程中实现VLAN数据的负载均衡。在MSTP中,你可以将若干个VLAN映射到一个实例(instance),MSTP将为每个instance运行一颗生成树,可以基于instance设置优先级、端口路径开销等参数。
MSTP的生成背景
RSTP与STP共同的缺陷:由于局域网内所有的VLAN共享一颗生成树,因此无法实现在VLAN之间实现数据流量的平均分配,链路被阻塞之后将不承担任何流量。鉴于此基础,IEEE发布了MSTP,将VLAN根据不同的划分位集中实例,每个实例对应不同的生成树,所以可以实现数据流量的负载均衡,同时也解决了因VLAN过多而引起的资源占用过大的问题。
MSTP实验
交换机配置mstp,sw1为vlan10的主,vlan20的备,sw2为vlan20的主,vlan10的备;配置R1的loopback口为1.1.1.1,使得pc1和pc2可以ping通1.1.1.1。
R1
The device is running!<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int loo
[Huawei]int LoopBack 0
[Huawei-LoopBack0]ip address 1.1.1.1 32
[Huawei-LoopBack0]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.10.1 24
Apr 12 2021 13:28:41-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocolIP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]undo info
[Huawei]undo info-center en
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.20.1 24
[Huawei-GigabitEthernet0/0/1]Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on
SW1
The device is running!<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]p h u v 10 20
[Huawei-Ethernet0/0/1]
Apr 12 2021 14:14:12-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 4, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/1]q
[Huawei]undo info
[Huawei]undo info-center ^
Error:Incomplete command found at '^' position.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]vlan batch^
Error:Incomplete command found at '^' position.
[Huawei]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]p h u v 10 20
[Huawei-Ethernet0/0/1]int e 0/0/3
[Huawei-Ethernet0/0/3]p l t
[Huawei-Ethernet0/0/3]p t a v a
[Huawei-Ethernet0/0/3]int e0/0/2
[Huawei-Ethernet0/0/2] User interface con0 is availablePlease Press ENTER.<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int e 0/0/2
[Huawei-Ethernet0/0/2]p h p v 10
[Huawei-Ethernet0/0/2]p h u v 10 20
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]p l t
[Huawei-Ethernet0/0/3]p t a v a
[Huawei-Ethernet0/0/3]int e0/0/1
[Huawei-Ethernet0/0/1]q
[Huawei]stp re
[Huawei]stp region-configuration
[Huawei-mst-region]re
[Huawei-mst-region]region-name 11
[Huawei-mst-region]in
[Huawei-mst-region]instance 1 vlan 10
[Huawei-mst-region]ins
[Huawei-mst-region]instance 2 vlan 20
[Huawei-mst-region]act
[Huawei-mst-region]active re
[Huawei-mst-region]active region-configuration
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-mst-region]q
[Huawei]stp ins
[Huawei]stp instance 1 root primary
[Huawei]stp in
[Huawei]stp instance 2 root s
[Huawei]stp instance 2 root secondary
[Huawei]dis vrrp b
[Huawei]dis vrrp br
[Huawei]dis vrrp brief
Info: No VRRP backup group is configured with a virtual IPv4 address.
[Huawei]dis stp b
[Huawei]dis stp brief MSTID Port Role STP State Protection0 Ethernet0/0/1 DESI FORWARDING NONE0 Ethernet0/0/2 ROOT FORWARDING NONE0 Ethernet0/0/3 DESI FORWARDING NONE1 Ethernet0/0/1 DESI FORWARDING NONE1 Ethernet0/0/2 DESI FORWARDING NONE1 Ethernet0/0/3 DESI FORWARDING NONE2 Ethernet0/0/1 DESI FORWARDING NONE2 Ethernet0/0/2 DESI FORWARDING NONE2 Ethernet0/0/3 ROOT FORWARDING NONE
[Huawei] User interface con0 is available
SW2
The device is running!<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]p l t
[Huawei-Ethernet0/0/3]
Apr 12 2021 14:41:05-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 4, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/3]p t a v a
[Huawei-Ethernet0/0/3]in
Apr 12 2021 14:41:15-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 4095.^
Error: Unrecognized command found at '^' position.
[Huawei-Ethernet0/0/3]int e0/0/2
[Huawei-Ethernet0/0/2]p h p v 20
Error: The VLAN does not exist.
[Huawei-Ethernet0/0/2]q
[Huawei]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int
Apr 12 2021 14:41:45-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 6, th
e change loop count is 0, and the maximum number of records is 4095.e 0/0/2
[Huawei-Ethernet0/0/2]p h p v 20
[Huawei-Ethernet0/0/2]
Apr 12 2021 14:41:55-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 7, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/2]p h u v 10 20
[Huawei-Ethernet0/0/2]
Apr 12 2021 14:42:45-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 8, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/2]q
[Huawei]stp re
[Huawei]stp region-configuration
[Huawei-mst-region]reg
[Huawei-mst-region]region-name 11
[Huawei-mst-region]inst
[Huawei-mst-region]instance 1 vlan 10
[Huawei-mst-region]ins
[Huawei-mst-region]instance 2 vlan 20
[Huawei-mst-region]act
[Huawei-mst-region]active re
[Huawei-mst-region]active region-configuration
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-mst-region]q
[Huawei]stp
Apr 12 2021 14:43:25-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 9, th
e change loop count is 0, and the maximum number of records is 4095.^
Error:Incomplete command found at '^' position.
[Huawei]stp ins
[Huawei]stp instance 2 root p
[Huawei]stp instance 2 root primary
[Huawei]stp ins
[Huawei]stp instance 1
Apr 12 2021 14:43:45-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 10, t
he change loop count is 0, and the maximum number of records is 4095.root s
[Huawei]stp instance 1 root secondary
[Huawei]
Apr 12 2021 14:43:55-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 11, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei]dis stp briefMSTID Port Role STP State Protection0 Ethernet0/0/1 DESI FORWARDING NONE0 Ethernet0/0/2 ROOT FORWARDING NONE0 Ethernet0/0/3 ALTE DISCARDING NONE1 Ethernet0/0/2 DESI FORWARDING NONE1 Ethernet0/0/3 ROOT FORWARDING NONE2 Ethernet0/0/2 DESI FORWARDING NONE2 Ethernet0/0/3 DESI FORWARDING NONE
[Huawei]dis this
#
sysname Huawei
#
vlan batch 10 20
#
stp instance 1 root secondary
stp instance 2 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
return
[Huawei]
[Huawei]
[Huawei]dis this
#
sysname Huawei
#
vlan batch 10 20
#
stp instance 1 root secondary
stp instance 2 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
return
[Huawei]dis stp b
[Huawei]dis stp brief MSTID Port Role STP State Protection0 Ethernet0/0/1 DESI FORWARDING NONE0 Ethernet0/0/2 ROOT FORWARDING NONE0 Ethernet0/0/3 ALTE DISCARDING NONE1 Ethernet0/0/2 DESI FORWARDING NONE1 Ethernet0/0/3 ROOT FORWARDING NONE2 Ethernet0/0/2 DESI FORWARDING NONE2 Ethernet0/0/3 DESI FORWARDING NONE
[Huawei]dis stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.4c1f-cc98-5c6c
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 19
CIST Root/ERPC :32768.4c1f-cc53-140e / 0
CIST RegRoot/IRPC :32768.4c1f-cc53-140e / 200000
CIST RootPortId :128.2
BPDU-Protection :Disabled
TC or TCN received :30
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:12m:13s
Number of TC :11
Last TC occurred :Ethernet0/0/1
----[Port1(Ethernet0/0/1)][FORWARDING]----Port Protocol :EnabledPort Role :Designated PortPort Priority :128Port Cost(Dot1T ) :Config=auto / Active=200000Designated Bridge/Port :32768.4c1f-cc98-5c6c / 128.1Port Edged :Config=default / Active=disabledPoint-to-point :Config=auto / Active=trueTransit Limit :147 packets/hello-timeProtection Type :None[Huawei]
[Huawei]dis this
#
sysname Huawei
#
vlan batch 10 20
#
stp instance 1 root secondary
stp instance 2 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
return
[Huawei]dis stp b
[Huawei]dis stp brief MSTID Port Role STP State Protection0 Ethernet0/0/1 DESI FORWARDING NONE0 Ethernet0/0/2 ROOT FORWARDING NONE0 Ethernet0/0/3 ALTE DISCARDING NONE1 Ethernet0/0/2 DESI FORWARDING NONE1 Ethernet0/0/3 ROOT FORWARDING NONE2 Ethernet0/0/2 DESI FORWARDING NONE2 Ethernet0/0/3 DESI FORWARDING NONE
[Huawei] User interface con0 is available
SW3
The device is running!<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/
Apr 12 2021 14:32:54-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 4, th
e change loop count is 0, and the maximum number of records is 4095.2
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]p h u v 10 20
[Huawei-Ethernet0/0/3]p h
Apr 12 2021 14:33:24-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 409
Error: The interface is already a L2 interface.
[Huawei-Ethernet0/0/3]p h p v 10
[Huawei-Ethernet0/0/3]int e0
Apr 12 2021 14:34:14-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 6, th
e change loop count is 0, and the maximum number of records is 4095./0/4
[Huawei-Ethernet0/0/4]p h p v 20
[Huawei-Ethernet0/0/4]p h u v 10 20
Apr 12 2021 14:34:34-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 7, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/4]
Apr 12 2021 14:34:44-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 8, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/4]int e0/0/1
[Huawei-Ethernet0/0/1]p h p v 10
[Huawei-Ethernet0/0/1]p h u
Apr 12 2021 14:35:24-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 9, th
e change loop count is 0, and the maximum number of records is 4095.v 10 20
[Huawei-Ethernet0/0/1]int e 0/0/2
[Huawei-Ethernet0/0/2]p
Apr 12 2021 14:35:34-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 10, t
he change loop count is 0, and the maximum number of records is 4095. h p v 20
[Huawei-Ethernet0/0/2]
Apr 12 2021 14:35:44-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 11, t
he change loop count is 0, and the maximum number of records is 4095.p h u v 10
20
[Huawei-Ethernet0/0/2]
Apr 12 2021 14:36:04-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 12, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/2]q
[Huawei]stp re
[Huawei]stp region-configuration
[Huawei-mst-region]re
[Huawei-mst-region]region-name 11
[Huawei-mst-region]instan
[Huawei-mst-region]instance 1 vlan 10
[Huawei-mst-region]ins
[Huawei-mst-region]instance 2 vlan 20
[Huawei-mst-region]stp in
[Huawei-mst-region]
[Huawei-mst-region]act
[Huawei-mst-region]active regi
[Huawei-mst-region]active region-configuration
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-mst-region]
Apr 12 2021 14:40:44-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 13, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-mst-region]
[Huawei-mst-region] User interface con0 is availablePlease Press ENTER.<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]dis stp bMSTID Port Role STP State Protection0 Ethernet0/0/1 DESI FORWARDING NONE0 Ethernet0/0/2 DESI FORWARDING NONE0 Ethernet0/0/3 DESI FORWARDING NONE0 Ethernet0/0/4 DESI FORWARDING NONE1 Ethernet0/0/1 ROOT FORWARDING NONE1 Ethernet0/0/2 ALTE DISCARDING NONE1 Ethernet0/0/3 DESI FORWARDING NONE1 Ethernet0/0/4 DESI FORWARDING NONE2 Ethernet0/0/1 ALTE DISCARDING NONE2 Ethernet0/0/2 ROOT FORWARDING NONE2 Ethernet0/0/3 DESI FORWARDING NONE2 Ethernet0/0/4 DESI FORWARDING NONE
[Huawei]
dis this 看一下 结果符合预期就算成功!!!
2021年4月9日 MSTP的原理以及实验相关推荐
- 重磅!华为HCIE将于2021年5月30日改版,取消面试考试
尊敬的各位朋友,感谢您一直以来对华为认证的支持! 为适应学习者不断变化的需求,顺应ICT技术演进趋势,我们进行了大量的市场调研,收集了全球多位专家和考生的意见,决定华为HCIE认证将于北京时间2021 ...
- 华为HCIE认证改版(2021年5月30日正式改版升级)
华为HCIE认证改版(2021年5月30日正式改版升级) 尊敬的各位朋友,感谢您一直以来对华为认证的支持! 为适应学习者不断变化的需求,顺应ICT技术演进趋势,我们进行了大量的市场调研,收集了全球多位 ...
- 2021年4月27日 华为Cloud AI 通用软件开发实习面试(一面)
title: 2021年4月27日 华为Cloud AI 通用软件开发实习面试(一面) tags: 面经 2021年4月27日 华为Cloud AI 通用软件开发实习面试(一面) 自我介绍(这个地方由 ...
- 2021年4月28日 深圳头条后台开发实习面试(hr面)
title: 2021年4月28日 深圳头条后台开发实习面试(hr面) tags: 面经 2021年4月28日 深圳头条后台开发实习面试(hr面) 自我介绍 为什么当时高考报考了机械行业呢? 你对机械 ...
- 2021年4月19日 深圳头条后台开发实习面试(二面)(含总结)
title: 2021年4月19日 深圳头条后台开发实习面试(二面) tags: 面经 2021年4月19日 深圳头条后台开发实习面试(二面) 自我介绍 面试直接跟我讲你想让我问哪个方面的问题呢?(这 ...
- 2021年4月22日 阿里供应链Java开发实习面试(三面)(含总结)
title: 2021年4月22日 阿里供应链Java开发实习面试(三面) tags: 面经 2021年4月22日 阿里供应链Java开发实习面试(三面) 上来就手撕一道代码--输入一个数,然后顺时针 ...
- 2021年4月16日 阿里供应链Java研发实习面试(二面)
title: 2021年4月16日 阿里供应链Java研发实习面试(二面) tags: 面经 2021年4月16日 阿里供应链Java研发实习面试(二面)(70min) 自我介绍 介绍自己的研究生项目 ...
- 2021年4月12日 阿里供应链Java研发实习面试(一面)(含总结)
title: 2021年4月12日 阿里供应链Java研发实习面试(一面) tags: 面经 2021年4月12日 阿里供应链Java研发实习面试(一面) 自我介绍介绍项目你用哪个版本的Java呢?( ...
- 2021年3月15日 腾讯PCG运营开发实习面试(一、二、三面)(面经含总结)
title: 2021年3月15日 腾讯PCG运营开发实习面试(一.二.三面) tags: 面经 2021年3月15日 腾讯PCG运营开发实习面试(一面2h) 自我介绍你能讲一下Java中的集合,你都 ...
最新文章
- 面试官:BigDecimal一定不会丢失精度吗?
- 架构实战项目心得(三):JAVA和MAVEN的环境配置
- js 操作java对象_JavaScript 对象基础
- Ubuntu 14.04编译opencv_videoio.dir/src/cap_gstreamer.cpp报错
- [java] 虚拟机(JVM)底层结构详解[转]
- oracle 启用闪回数据库,如何启用Oracle10g闪回数据库特性
- 【教程分享】Jmeter入门教程
- 比Google Map更加清晰的网络地图——RealBird
- [Windows 故障]Ping通却无法连接网页 + Apple Mobile Device 自动停止
- h5网站服务器配置,h5的web服务器配置
- android桌面小工具,超好用的手机桌面小组件,一键美化桌面,实用又美观
- 联想l430主板图纸_L430开箱+拆机+换内存+换U+评测+拷机15小时,图多杀猫
- AltiumDesigner PCB案牍(3)—— PADS工程文件导入AD
- 230个形容人性格的英语词汇
- Java面试题全集(三)
- APT样本分析 -plugx家族RAT⽊⻢
- sql入门--增删改查
- 无线振动传感器在工厂环境中的应用
- 为什么计算机专业要学概率统计,计算机类专业概率统计的教学
- 大学学计算机,做好这6点,毕业拿高薪真不难