链路聚合技术_第1页
链路聚合技术_第2页
链路聚合技术_第3页
链路聚合技术_第4页
链路聚合技术_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、链路聚合技术标准化文件发布号:(9456-EUATWK-MWUB-WUNN-INNUL-DDQTY-KII链路聚合简介1.链路聚合原理将两个或更多数据信道结合成一个单个的信道,该信道以一个单个的更高带宽的逻辑链路出现。链路聚合一般用来连接一个或多个带宽需求大的设备2.作用将多个物理以太网端口聚合在一起形成一个逻辑上的聚合组,使用链路聚合服务的上层实体把同一聚合组内的多条物理链路视为一条逻辑链路3. LACP协议Link Aggregation Control Protocol 链路聚合控制协议LACP 协议通过LACPDU (Link Aggregation Control Protocol

2、Data Unit,链路聚合 控制协议数据单元)与对端交互信息。使能某端口的LACP协议后,该端口将通过发送LACPDU向对端通告自己的系 统LACP协议优先级、系统MAC、端口的LACP协议优先级、端口号和操作Key。对端接收到LACPDU后,将其中的信息与其它端口所收到的信息进行比较,以选 择能够处于Selected状态的端口,从而双方可以对端口处于Selected状态达成一 致。操作Key是在链路聚合时,聚合控制根据端口的配置(即速率、双工模式、 up/down状态、基本配置等信息)自动生成的一个配置组合。在聚合组中,处于Selected 状态的端口有相同的操作Key。4. 链路聚合的端

3、口的注意事项1端口均为全双工模式;2端口速率相同;3端口的类型必须一样,比如同为以太口或同为光纤口;4端口同为access端口并且属于同一个vlan或同为trunk端口 ;5如果端口为trunk端口,则其allowed vlan和nativevlan属性也应该相 同。5. 链路聚合配置命令1) CISCOa) 把指泄端口给聚合组,并指立聚合方式SW (config) interface EthernetO/1SW (config-ethernetO/2) #port-group 1 mode (active|passive|on)b) 进入聚合端口的配苣模式SW (config) #inter

4、face port-channel 1进入该模式可以配置一些端口参数c) 爼词解释Port-channel 组号:范圉是 1-16聚合模式 active (0)启动端口的LACP协议,并设置为Active模式; passive (1)启动端口的LACP协议,并且设置为Passive模式;on (2)强制端口加入Port Channel,不启动LACP协议。2) H3C手工聚合方式a) 创建手工聚合组1link-aggregation group 1 mode manualb) 将端口加入聚合组interface ethernetO/1port link-aggregation group 1采

5、用静态LACP聚合方式a)设置系统的LACP协议优先级(可选)Lacp system-priority system-priority / 缺省情况下是 32768b)创建静态LACP聚合组link-aggregation group 1 mode staticc)将端口加入聚合组interface ethernetO/1port link-aggregation group 1d) 配置端口 LACP的优先级(可选)Lxp port-priority port-priority / 缺省情况下是 327681)作用自适应负载平衡Fast EtherChannel处理多个链路间的通信量负载平衡

6、任务。负载平衡在冗 余并行路径间平均分配通信量。如果任何一个链路失效,其他的链路将自动 接管这个负载份额而不会中断。2)配置命令CISCOSW config#portchannel load-balanee method源地址sre-ip目的地址dst ip源和目的sre dst ip源 mac 地址 sre macH 的 mac 地址 dst mac源和目的 mac sre dst mac源端口号 sre port目的端口号dst-port源和U的端口号sre-dst-portH3Clink-aggregation loadng mode destinationip | destinatio

7、rvport | ip- protocol | source-ip | sourceport 二、实验Cisco私有的PAgP的链路聚合协议配置(PT模拟2层)1.实验拓扑3560-24PSSW0FaO/2逊3560-24PSSW1说明:默认情况下,交换机会使用STP协议阻塞其中某个端口,因为上面的网络 存在环路。使用PAgP链路聚合充分利用冗余的链路带宽2.配置Switch>enSwitchttconf tSwitch(config)#hostname SWOSWO(config)#int ra fa 0/1-2SWO(config-if-range)#no shSWO(c on fi

8、g-if-ra nge)#switchportSWO(c on fig-if-ra nge)#cha nn el-protocollacp Prepare interface for LACP protocolpagp Prepare interface for PAgP protocolSWO(config-if-range)#channel-protocol pagpSWO(c on fig-if-ra nge)#cha nn el-group<l-48> Channel group numberSWO(c on fig-if-ra nge)#cha nn el-group 1

9、 modeactive Enable LACP unconditionallyautoEnable PAgP only if a PAgP device is detecteddesirable Enable PAgP unconditionallyon Enable Etherchannel onlypassive Enable LACP only if a LACP device is detectedSWO(config-if-range)#channel-group 1 mode desirable 主动进入协商状态Switch>enSwitch#conf tSwitch(con

10、fig)#hostname SW1SWl(config)#int ra fa 0/1-2SW1 (config-if-range)#no shSW1 (config-讦 range) #switchportSW1 (config讦-range)#channel-protocol pagpSW1 (config-if-range)#channel-group 1 mode auto 被动进入协商模式Switch(config-if-ra nge)#%LINK-5-CHANGED: Interface Port-channel 1, changed state to up%LINEPROTO-5-

11、UPDOWN: Line protocol on Interface Port-channel 1,changed state to upSwitch(config-if-ra ng e)#3.验证查看聚合组信息SWO(config-if-range)#do show etherchannel port-channelChannel-group listing:Group: 1Port-channels in the group:Port-channel: PolAge of the Port-channel = 00d:00h:01m:56sLogical slot/port = 2/1 N

12、umber of ports = 2GC= 0x00000000 HotStandBy port = nullPort state= Port-channelProtocol= PAGPPort Security = DisabledPorts in the Port-channel:Index Load Port EC state No of bits+000 Fa0/l Desirable-SI 0000Fa0/2 Desirable-SI 0Time since last port bundled: 00d:00h:01m:05sFa0/2SW0(co nfig-ifrange)#查看聚

13、合链路的汇总信息SW0(config-if-range)#do show etherchannel summaryFlags: D - down P - in port-channelI - staone s - suspendedH - Hot-standby (LACP only)R - Layer3 S - Layer2 二层U in use f - failed to allocate aggregatoru - unsuitable for bundlingw - waiting to be aggregatedd - default portNumber of channel-gr

14、oups in use: 1Number of aggregators:1Group Port-channel Protocol Ports+1 Pol(SU) PAgP FaO/l(P) Fa0/2(P)SW0(co nfig-if-range)#4.测试容错性配置SWO和SW1的VLAN 1的IP地址,测试聚合链路的容错SW0(config-if-range)#int vian 1SWO(config-if)#no shutdownSWO(config-if)#ip add 192.168.1.1 255.255.255.0SWO(config-if)#SWl(config-if-rang

15、e)#int vian 1SWl(config-if)#no shSWl(config-if)#ip add 192.168.1.2 255.255.255.0SWl(config-if)#测试聚合端口的兀余容错特性在SW0上向SW1持续发送ICMP数据包SW0(config-if)#do pingProtocol ip: ipTarget IP address: 192.168.1.2Repeat count 5: 10000Datagram size 100: 100Timeout in seconds 2: 2Extended comma nds n: nSweep range of s

16、izes nJ: nType escape sequenee to abortSen ding 10000, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: ! iiiiiiiiiiiiii然后在SW1上将聚合组中的fa 0/2关掉,观察ping数据包是否中断SWl(config)#int fa 0/2SWl(config-if)#no shSWl(config-if)#no shutdownSWl(config-if)#shSWl(c on fig-if)#shutdow n%LINK-5-CHANGED: Interfac

17、e FastEthernetO/2, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernetO/2, changed state to downSWl(config-if)#!%LINK-5-CHANGED: Interface FastEthernetO/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernetO/2, changed state to downSuccess rate is 92 percen

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论