MSTP
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
如图配置:
交换网络中有vlan 1 到10个vlan,要求使用MSTP技术实现vlan的负载分担。SW1为实例1(vlan1-vlan5)的主根,SW2为备根
SW2为实例2(vlan6-vlan10)的主根,SW1为备根
MSTP 实验步骤:
1.保证交换网络中vlan信息同步
SW1
[SW1]vlan 1 to 10
Please wait... Done.
SW2
[SW2]vlan 1 to 10
Please wait... Done.
SW3
[SW3]vlan 1 to 10
Please wait... Done.
2.所有链路封装trunk协议,放行业务vlan
SW1
Int e0/4/1
[SW1-Ethernet0/4/1]port link-t trunk
[SW1-Ethernet0/4/1]port trunk permit vlan 1 to 10
[SW1-Ethernet0/4/0]port link-t trunk
[SW1-Ethernet0/4/0]port trunk permit vlan 1 to 10
SW2
Int e0/4/1
[SW2-Ethernet0/4/2]port link-t trunk
[SW2-Ethernet0/4/2]port trunk permit vlan 1 to 10
[SW2-Ethernet0/4/2]port link-t trunk
[SW2-Ethernet0/4/0]port trunk permit vlan 1 to 10
SW3
Int e0/4/3
[SW3-Ethernet0/4/1]port link-t trunk
[SW3-Ethernet0/4/1]port trunk permit vlan 1 to 10
[SW3-Ethernet0/4/2]port link-t trunk
[SW3-Ethernet0/4/2]port trunk permit vlan 1 to 10
3.启用stp技术(mstp模式)
Stp m stp
4.配置MST域(同步域名/修正级别Vlan对应实例的关系)
SW1
[SW1]stp region-configuration
[SW1-mst-region]region-name 1
[SW1-mst-region] instance 1 vlan 1 to 5
[SW1-mst-region] instance 2 vlan 6 to 10
[SW1-mst-region]active region-configuration
SW2
[SW2]stp region-configuration
[SW2-mst-region]region-name 1
[SW2-mst-region] instance 1 vlan 1 to 5
[SW2-mst-region] instance 2 vlan 6 to 10
[SW2-mst-region]active region-configuration
SW3
[SW3]stp region-configuration
[SW3-mst-region]region-name 1
[SW3-mst-region] instance 1 vlan 1 to 5
[SW3-mst-region] instance 2 vlan 6 to 10
[SW3-mst-region]active region-configuration
5.选择合适的设备作为实例的根桥与备份根桥
SW1
[SW1]stp instance 1 root primary
[SW1]stp instance 2 root secondary
SW2
[SW1]stp instance 2 root primary
[SW1]stp instance 1 root secondary
6.测试
[SW1]dis stp brief
MSTID Port Role STP State Protection
0 Ethernet0/4/0 DESI FORWARDING NONE
0 Ethernet0/4/1 DESI FORWARDING NONE
1 Ethernet0/4/0 DESI FORWARDING NONE
1 Ethernet0/4/1 DESI FORWARDING NONE
2 Ethernet0/4/0 ROOT FORWARDING NONE
2 Ethernet0/4/1 DESI FORWARDING NONE
[SW2]dis stp brief
MSTID Port Role STP State Protection
0 Ethernet0/4/0 ROOT FORWARDING NONE
0 Ethernet0/4/2 DESI FORWARDING NONE
1 Ethernet0/4/0 ROOT FORWARDING NONE
1 Ethernet0/4/
2 DESI FORWARDING NONE
2 Ethernet0/4/0 DESI FORWARDING NONE
2 Ethernet0/4/2 DESI FORWARDING NONE
[SW3]dis stp brief
MSTID Port Role STP State Protection
0 Ethernet0/4/1 ROOT FORWARDING NONE
0 Ethernet0/4/2 ALTE DISCARDING NONE
1 Ethernet0/4/1 ROOT FORWARDING NONE
1 Ethernet0/4/
2 ALTE DISCARDING NONE
2 Ethernet0/4/1 ALTE DISCARDING NONE
2 Ethernet0/4/2 ROOT FORWARDING NONE