广告合作
  • 今日头条

    今日头条

  • 百度一下

    百度一下,你就知道

  • 新浪网

    新浪网 - 提供新闻线索,重大新闻爆料

  • 搜狐

    搜狐

  • 豆瓣

    豆瓣

  • 百度贴吧

    百度贴吧——全球领先的中文社区

  • 首页 尚未审核订阅工具 订阅

    路由器交换机配置MSTP多实例实验

    来源:网络收集  点击:  时间:2024-08-20
    【导读】:
    MSTP是IEEE 802.1s中提出的一种STP和VLAN结合使用的新协议,它既继承了RSTP端口快速迁移的优点,又解决了RSTP中不同vlan必须运行在同一棵生成树上的问题。本次实验模拟MSTP实验创建起来后的变化,本次实验的主要是主备冗余,S1、S2作为核心交换机工具/原料morewin7-64(笔记本内存=4G)eNSP方法/步骤1/9分步阅读

    一、搭建本次实验拓扑结构

    四台交换机,两台核心,两台接入

    2/9

    二、配置实验环境所需要的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.

    3/9

    三、将接口加入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

    4/9

    四、配置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也是一样的

    5/9

    五、查看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

    6/9

    六、修改交换机的MSTP实例的优先级

    stp instance 1 priority 4096 stp instance 2 priority 8192 stp instance 2 priority 4096 stp instance 1 priority 8192

    7/9

    七、查看实例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

    8/9

    八、查看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

    9/9

    九、查看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

    相关资讯

    ©2019-2020 http://www.1haoku.cn/ 国ICP备20009186号05-07 01:02:19  耗时:0.025
    0.0248s