一 MST和MST
两台交换机都配置MST
 
 

左边:
   1-4096vlan 属于MST00 并为ROOT桥
   vlan 3 ip 3.3.3.1
 
Switch1#sh spanning-tree mst
 
###### MST00        vlans mapped:   1-4094
Bridge      address 000e.8482.c980 priority 24576 (24576 sysid 0)
Root        this switch for CST and IST
Configured hello time 2, forward delay 15, max age 20, max hops 20
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/47           Desg FWD 200000    128.47   P2p Bound(RSTP)
Fa0/48           Desg FWD 200000    128.48   P2p
 
 
右边 :
   1 5-4096vlan 属于 MST00
   2-3vlan 属于 MST01
   vlan 3 ip 3.3.3.1
 
Switch2#sh spanning-tree mst
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Root FWD 200000    128.23   P2p Bound(RSTP)
Fa0/24           Altn BLK 200000    128.24   P2p Bound(RSTP)
 
###### MST01        vlans mapped:   2-3
Bridge      address 000d.bc65.9000 priority 32769 (32768 sysid 1)
Root        this switch for MST01
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Boun FWD 200000    128.23   P2p Bound(RSTP)
Fa0/24           Boun BLK 200000      0.24   P2p Bound(RSTP)
 
 
 
可见 MST01 的端口被置为边界端口 (Boundary Port)
 
 
左边 ping 3.3.3.3 能通
 
边界端口定义
 
一个边界端口 (Boundary Port) 就是连接一个局域网、一个 SST 网桥 或者一个不同 MST 区域中的一个 " 指定网桥 " 的端口。如果检测到一个STP网桥,或者接收到一个来自一个RST或者具有不同配置的MST网桥上的同意消息,则可识别该端口为"指定端口"。
 
在边界端口中,与MST端口角色无关。它们的状态强制与IST端口状态一致。如果端口设置了边界标记,MSTP端口角色选择一种方法为边界分配端口角色,并且分配与IST端口相同的状态。在边界中的IST端口可以是除了备份端口角色外的任何角色。
 
在Cisco预标准中,一个边界端口是连接一个MST区域到以下这些STP区域之一:
 
一个运行RSTP的单生成树区域
 
一个运行PVST+或者PVST+的单生成树区域
 
另一个具有不同MST配置的MST区域
 
一个边缘端口也可以连接一个局域网,指定的交换机可以是一个单生成树交换机,或者是一个具有不同MST配置的交换机。
 
在802.1S标准中没有定义边界端口。802.1Q-2002标准定义了一个端口可以接收的两种消息类型:内部消息(来自同一个区域中的消息)和外部消息。当是外部消息时,仅可以由CIST接收。如果这个CIST角色或根或者交替交换机,或者外部BPDU是拓扑结构改变消息,则可能会在MST实例中出现冲突。当是内部消息时,属于CIST部分的则由CIST接收,每个MST实例接收它自己的M记录(M-record)。
 
 
 
 
二  MST 与PVST
 

 
左边交换机配置MST 右边配置PVST
 
 
 
左边:
   1-4096vlan 属于MST00 并为ROOT桥
   vlan 3 ip 3.3.3.1
 
 
Switch1#sh spanning-tree
 
MST00
 Spanning tree enabled protocol mstp
 Root ID    Priority    24576
             Address     000e.8482.c980
             This bridge is the root
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
 Bridge ID Priority    24576 (priority 24576 sys-id-ext 0)
             Address     000e.8482.c980
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/47           Desg BKN*200000    128.47   P2p Bound(PVST) *ROOT_Inc
Fa0/48           Desg BKN*200000    128.48   P2p Bound(PVST) *ROOT_Inc
 
右边:
   vlan 3 这位root桥
   vlan 3 ip 3.3.3.1
 
Switch2#sh spanning-tree
VLAN0001
 Spanning tree enabled protocol ieee
 Root ID    Priority    32769
             Address     000d.bc65.9000
             This bridge is the root
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
 Bridge ID Priority    32769 (priority 32768 sys-id-ext 1)
             Address     000d.bc65.9000
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
             Aging Time 300
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Desg FWD 19        128.23   P2p
Fa0/24           Desg FWD 19        128.24   P2p
 
         
VLAN0002
 Spanning tree enabled protocol ieee
 Root ID    Priority    20482
             Address     000d.bc65.9000
             This bridge is the root
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
 Bridge ID Priority    20482 (priority 20480 sys-id-ext 2)
             Address     000d.bc65.9000
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
             Aging Time 300
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Desg FWD 19        128.23   P2p
Fa0/24           Desg FWD 19        128.24   P2p
 
         
VLAN0003
 Spanning tree enabled protocol ieee
 Root ID    Priority    32771
             Address     000d.bc65.9000
             This bridge is the root
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
 Bridge ID Priority    32771 (priority 32768 sys-id-ext 3)
             Address     000d.bc65.9000
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
             Aging Time 300
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Desg FWD 19        128.23   P2p
Fa0/24           Desg FWD 19        128.24   P2p
 
         
VLAN0004
 Spanning tree enabled protocol ieee
  Root ID    Priority    32772
             Address     000d.bc65.9000
             This bridge is the root
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
 
 Bridge ID Priority    32772 (priority 32768 sys-id-ext 4)
             Address     000d.bc65.9000
             Hello Time   2 sec Max Age 20 sec Forward Delay 15 sec
             Aging Time 300
 
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/23           Desg FWD 19        128.23   P2p
Fa0/24           Desg FWD 19        128.24   P2p
 
 
 
两边实例不一致,MST启动了ROOT GUARD功能
MST00端口被置为不一致状态。
左边PING 3.3.3.3 不同
 
 
 
 
原创——o0星0o