路由器交换机配置MSTP多实例实验
来源:网络收集 点击: 时间:2024-08-20一、搭建本次实验拓扑结构
四台交换机,两台核心,两台接入

二、配置实验环境所需要的VLAN信息
vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.

三、将接口加入VLAN中
int g0/0/4po li trpo tr all vl 10 20 30 40 100
int g0/0/3po li trpo tr all vl 10 20 30 40 100
int g0/0/1po li trpo tr all vl 10 20 30 40 100
int g0/0/2po li trpo tr all vl 10 20 30 40 100
命令是简打的,没有把所有接口信息都添加,请自行添加所有接口信息的VLAN

四、配置MSTP,定义VLAN属于实例的信息
S1]stp mode mstp stp region-configuration region-name RG1 instance 1 vlan 10 20 100instance 2 vlan 30 40active region-configuration Info: This operation may take a few seconds. Please wait for a moment....done. stp mode mstp stp region-configuration region-name RG1 instance 1 vlan 10 20 100instance 2 vlan 30 40active region-configuration Info: This operation may take a few seconds. Please wait for a moment....done.
SW3和SW4也是一样的


五、查看MSTP实例和VLAN映射关系
dis stp reOper configuration Format selector :0 Region name :RG1 Revision level :0
Instance VLANs Mapped 0 1 to 9, 11 to 19, 21 to 29, 41 to 99, 101 to 4094 1 10, 20, 100 2 30 to 40


六、修改交换机的MSTP实例的优先级
stp instance 1 priority 4096 stp instance 2 priority 8192 stp instance 2 priority 4096 stp instance 1 priority 8192

七、查看实例1和实例2的状态信息
dis stp ins 1--------------MSTI Bridge ID :4096.4c1f-ccee-804fMSTI RegRoot/IRPC :4096.4c1f-ccee-804f / 0MSTI RootPortId :0.0Master Bridge :32768.4c1f-cc2f-665aCost to Master :20000TC received :8TC count per hello :0Time since last TC :0 days 1h:34m:32sNumber of TC :11Last TC occurred :Eth-Trunk1
SW2sysEnter system view, return user view with Ctrl+Z.dis stp ins 2--------------MSTI Bridge ID :4096.4c1f-cc39-7058MSTI RegRoot/IRPC :4096.4c1f-cc39-7058 / 0MSTI RootPortId :0.0Master Bridge :32768.4c1f-cc39-7058Cost to Master :0TC received :0TC count per hello :0Time since last TC :0 days 1h:52m:54sNumber of TC :7


八、查看MSTP实例1的端口信息
dis stp ins 1 briMSTID Port Role STP State Protection 1 GigabitEthernet0/0/3 DESI FORWARDING NONE 1 GigabitEthernet0/0/4 DESI FORWARDING NONE 1 GigabitEthernet0/0/24 DESI FORWARDING NONE 1 Eth-Trunk1 DESI FORWARDING NONEdis stp ins 2 briMSTID Port Role STP State Protection 2 GigabitEthernet0/0/3 DESI FORWARDING NONE 2 GigabitEthernet0/0/4 DESI FORWARDING NONE 2 GigabitEthernet0/0/24 DESI FORWARDING NONE 2 Eth-Trunk1 DESI FORWARDING NONE


九、查看MSTP实例2的端口信息 dis stp ins 1 briMSTID Port Role STP State Protection 1 GigabitEthernet0/0/3 ALTE DISCARDING NONE 1 GigabitEthernet0/0/4 MAST FORWARDING NONEdis stp ins 2 briMSTID Port Role STP State Protection 2 GigabitEthernet0/0/3 ALTE DISCARDING NONE 2 GigabitEthernet0/0/4 MAST FORWARDING NONE


注意VLAN信息和接口信息配置
观察被阻塞的端口信息,观察拓扑结构的变化
版权声明:
1、本文系转载,版权归原作者所有,旨在传递信息,不代表看本站的观点和立场。
2、本站仅提供信息发布平台,不承担相关法律责任。
3、若侵犯您的版权或隐私,请联系本站管理员删除。
4、文章链接:http://www.1haoku.cn/art_1144257.html