Spanning Tree


配置


PVST+

switch(config)# spanning-tree mode stp


RSTP

switch(config)# spanning-tree mode rapid-pvst


MSTP

switch(config)# spanning-tree mst

switch(config)# spanning-tree mst configuration

switch(config-mst)# name Region1

switch(config-mst)# revision 1

switch(config-mst)# instance 1 vlan 11-13

switch(config-mst)# instance 2 vlan 21-23


Spanning Tree 選舉


選Root Switch (Switches)

  1. Bridge ID 小
stp root switch

Switch選一個Root Port (Switch ports)

  1. 去Root的cost 少
  2. 對接的Switch的Bridge ID 小
  3. 對接的Port 的 Port ID 小

Link選一個Designated Port (Link ports)

  1. Root Switch的所有Ports都是Designated Port
  2. 去Root的cost少
  3. Ports的Switch的Bridge ID 小
  4. 剩下的Ports都是non-Designated Port

RSTP Mode限定: 選Alternate/Backup Port (Link ports)

  1. non-Designated Port的Switch的Bridge ID比對面的Switch大, 就是Alternate Port
  2. 相反, 則是Backup Port

Port State


PVST+ Port StateBPDUFunctionForwarding Delay
Disabled
BlockingRx
ListeningRx & TxElection15s
LearningRx & TxRoot Port / Designated Port15s
ForwardingRx & TxRx & Tx Frame
RSTP Port StateBPDUFunctionForwarding Delay
Disabled
LearningRx & TxRoot Port / Designated Port15s
ForwardingRx & TxRx & Tx Frame

Cost

100Mb: 19

155Mb: 14

1000Mb: 4

10000: 2

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Open chat
💬How Can We Help?
Hello 👋How can we help you?