欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

实验十九MSTP

程序员文章站 2024-03-25 11:28:16
...

实验十九MSTP
1、每一个交换机都创建vlan2-20,vlan2-10走sw3-sw1,vlan11-20走sw3-sw2
2、将每一个线路的接口都设置为trunk,并且允许所有的vlan通过
3、配置MSTP
Sw1的配置:

#
sysname Huawei
#
vlan batch 2 to 20
#
stp mode stp
stp instance 0 root primary
stp instance 1 root primary
stp instance 2 root secondary
#
stp region-configuration
 region-name HCIP
 instance 1 vlan 2 to 10
 instance 2 vlan 11 to 20
 active region-configuration
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#

查看SW2的生成树

<Huawei>dis stp br
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   1    GigabitEthernet0/0/1        MAST  FORWARDING      NONE
   1    GigabitEthernet0/0/2        ROOT  FORWARDING      NONE
   2    GigabitEthernet0/0/1        MAST  FORWARDING      NONE
   2    GigabitEthernet0/0/2        ROOT  FORWARDING      NONE

查看SW3的生成树

<Huawei>dis stp brief 
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ALTE  DISCARDING       NONE
   0    GigabitEthernet0/0/2        ROOT  FORWARDING      NONE
   1    GigabitEthernet0/0/1        ALTE  DISCARDING        NONE
   1    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   2    GigabitEthernet0/0/1        ALTE  DISCARDING       NONE
   2    GigabitEthernet0/0/2        DESI  FORWARDING    
相关标签: 网络实验