2
0
mirror of https://github.com/gnu4cn/ccna60d.git synced 2024-05-21 04:55:00 +08:00
This commit is contained in:
Peng Hailin 2016-08-31 15:02:31 +08:00
parent c5010ac61a
commit 6534da5366
4 changed files with 94 additions and 93 deletions

View File

@ -15,3 +15,6 @@
* [第十三天, OSPF版本3](d13-OSPFv3.md)
* [第十四天, DHCP及DNS](d14-DHCP-and-DNS.md)
* [第十五天, 一二层排错](d15-Layer_1-and-Layer_2-Troubleshooting.md)
* [第三十一天, 生成树协议](d31-Spanning-Tree-Protocol.md)
* [第三十二天, 快速生成树协议](d32-Rapid-Spanning-Tree-Protocol.md)
* [第三十三天, 以太网通道及链路聚合协议](d33-EtherChannels-and-Link-Aggregation-Protocols.md)

View File

@ -6,10 +6,10 @@
##第31天任务
+ 阅读今天的课文
+ 完成今天的实验
+ 阅读ICND2记诵指南
+ 在[subneting.org](http://subnetting.org/)上花15分钟
- 阅读今天的课文
- 完成今天的实验
- 阅读ICND2记诵指南
- 在[subneting.org](http://subnetting.org/)上花15分钟
生成树协议Spanning Tree Protocol, STP的作用, 是在具备冗余的交换网络拓扑中,允许存在多条物理链路的同时, 通过建立一个无循环逻辑拓扑阻止网络上循环的发生the role of Spanning Tree Protocol(STP) is to prevent loops from occuring on your network by creating a loop-free logical topology, while allowing physical links in redundant switched network topologies。随着网络中所用到交换机数量的急剧增加以及传播VLAN信息的主要目的下围绕网络数据帧无尽循环问题开始出现。
@ -17,13 +17,13 @@
今天将学习以下内容。
+ STP的需求the need of STP
+ STP桥IDSTP Bridge ID
+ STP根桥选举STP Root Bridge election
+ STP开销及优先级STP cost and priority
+ STP根及候选端口STP Root and Designated Ports
+ STP增强STP enhancements
+ STP排错Troubleshooting STP
- STP的需求the need of STP
- STP桥IDSTP Bridge ID
- STP根桥选举STP Root Bridge election
- STP开销及优先级STP cost and priority
- STP根及候选端口STP Root and Designated Ports
- STP增强STP enhancements
- STP排错Troubleshooting STP
本课对应了以下CCNA大纲要求。
@ -47,11 +47,11 @@ STP运行着一种算法用于根据所考虑的特定VLAN决定出哪些
**位处生成树域中的所有交换机都使用BPDUs来沟通和交换报文。**STP利用BPDUs的交换来确定网络拓扑而网络拓扑则是由以下三个变量决定的。
+ 与各台交换机相关联的唯一MAC地址交换机识别符the unique MAC address(switch identifier) that is associated with each switch
- 与各台交换机相关联的唯一MAC地址交换机识别符the unique MAC address(switch identifier) that is associated with each switch
+ 各个交换机端口到根桥的路径开销the path cost to the Root Bridge associated with each switch port
- 各个交换机端口到根桥的路径开销the path cost to the Root Bridge associated with each switch port
+ 各个交换机端口的端口识别符该端口的MAC地址the port identifier(MAC address of the port) associated with each switch port
- 各个交换机端口的端口识别符该端口的MAC地址the port identifier(MAC address of the port) associated with each switch port
BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测及拓扑信息交换。BPDUs的两个类型分别是**配置BPDUs**及**拓扑变化通知BPDUs**Configuration BPDUs and Topology Change Notification BPDUs; 这里只会对配置BPDUs进行说明。
@ -71,15 +71,15 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
配置BPDU交换的完成导致以下动作。
+ 选举出整个生成树域的根桥, a Root Switch is elected for the entire Spanning Tree domain
- 选举出整个生成树域的根桥, a Root Switch is elected for the entire Spanning Tree domain
+ 选举出生成树域中所有非根交换机上的根端口a Root Port is elected on every Non-Root Switch in the Spanning Tree domain
- 选举出生成树域中所有非根交换机上的根端口a Root Port is elected on every Non-Root Switch in the Spanning Tree domain
+ 选举出所有LAN网段中的候选交换机a Designated Switch is elected for every LAN segment
- 选举出所有LAN网段中的候选交换机a Designated Switch is elected for every LAN segment
+ 选举出所有网段的候选交换机的候选端口(根交换机上的所有活动端口也都是候选端口)a Designated Port is elected on the Designated Switch for every segment(all active ports on the Root Switch are also designated)
- 选举出所有网段的候选交换机的候选端口(根交换机上的所有活动端口也都是候选端口)a Designated Port is elected on the Designated Switch for every segment(all active ports on the Root Switch are also designated)
+ 通过阻塞冗余路径网络中的循环得以消除loops in the network are eliminated by blocking redundant paths
- 通过阻塞冗余路径网络中的循环得以消除loops in the network are eliminated by blocking redundant paths
> **注意:**随着逐步深入本模块内容,这些特性将会一一介绍。
@ -119,15 +119,15 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
生成树算法Spanning Tree Algorithm, STA定义了STP控制下端口在进入到活动的转发状态之前需要经历的几种状态。802.1D标准中端口状态有下面这些。
+ 阻塞中 -- 仅接收BPDUs为期20s blocking -- BPDUs received only (20 seconds)
- 阻塞中 -- 仅接收BPDUs为期20s blocking -- BPDUs received only (20 seconds)
+ 侦听中 -- 有BPDUs发出和接收为期15slistening -- BPDUs sent and received (15 seconds)
- 侦听中 -- 有BPDUs发出和接收为期15slistening -- BPDUs sent and received (15 seconds)
+ 学习中 -- 桥接表被建立起来为期15slearning -- bridging table is built (15 seconds)
- 学习中 -- 桥接表被建立起来为期15slearning -- bridging table is built (15 seconds)
+ 转发中 -- 发送/接收数据forwarding -- sending/receiving data
- 转发中 -- 发送/接收数据forwarding -- sending/receiving data
+ 关闭 -- 管理性关闭disabled -- administratively down
- 关闭 -- 管理性关闭disabled -- administratively down
端口按以下方式在这些状态间依序移动。
@ -143,11 +143,11 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
在该过程中用到**STP计时器**来控制收敛。
+ Hello计时器 -- 2s每个配置BPDU直接的时间
- Hello计时器 -- 2s每个配置BPDU直接的时间
+ 转发延迟计数器 -- 15s侦听/控制学习状态的为期Forward Delay -- 15 seconds (controls durations of Listening/Learning states)
- 转发延迟计数器 -- 15s侦听/控制学习状态的为期Forward Delay -- 15 seconds (controls durations of Listening/Learning states)
+ 最大存活时间 -- 20s控制阻塞状态的为期Max Age -- 20 seconds (controls the duration of the Blocking state)
- 最大存活时间 -- 20s控制阻塞状态的为期Max Age -- 20 seconds (controls the duration of the Blocking state)
**默认收敛时间是30到50秒。**
@ -157,17 +157,17 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
处于阻塞状态的交换机端口,完成以下动作。
+ 丢弃在该端口上接收到的来自所连接网段的数据帧discards frames received on the port from the attached segment
- 丢弃在该端口上接收到的来自所连接网段的数据帧discards frames received on the port from the attached segment
+ 丢弃交换自另一端口的数据帧discards frames switched from another port
- 丢弃交换自另一端口的数据帧discards frames switched from another port
+ 不将工作站地址放入到其地址数据库中does not incorporate station location into its address database
- 不将工作站地址放入到其地址数据库中does not incorporate station location into its address database
+ 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
- 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
+ 不传送自系统模块接收到的BPDUsdoes not transmit BPDUs received from the system module
- 不传送自系统模块接收到的BPDUsdoes not transmit BPDUs received from the system module
+ 接收网络管理报文并对这些报文进行响应receives and responds to network management messages
- 接收网络管理报文并对这些报文进行响应receives and responds to network management messages
###生成树侦听状态
@ -175,17 +175,17 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
侦听状态是端口在阻塞状态之后所进入的第一个过渡状态。在STP确定端口应参与到帧转发时该端口就进入此状态。处于侦听状态的交换机端口完成以下动作。
+ 丢弃接收自所连接网段的帧, discards frames received from the attached segment
- 丢弃接收自所连接网段的帧, discards frames received from the attached segment
+ 丢弃转发自另一端口的帧, discards frames switched from another port
- 丢弃转发自另一端口的帧, discards frames switched from another port
+ 不将工作站地址加入到其地址数据库does not incorporate station location into its address database
- 不将工作站地址加入到其地址数据库does not incorporate station location into its address database
+ 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
- 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
+ 接收、处理并传送接收自系统模块的BPDUs, receives, processes, and transmits BPDUs received from the system module
- 接收、处理并传送接收自系统模块的BPDUs, receives, processes, and transmits BPDUs received from the system module
+ 对网络管理报文进行接收和响应receives and responds to network management messages
- 对网络管理报文进行接收和响应receives and responds to network management messages
###生成树学习状态
@ -193,17 +193,17 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
学习状态是端口所进入的第二个过渡状态。此状态在侦听状态之后且在端口进入转发状态之前到来。在此状态中端口学习MAC地址并将学习到的MAC地址装入到其转发表中。处于学习状态的交换机端口完成以下动作。
+ 丢弃接收自所连接网段的帧, discards frames received from the attached segment
- 丢弃接收自所连接网段的帧, discards frames received from the attached segment
+ 丢弃转发自另一端口的帧, discards frames switched from another port
- 丢弃转发自另一端口的帧, discards frames switched from another port
+ 将工作站地址加入到其地址数据库incorporates(installs) station location into its address database
- 将工作站地址加入到其地址数据库incorporates(installs) station location into its address database
+ 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
- 接收BPDUs并将这些BPDUs引导给系统模块receives BPDUs and directs them to the system module
+ 接收、处理并传送接收自系统模块的BPDUs, receives, processes, and transmits BPDUs received from the system module
- 接收、处理并传送接收自系统模块的BPDUs, receives, processes, and transmits BPDUs received from the system module
+ 对网络管理报文进行接收和响应receives and responds to network management messages
- 对网络管理报文进行接收和响应receives and responds to network management messages
###生成树转发状态
@ -211,17 +211,17 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
转发状态是端口在学习状态之后所进入的第三个过渡状态。处于转发状态的端口对帧进行转发。处于转发状态的交换机端口完成以下动作。
+ 转发接收自所连接网段的数据帧
- 转发接收自所连接网段的数据帧
+ 转发交换自另一端口的数据帧
- 转发交换自另一端口的数据帧
+ 将站点地址信息加入(安装)到其地址数据库
- 将站点地址信息加入(安装)到其地址数据库
+ 接收BPDUs并将这些BPDUs导向给系统模块
- 接收BPDUs并将这些BPDUs导向给系统模块
+ 处理接收自系统模块的BPDUs
- 处理接收自系统模块的BPDUs
+ 接收网络管理报文并对其进行响应
- 接收网络管理报文并对其进行响应
###生成树关闭状态
@ -230,17 +230,17 @@ BPDUs都是每两秒发出的此特性允许实现快速的网络循环探测
关闭状态不是端口正常STP进展的部分。而是端口被网络管理员进行管理性关闭或因为某种错误条件而被系统所关闭时就被认为处于关闭状态。关闭的端口完成以下动作。
+ 丢弃接收自所连接网段的数据帧
- 丢弃接收自所连接网段的数据帧
+ 丢弃转发自另一端口的数据帧
- 丢弃转发自另一端口的数据帧
+ 不将工作站地址加入其地址数据库
- 不将工作站地址加入其地址数据库
+ 接收BPDUs但不将这些BPDUs导向给系统模块
- 接收BPDUs但不将这些BPDUs导向给系统模块
+ 不接收来自系统模块的BPDUs
- 不接收来自系统模块的BPDUs
+ 对网络管理报文进行接收和响应
- 对网络管理报文进行接收和响应
##生成树桥ID
@ -311,14 +311,14 @@ Fa0/2 128.2 19 FWD 19 32770 0008.21a9.4f80 128.2
**考试技巧:**如要强制某台交换机成为根桥可执行下面的命令同时参见下图31.6)。
+ 可以手动设置优先级
- 可以手动设置优先级
```
Switch(config)#spanning-tree vlan 2 priority ?
<0-61440> bridge priority in increments of 4096
```
+ 或者使用宏命令`primary`或`secondary`将其设置为根桥
- 或者使用宏命令`primary`或`secondary`将其设置为根桥
```
Switch(config)#spanning-tree vlan 2 root ?
@ -504,8 +504,8 @@ STP选举出两种类型用于转发BPDUs的端口指向根桥的根端口
如早前指出的那样STP对其所在环境做出以下两点假设。
+ 所有链路都是双向的,而能够发送和接收桥协议数据单元。
+ 所有交换机都能正常地接收、处理及发出BPDUs
- 所有链路都是双向的,而能够发送和接收桥协议数据单元。
- 所有交换机都能正常地接收、处理及发出BPDUs
在现实世界的网络中这两个假设并不总是正确。在这种情况下STP就可能无法阻止网络中循环的形成in situations where that is the case, STP may not be able to prevent loops from being formed within the network。正是由于存在这种可能且为提升基本的802.1D STA性能思科引入了一些对IEEE 802.1D标准的增强,将在下面进行说明。
@ -571,12 +571,12 @@ BPDU守护与BPDU过滤器两个特性常常混淆或甚至被想成是同一个
在循环守护开启时Switch 3保持对所有非候选端口的追踪。在端口持续接收到BPDUs时该端口就是好的但如该端口停止接收到BPDUs就被转移到循环不一致状态a loop-inconsistent state。也就是说在循环守护开启时STP端口状态机the STP port state machine被修改为在缺少BPDUs时阻止该端口从非候选端口角色转变成候选端口角色in other words, when Loop Guard is enabled, the STP port state machine is modified to prevent the port from transitioning from the Non-Designated Port role to the Designated Port role in the absence of BPDUs。在应用循环守护时应知道以下这些应用准则。
+ 不能在开启了根守护Root Guard的交换机上开启循环守护, Loop Guard cannot be enabled on a switch that also has Root Guard enabled
+ 循环守护不影响上行快速Uplink Fast或骨干快速Backbone Fast的运行, Loop Guard does not affect Uplink Fast or Backbone Fast operation
+ 循环守护只是必须在点对点链路上开启Loop Guard must be enabled on Point-to-Point links only
+ 循环守护的运行不受生成树计时器的影响Loop Guard operation is not affected by the Spanning Tree timers
+ 循环守护无法真正探测出一条单向链路Loop Guard cannot actually detect a unidirectional link
+ 循环守护无法在端口快速或动态VLAN端口上开启Loop Guard cannot be enabled on Port Fast or Dynamic VLAN ports
- 不能在开启了根守护Root Guard的交换机上开启循环守护, Loop Guard cannot be enabled on a switch that also has Root Guard enabled
- 循环守护不影响上行快速Uplink Fast或骨干快速Backbone Fast的运行, Loop Guard does not affect Uplink Fast or Backbone Fast operation
- 循环守护只是必须在点对点链路上开启Loop Guard must be enabled on Point-to-Point links only
- 循环守护的运行不受生成树计时器的影响Loop Guard operation is not affected by the Spanning Tree timers
- 循环守护无法真正探测出一条单向链路Loop Guard cannot actually detect a unidirectional link
- 循环守护无法在端口快速或动态VLAN端口上开启Loop Guard cannot be enabled on Port Fast or Dynamic VLAN ports
###根守护
@ -658,9 +658,9 @@ RLQs的类型有两种RLQ请求和RLQ响应。**RLQ请求典型地在根端
STP故障通常有以下三类STP issues usually fall within the following three categories
+ 不正确的根桥, incorrect Root Bridge
+ 不正确的根端口, incorrect Root Port
+ 不正确的候选端口incorrect Designated Port
- 不正确的根桥, incorrect Root Bridge
- 不正确的根端口, incorrect Root Port
- 不正确的候选端口incorrect Designated Port
###不正确的根桥

View File

@ -4,11 +4,11 @@
#第32天任务
+ 阅读今天的课文
+ 复习昨天的课文
+ 完成今天的实验
+ 阅读ICND2记诵指南
+ 在网站[http://subnetting.org/](subnetting.org)
- 阅读今天的课文
- 复习昨天的课文
- 完成今天的实验
- 阅读ICND2记诵指南
- 在网站[http://subnetting.org/](subnetting.org)
IEEE 802.1D标准是在连通性从失去到恢复需要一分钟左右就被认为性能已经可观的时期设计出来的。在IEEE 802.1D STP下恢复大约需要50秒这其中包括20秒的最大老化计时器the Max Age timer超时以及额外的给端口从阻塞状态过渡到转发状态的30秒。
@ -16,8 +16,8 @@ IEEE 802.1D标准是在连通性从失去到恢复需要一分钟左右,就被
今天你将学到以下知识。
+ RSTP的需求, the need for RSTP
+ 配置RSTPRSTP configuration
- RSTP的需求, the need for RSTP
- 配置RSTPRSTP configuration
本课对应了以下CCNA大纲要求。
@ -39,18 +39,18 @@ IEEE 802.1W标准或者是快速生成树协议Rapid Spanning Tree Protoco
RSTP的各种端口状态可如下这样与STP端口状态对应起来。
+ 关闭 -- 丢弃Disabled -- Discarding
+ 阻塞 -- 丢弃Blocking -- Discarding
+ 侦听 -- 丢弃Listening -- Discarding
+ 学习 -- 学习Learning -- Learning
+ 转发 -- 转发Forwarding -- Forwarding
- 关闭 -- 丢弃Disabled -- Discarding
- 阻塞 -- 丢弃Blocking -- Discarding
- 侦听 -- 丢弃Listening -- Discarding
- 学习 -- 学习Learning -- Learning
- 转发 -- 转发Forwarding -- Forwarding
RSTP包含了以下的端口角色。
+ 根端口(转发状态), Root(Forwarding state)
+ 候选端口转发状态Designated(Forwarding state)
+ 可变端口阻塞状态Alternate(Blocking state)
+ 备份端口阻塞状态Bakup(Blocking state)
- 根端口(转发状态), Root(Forwarding state)
- 候选端口转发状态Designated(Forwarding state)
- 可变端口阻塞状态Alternate(Blocking state)
- 备份端口阻塞状态Bakup(Blocking state)
对于考试掌握上面这些着重号标记的内容是非常重要的尤其是哪些端口状态转发流量一旦网络完成收敛。图32.2及32.3分别演示了一个RSTP可变端口及一个RSTP备份端口。
@ -70,15 +70,13 @@ RSTP包含了以下的端口角色。
###RPVST+
**RPVST+**
快速的基于各VLAN的生成树加强版允许与PVST+一起使用802.1WRapid Per VLAN Spanning Tree Plus(RPVST+) allows for the use of 802.1W with PVST+。这就允许在每个VLAN都有一个单独的RSTP实例的同时提供比起802.1D STP所能提供的更为快速的收敛。**默认情况下在某台思科交换机上开启RSTP时也就在该交换机上开启了R-PVST+。**
快速的基于各VLAN的生成树加强版允许与PVST+ 一起使用802.1WRapid Per VLAN Spanning Tree Plus(RPVST+) allows for the use of 802.1W with PVST+。这就允许在每个VLAN都有一个单独的RSTP实例的同时提供比起802.1D STP所能提供的更为快速的收敛。**默认情况下在某台思科交换机上开启RSTP时也就在该交换机上开启了R-PVST+。**
这里有一些可用来记住IEEE STP规格字母命名的记忆窍门。
+ 802.1D(“经典的”生成树) -- It's dog-gone slow
+ 802.1W(快速生成树) -- Imagine Elmer Fudd saying "rapid" as "wapid"
+ 802.1S(多生成树) -- You add the letter "s" to nouns to make them plural(multiple) but this is a CCNP SWITCH subject
- 802.1D(“经典的”生成树) -- It's dog-gone slow
- 802.1W(快速生成树) -- Imagine Elmer Fudd saying "rapid" as "wapid"
- 802.1S(多生成树) -- You add the letter "s" to nouns to make them plural(multiple) but this is a CCNP SWITCH subject
##RSTP的配置

View File

@ -1,6 +1,6 @@
#第33天
**各种以太网通道及链路聚合协议**
**以太网通道及链路聚合协议**
**EtherChannels and Link Aggregation Protocols**