多语言展示
当前在线:1667今日阅读:39今日分享:10

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

MSTP是IEEE 802.1s中提出的一种STP和VLAN结合使用的新协议,它既继承了RSTP端口快速迁移的优点,又解决了RSTP中不同vlan必须运行在同一棵生成树上的问题。本次实验模拟MSTP实验创建起来后的变化,本次实验的主要是主备冗余,S1、S2作为核心交换机
工具/原料
1

win7-64(笔记本内存>=4G)

2

eNSP

方法/步骤
1

一、搭建本次实验拓扑结构四台交换机,两台核心,两台接入

2

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

3

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

4

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

5

五、查看MSTP实例和VLAN映射关系[SW2]dis stp re Oper 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

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

7

七、查看实例1和实例2的状态信息[SW1]dis stp ins 1-------[MSTI 1 Global Info]-------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-Trunk1sysEnter system view, return user view with Ctrl+Z.[SW2]dis stp ins 2-------[MSTI 2 Global Info]-------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

八、查看MSTP实例1的端口信息[SW1]dis stp ins 1 bri MSTID  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      NONE[SW1]dis stp ins 2 bri MSTID  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

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

注意事项
1

注意VLAN信息和接口信息配置

2

观察被阻塞的端口信息,观察拓扑结构的变化

推荐信息