IEEE-----------cisco

       802.1D          PVST(isl)/PVST+isl,dot1q

       802.1W        Rapid-PVST

   802.1s   mstp

 

STP&PVST

STP:所有VLAN维护一颗生成树。被所有VLANblock的链路是一样滴。

优点:节省CPU/内存资源

缺点:对链路是一个极大的浪费

 

PVST:每一个VLAN维护一颗生成树。

优点:最大限度的利用带宽

缺点:对CPU和内存的消耗极大

思科不同型号的交换机或不同的平台,对所支持VLAN的个数是不定的。



实验:

启用STP:

SW2(config)#spanning-tree vlan 1


配置Bridge-ID:

SW1(config)#spanning-tree vlan 1 priority ?
  <0-61440>  bridge priority in increments of 4096

SW1(config)#spanning-tree vlan 1 root ?  
  primary    Configure this switch as primary root for this spanning tree
  secondary  Configure switch as secondary root


配置端口开销:(要在接收方交换机上修改,接收方才计算,发送方都是0)

SW2(config-if)#spanning-tree cost ?
  <1-200000000>  port path cost
SW2(config-if)#spanning-tree vlan 1 cost ?
  <1-200000000>  Change an interface's per VLAN spanning tree path cost 

SW1(config)#int e0/3
SW1(config-if)#spanning-tree port-priority ?
  <0-192>  port priority in increments of 64