1 / 20

第 4 章 生成树协议及链路聚合

第 4 章 生成树协议及链路聚合. 教学大纲要求:. 掌握生成树协议 (STP) 的工作原理,主要包括 STP 产生的背景,根交换机产生的过程,主链路备份链路切换的过程, BPDU 中技术参数、技术标准的规定等 掌握快速生成树协议 (RSTP) 的工作原理,弄清 RSTP 对 STP 的改进 掌握在 STAR-S2126G 交换机上配置 STP 、 RSTP 的方法(包括根交换机的配置、端口优先级的配置) 掌握以太网链路聚合技术,包括链路聚合的实现方式及层次,链路聚合技术的注意事项. 本章内容. 交换网络中的冗余链路 生成树协议 STP 快速生成树协议 RSTP

dante
Download Presentation

第 4 章 生成树协议及链路聚合

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第4章 生成树协议及链路聚合

  2. 教学大纲要求: • 掌握生成树协议(STP)的工作原理,主要包括STP产生的背景,根交换机产生的过程,主链路备份链路切换的过程,BPDU中技术参数、技术标准的规定等 • 掌握快速生成树协议(RSTP)的工作原理,弄清RSTP对STP的改进 • 掌握在STAR-S2126G交换机上配置STP、RSTP的方法(包括根交换机的配置、端口优先级的配置) • 掌握以太网链路聚合技术,包括链路聚合的实现方式及层次,链路聚合技术的注意事项

  3. 本章内容 • 交换网络中的冗余链路 • 生成树协议STP • 快速生成树协议RSTP • 配置STP、RSTP • 以太网链路聚合

  4. 课程议题 • 交换网络中的冗余链路 • 生成树协议STP • 快速生成树协议RSTP • 配置STP、RSTP • 以太网链路聚合

  5. 交换网络问题 • 对于局域网交换机之间以及从交换机到高需求服务的许多网络连接来说,100M甚至1Gbps的带宽是不够的 瓶颈 100M/1000M链路 100M链路

  6. 链路聚合 • 端口聚合 • 将交换机上的多个端口在物理上连接起来,在逻辑上捆绑在一起,形成一个拥有较大宽带的端口,形成一条干路,可以实现均衡负载,并提供冗余链路。 • 802.3ad • 标准定义了如何将两个以上的以太网链路组合起来为高带宽网络连接实现负载共享、负载平衡以及提供更好的弹性.

  7. 链路聚合

  8. 802.3ad的主要优点 • 1、链路聚合技术(也称端口聚合(AP))帮助用户减少带宽瓶颈的压力。 • 2、链路聚合标准在点到点链路上提供了固有的、自动的冗余性。

  9. 3、流量平衡 802.3ad的主要优点 Aggregate port(AP)根据报文的源MAC地址、目的MAC地址或IP地址进行流量平衡,即把流量平均地分配到AP的成员链路中去。

  10. 配置aggregate port的注意事项 1.组端口的速度必须一致; 2.组端口必须属于同一个VLAN; 3.组端口使用的传输介质相同; 4.组端口必须属于同一层次,并与AP也要在同一层次。

  11. 配置二层aggregate port • 创建aggregate port Switch(config) # interfaceaggregateport n • 将该接口加入一个AP(如果这个AP 不存在,则同时创建这个AP)。 • Switch#configure terminal • Switch(config) # interfaceinterface-id • Switch(config-if-range)#port-group port- group-number

  12. 配置三层aggregate • Switch(config) #interface aggregateport port-number • Switch(config-if)#no switchport !将该接口设置为三层模式 • Switch(config-if)#ip address 192.168.1.1 255.255.255.0

  13. 配置AP 的流量平衡算法 • Switch(config) # aggregateport load-balance {dst-mac |src-mac |ip} • dst-mac 目的端MAC地址流量平衡 • src-mac 源端MAC地址流量平衡 • Ip 用于三层AP • 要将AP 的流量平衡设置恢复到缺省值(dst-mac),可以在全局配置模式下使用: • no aggregateport loag-balance 命令。

  14. 显示aggregate port • 可以在特权模式下显示AP 设置 • show aggregateport [port-number]{load-balance | summary}

  15. 实验 3.1 端口聚合提供冗余备份链路 • 实验内容:端口聚合提供冗余备份链路 • 实验目的:理解链路集合配置及原理 • 功能实现:增加交换机之间传输带宽实现链路冗余备份

  16. 实验步骤: 1.交换机A配置VLAN 10 并添加端口5 2.交换机A配置聚合端口 switchA(config)#interface aggregateport 1 switchA(config-if)#switchport mode trunk switchA(config)#int range fa o/1-2 switchA(config-if-rang)#port-group 1 switchA#show aggregateport 1 summary

  17. 3.交换机B配置VLAN 10 并添加端口5 4.交换机B配置聚合端口 switchB(config)#interface aggregateport 1 switchB(config-if)#switchport mode trunk switchB(config)#int range fa o/1-2 switchB(config-if-rang)#port-group 1 switchB#show aggregateport 1 summary 5.验证交换机间一条链路断开,PC1与PC2仍能通信:C:\> ping 192.168.10.30 -t

  18. 注意事项: • 两台交换机都配置完端口聚合后再连接,避免广播风暴 • 只有同类型端口才可以聚合 • 锐捷交换机最多支持6组聚合端口;一个AG最多支持8个端口;

  19. 课程回顾 • 交换网络中的冗余链路 • 生成树协议STP • 快速生成树协议RSTP • 配置STP、RSTP • 以太网链路聚合

More Related