Implementing Spanning Tree

Slides:



Advertisements
Similar presentations
實驗 9: 無線安全網路之建設.
Advertisements

網路硬體設備簡介 Crickstudy Authentication Institute.
CISCO产品培训 关于 CISCO CISCO 硬件平台 CISCO 软件平台 路由器介绍及配置 交换机介绍及配置 内部讲义.
NetGuru 創新 網路通訊實驗教學解決方案 PART I TCP/IP通訊協定深入剖析/以NetGuru實作
第3章 路由技术—动态路由.
第5章 交换机的选择和安装配置 教学目的: 在掌握交换机的基本原理和基本功能基础上,进一步学习交换机的分类、性能指标、选择,交换机的配置, 端口技术,VLAN技术,STP技术,交换机的管理等应用技术。
第3章 局域网互连 3.1 网络互连的层次 3.2 网络互连的设备 3.3 实例教学 3.4 VLAN路由配置 3.5 VPN互连远程局域网.
Routing Protocols and Concepts – Chapter 3
生成树协议.
安徽广播电视大学 组网技术与配置(第2版) 第8章 路由器的配置 汪本标.
网络设备的基本配置与管理 -----许乐 网络管理骨干教师培训 网络设备的基本配置与管理 -----许乐
第31讲 帧中继技术FR 主讲:史宝会.
PPP协议 点到点协议 深圳职业技术学院电信学院网络技术专业.
PPP协议 点到点协议 深圳职业技术学院计算机系网络专业.
第 1 章 网络设备的选择与连接 学习目标: (1)对于网络设备有所了解,能够正确选择网络设备 (2)能够购置网络设备
HL-006 广域网协议原理及配置 ISSUE 4.0 此为封面页,需列出课程编码、课程名称和课程开发室名称。
第 6 章 IP 遶送.
Cisco網路設備之設定與管理 台大計資中心 李美雯
5.5 网桥 网桥是用来连接局域网的互连设备,工作在数据链路层。 转发局域网之间的数据帧,必要时进行帧格式转换 能隔离以太网中的碰撞
Core Switch 設定 Port的開啟與關閉 Virtual LAN建立 將Port指定到Virtual LAN
學校網路設備規畫與建置 報告人:莊斯凱.
交换 Cisco三层模型 交换机基本配置 VLAN VTP.
高雄應用科技大學 有線網路建置實習(I) 聯易科技股份有限公司 Ben 李政勳
第二章 跨交换机的VLAN通讯 Version 1.0.
IPv6 技術與服務 台東大學 電算中心 郭俊賢 技術師.
NTPC D-Link產品教育訓練 D-Link Taiwan 友訊科技台灣分公司 TTSS 電信技術支援課 Name:
網路技術管理進階班---區域網路的技術發展
乙太被動式光纖網路中 具流量感知性質之節能機制設計 The Design of Loading Aware Power Saving Mechanisms in Ethernet Passive Optical Network 學生:簡嘉志 指導教授:吳和庭 博士 2016/07/31.
基礎網路管理 第十一章 OSPF路由協定 製作:林錦財.
陈开恒 交换机及 虚拟局域网 组网技术 陈开恒
交换机、虚拟局域网组网 (VLAN)技术与配置
實驗 3:Layer 2 交換器裝置之安全性設定與操作
项目五 构建与互联网可靠连接的小企业骨干网
网络设备配置与管理 子项目1 登录与管理交换机.
32 bit destination IP address
知 识 回 顾 1、什么是虚拟局域网?有什么特点? 2、常见划分VLAN的方法有哪些? 3、如何根据端口划分VLAN?
第 9 章 虛擬區域網路 (VLAN).
HL-003 以太网高级技术 ISSUE 1.1 江西陶瓷工艺美术职业技术学院.
聚合端口.
实现内部VLAN间路由 描述VLAN间路由 三层交换,VLAN间路由。.
Implementing Spanning Tree
锐捷网络技术培训系列课程-(中级) OSPF协议 培训组 闵 捷.
Access Networks.
网络技术培训之 以太网技术讲解 主讲人:辛庆祥 宽带产品技术支持部 2002/3.
Speaker: 錢世傑(Shieh-Chieh Chien)
锐捷网络实验室项目培训 交换技术.
DGS-1510 基隆教網教育訓練文件.
RG-N18000K.
CISCO基本指令 課程補充教材.
网络系统集成技术 访问控制列表 Access Control List 第七章.
公司 : 岱昇科技股份有限公司 專案負責人:翁宇宏 報告人:高一生
江西财经大学信息管理学院 《组网技术》课程组
定义 VLAN 配置 Trunk.
以太网第二层交换机.
VTP LAN 交换和无线-第四章.
实现 生成树 实现 RSTP.
第二章 防火墙基础技术.
交换机基本配置.
网络管理与维护综合实训 模块:交换机配置与管理 实训三:不同VLAN之间通信的实现 计算机网络技术教研室 2007年10月 授课教师:薛刚.
项目四 网络隔离与广播风暴控制.
2026配置.
网络系统集成技术 管理交换网络中的冗余链路 第四章.
Westmont College 网络互连 Part 4 (传输协议, UDP and TCP, 协议端口)
VLAN间路由 LAN 交换及无线–第 6 章.
Implementing High Availability in a Campus Environment
宁波市高校慕课联盟课程 与 进行交互 Linux 系统管理.
第十三章 使用VLAN扩展交换网络.
第8章 網際網路協定IPv6介紹與設定 蕭志明老師 CCNA教學.
Link Layer &一點點的Physical Layer
ADX series Configuration
Presentation transcript:

Implementing Spanning Tree Configuring Link Aggregation with EtherChannel

EtherChannel Logical aggregation of similar links(逻辑的聚合) Load balances(负载均衡) Viewed as one logical port(逻辑的一个端口) Redundancy(具有冗余性) 提高吞吐量! 最多捆绑8个端口,但端口介质类型,速度,双工等都必须相同,包括本征,总之都得相同

Dynamic Trunk Negotiation Protocols PAgP(端口聚合协议) Cisco proprietary LACP (链路聚合控制协议) IEEE 802.3ad standard

About EtherChannel Configuration Commands Configure PAgP interface port-channel {channel-group-number} channel-protocol pagp channel-group 1 mode {mode} Verify show interfaces fastethernet 0/1 etherchannel show etherchannel 1 port-channel show etherchannel 1 summary

Pagp配置举例 On:无条件建立,不协商(不发送pagp数据包) Auto:自动,被动状态等待请求 Desirable:主动请求 Sw(config)# int range xx,xx-xx # channel-protocol pagp # channel-group number mode | on | auto | desirable On:无条件建立,不协商(不发送pagp数据包) Auto:自动,被动状态等待请求 Desirable:主动请求 默认为“silent”。沉默设置被用于连接到文件服务器或包分析仪如果交换机连接到有PAgP能力的伙伴(如果15s没有收到数据包,建立以太信道),也可以将接口配置为non silent(非沉默),不收到pagp数据包不建立以太信道。 注意:2层EtherChannel其实可以不需要配置interface port-channel 的,直接指定完物理接口属性就完事。(port channel是channel group中的所有接口虚拟出来的一个虚拟接口 )

Pagp

Lacp配置举例 Sw(config)# lacp system-priority x (1-65535,默认32768) Sw(config)# int range xx,xx-xx # channel-protocol lacp # channel-group number mode {active | on | passive} # lacp port-priority x (1-65535,默认32768) lacp system-priority:此命令定义lacp系统优先级,小的胜出。信道的管理者。 Active:主动请求 On:无条件建立 Passive:被动等待请求 lacp port-priority:定义活动接口, 小的为活动接口,大的是备用的。 注意:以太信道on模式不发送接收pagp(lacp)数据包,所以2端都得on Desirable(active)模式,请求远端建立信道,另一端必须是主动或被动 2端都被动的不能建立信道

Lacp

Configuring Layer 2 EtherChannel Switch(config)#interface range interface slot/port - port Specifies the interfaces to configure in the bundle Switch(config-if-range)#channel-protocol {pagp | lacp} Specifies the channel protocol—either PAgP or LACP Switch(config-if-range)#channel-group number mode {active | on | auto | desirable | passive} Creates the port-channel interface and places the interfaces as members 在配置lacp的时候可以设置优先级,系统优先级以及端口优先级,越小越好 Switch(config)# lacp system-priority(1-65535/32768) Switch(config-interf)# lacp port-priority(1-65535/32768) 选择系统优先级小的,由它来决定以太信道的组成,如果一样,比较mac。端口优先级小的参加链路捆绑,大的为备用

Configuring Layer 2 EtherChannel Switch# configure terminal Switch(config)# interface range gigabitethernet0/1 -2 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 10 Switch(config-if-range)# channel-group 5 mode desirable Switch(config-if-range)# end Switch# configure terminal Switch(config)# interface range gigabitethernet0/1 -2 Switch(config-if-range)# switchport trunk encapsulation isl Switch(config-if-range)# switchport mode trunk Switch(config-if-range)# channel-group 5 mode desirable Switch(config-if-range)# end 注意:这些汇聚的端口属性必须的相同!

Configuring Layer 2 EtherChannel 我们也可以这样配置2层: 1 进入接口 2 配置channel-group 协议 3 配置channel-group 模式 4 进入interface port-channel 5 配置interface port-channel的额外参数(比如access类型,trunk类型,trunk allowed等)

Configuring Layer 3 EtherChannel 二层接口和三层接口的区别: 二层接口不能配置IP地址,不能宣告进路由协议,只能对二层以太网帧进行转发。 三层接口可以配置IP地址,可运行路由协议,能接收IP包并且转发。

Configuring Layer 3 EtherChannel Switch(config)#interface port-channel port-channel-number Creates a port-channel interface Switch(config-if)#no switchport Switch(config-if)#ip address address mask Specifies L3 and assigns an IP address and subnet mask to the EtherChannel Switch(config)#interface interface slot/port Specifies an interface to configure Switch(config-if)#no switchport Switch(config-if)#channel-group number mode {auto | desirable | on} Configures the interface as L3 and specifies the port channel and the PAgP mode

Configuring Layer 3 EtherChannel Switch# configure terminal Switch(config)# interface port-channel 5 Switch(config-if)# no switchport Switch(config-if)# ip address 172.168.1.1 255.255.255.0 Switch(config-if)# interface range gigabitethernet0/1 -2 Switch(config-if-range)# no ip address Switch(config-if-range)# no switchport Switch(config-if-range)# channel-group 5 mode desirable Switch(config-if-range)# end *:Port-channel配置了IP地址,物理接口上不能配IP地址

EtherChannel配置注意 EtherChannel配置注意 1、Catalyst最多支持8个端口进行捆绑,并且不支持10Mbit/s的端口。 2、一个EtherChannel的所有端口必须使用相同协议,PAgP或者LACP。 3、一个EtherChannel的所有端口具有相同的速度和双工模式,LACP要求端口只能工作在全双工模式。 4、一个端口不能同时属于多个通道组。 5、一个EtherChannel的所有端口必须分配到相同的接入Vlan中,或者Trunk干道中,但这个Trunk干道必须有相同的Vlan许可列表和相同的Native Vlan。 6、一个EtherChannel的所有端口应该配置相同的干道模式。 7、一个EtherChannel的所有端口要求具有相同的Vlan配置。 8、如果某个端口被配置成为SPAN(SPAN技术主要是用来监控交换机上的数据流 ),那么就不允许捆绑成EtherChannel。

Verifying EtherChannel Switch#show running-config interface port-channel num Displays port-channel information Switch#show running-config interface interface x/y Displays interface information Switch#show run interface port-channel 1 Building configuration... Current configuration : 66 bytes ! interface Port-channel1 switchport mode dynamic desirable end Switch#show run interface gig 0/9 Building configuration... Current configuration : 127 bytes ! interface GigabitEthernet 0/9 switchport mode dynamic desirable channel-group 2 mode desirable channel-protocol pagp end interface Port-channel2 switchport trunk encapsulation dot1q switchport mode trunk switchport nonegotiate no ip address ! interface GigabitEthernet0/9 description DSW121 0/9-10 -- DSW122 0/9-10 duplex full speed 100 channel-group 2 mode desirable interface GigabitEthernet0/10

Verifying EtherChannel (Cont.) Switch#show interfaces gigabitethernet 0/9 etherchannel Port state = Up Mstr In-Bndl Channel group = 1 Mode = Desirable-Sl Gcchange = 0 Port-channel = Po2 GC = 0x00020001 Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Flags: S - Device is sending Slow hello. C - Device is in Consistent state. A - Device is in Auto mode. P - Device learns on physical port. d - PAgP is down. Timers: H - Hello timer is running. Q - Quit timer is running. S - Switching timer is running. I - Interface timer is running. Local information: Hello Partner PAgP Learning Group Port Flags State Timers Interval Count Priority Method Ifindex Gi0/9 SC U6/S7 H 30s 1 128 Any 15 Partner's information: Partner Partner Partner Partner Group Port Name Device ID Port Age Flags Cap. Gi0/9 DSW122 0005.313e.4780 Gi0/9 18s SC 20001 Age of the port in the current state: 00d:20h:00m:49s

Guidelines for Configuring EtherChannel

Guidelines for Configuring EtherChannel (Cont.)

EtherChannel Guidelines Switch#show run interface FastEthernet0/9 description DSW121 0/9-10 - DSW122 0/9-10 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,21-28 switchport mode trunk switchport nonegotiate duplex full speed 100 channel-group 2 mode desirable ! interface FastEthernet0/10

EtherChannel Load Balancing Switch(config)# port-channel load-balance src-mac

Configuring EtherChannel Load Balancing Switch(config)#port-channel load-balance type Configures EtherChannel load balancing 以太信道中不是平均的分配流量,而是根据散列算法的结果来决定将数据转发到哪。可以根据:源ip,目的ip,源目的ip的组合,源mac,目的mac,源目的mac组合,端口号。 可以根据位,或者xor(异或),来算结果。源目的组合的按xor,其他按位算 只有多层交换机可按照端口来计算。 Switch#show etherchannel load-balance Source XOR Destination IP address *用变化最多的方法做负载均衡

Summary EtherChannel increases bandwidth and provides redundancy by aggregating individual links between switches. EtherChannel can be dynamically configured between switches using either PAgP or LACP. Etherchannel is configured and verified using a variety of show commands. Best practices should be followed for EtherChannel configuration. EtherChannel load balances traffic over all the links in the bundle.