Mr.Chan

导航

CCNP BCMSN(642-811)视频中文笔记(一)

Module 4 Enhancing STP

本章要求掌握如下内容:

         Explain the operation and purpose of Spanning Tree Protocol enhancements on a switched network

         Configure Spanning Tree Protocol enhancements on a switched network

         Tune and troubleshoot spanning tree on a multilayer switched network to enhance network performance, prevent network loops, and minimize downtime

增强内容:STP是第2层的协议,基于BPDU来工作。

l         特性

l         RSTPRapid STP .802.1W

l         802.1SSTP

一、          特性:

1.         Port fast 用于Access(端口上)和电脑之间,启到加速转发的效果,同时也加速STP收敛。


2.         Uplink fast 用于接入层(AccessSW与分布层连接的接入层设备上,由Block状态直接转为Forware状态,无须经过ListenLearning


3.         Backbone Fast 用于所有的SW。加速收敛(30S)。当L1 Down时,SWB会发送一个劣等BPDU,告诉SWC,我SWBRootSWC经过和SWA沟通(使用Root Link Query BPDU查询),SWA告诉SWC,我SWA还活着呢。然后SWC告诉SWBSWA还活着,它还是Root


二、          RSTPRapid STP802.1W),快速STPRSTP是由I3E,基于802.1D,开发出来的。


RSTP端口的状态:


RSTP端口角色:


Alternate Port:在同一网段中,比指定端口成本稍高的端口。使用Keep-Alive来维持非RootSW之间是否存活使用。

Backup PortSWB收到自己指定端口的BPDU(环路),将其称为Backup Port

RSTP BPDU 格式



深蓝色部分(07)为传统STP所使用。RSTP在其基础之上,使用了6-1的部分。


RSTP增加了一种端口,叫edge-port(边缘端口);增加了两种Link-Type(共享和点对点),根据Link模式(如全双工为点对点,半双工为共享)。



TOP发生改变时,洪泛快速(传统STPTSW再到R)。而RSTP直接洪泛。

配置为RSTP边界端口的命令:Switch(config-if)# Spanning-tree portfast

强制端口充当点对点连接的命令:Switch(config-if)# Spanning-tree link-type point-to-point

三、          多重STPMST 802.1S

下图是一个MST的例子:



我们可以把多个相同配置的VLAN,当做成一个ST实例。这样,如上图,就有两个ST实例(多ST)。


而传统的STCST,也就是标准的802.1QSTP),只能有一个实例(我们叫它CST)。劣势的是无法提供均衡。

MST类似PVST,但比其更好。MST可以将多条冗余的VLAN,当成多个ST实例。以使用负载均衡。



MST


MST区域(Regions):相同配置ST实例共为一个区域。区域包含命令、版本号、VLAN关联表。


IST(内部ST):把一些ST虚拟成一个ST,也就是说虚拟SW上的内部ST实例。如上图,左图等于右图。

402。在启用MST后,PVST+操作停止,SW变为RSTP操作,SW不能同时使用MSTPVST+

PVSTPVST+都是cisco专有:PVST:需要用ISL封装,可以实现第2层的负载均衡,每个VLAN一棵STP

PVST+:支持在相同网络中同时存在CST(公共生成树)PVSTPVST+可以用802.1Q封装。PVST+Catalyst 802.1Q trunks上是自动启动的。也是每个Vlan一棵STP。也可以实现第2层的负载均衡。PVST+分成3种类型的区域:PVST区域/PVST+区域/单生成树区域。

四、          配置STP

1.       配置Portfast

Switch(config-if)#spanning-tree portfast

Switch#show running-config interface {{fastethernet| gigabitethernet} slot/port}|{port-channel pc_number}



2.       配置UPlinkFast

Switch(config)#spanning-tree uplinkfast [max-update-rate max_update_rate]

Switch# show spanning-tree uplinkfast



3.       配置Backbone

Switch(config)#spanning-tree backbonefast

Switch#show spanning-tree backbonefast



4.       配置检验MST

Switch(config)#spanning-tree mode mst

Enables Multiple Spanning Tree

Switch(config)#spanning-tree mst configuration

Enters MST configuration submode

Switch(config-mst)#name name

Sets the MST region name

Switch(config-mst)#revision rev_num

Sets the MST configuration revision number

Switch(config-mst)#instance inst vlan range

Maps the VLANs to an MST instance

Switch#show spanning-tree mst configuration



Instance(实例)0缺省情况下所有的VLAN都属于实例0

Switch#show spanning-tree mst X

X为数字,MST实例)



posted on 2005-05-11 11:07  cunshen  阅读(1140)  评论(1)    收藏  举报