Cisco链路聚合协议实验

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

链路聚合协议实验实验目的:1、掌握其于Cisco私有的PAgP的链路聚合协议的配置方法。2、掌握第二层与第三层的PAgP配置区别。3、PAgP为Cisco私有链路聚合协议。实验拓扑图:实验步骤及要求:1、本实验使用两台CiscoCatalyst3750交换机。并按照拓扑连接相应的交换机的线缆。2、为了能够保证实验成功,因此建议将Fa1/0/1–22号接口置为shutdown状态。3、在SW1或SW2上查看交换机的STP信息:SW1#showspanning-treeVLAN0001SpanningtreeenabledprotocolieeeRootIDPriority32769Address0014.a8e2.9880Cost19Port25(FastEthernet1/0/23)HelloTime2secMaxAge20secForwardDelay15secBridgeIDPriority32769(priority32768sys-id-ext1)Address0014.a8f1.9880HelloTime2secMaxAge20secForwardDelay15secAgingTime300InterfaceRoleStsCostPrio.NbrType------------------------------------------------------------------------Fa1/0/23RootFWD19128.25P2pFa1/0/24AltnBLK19128.26P2p[stanley1]SW1#4、STP协议虽然可以避免网络环路的问题。但是其仍然不能充分的利用冗余的链路带宽。为了解决链路带宽的问题,可以实施PAgP的链路聚合。5、在SW1和SW2上配置如下:SW1(config)#interfacerangefastEthernet1/0/23-24[stanley2]SW1(config-if-range)#switchport[stanley3]SW1(config-if-range)#channel-protocolpagp[stanley4]SW1(config-if-range)#channel-group1modedesirable[stanley5]Creatingaport-channelinterfacePort-channel1SW1(config-if-range)#exitSW1(config)#exitSW2(config)#interfacerangefastEthernet1/0/23-24SW2(config-if-range)#swSW2(config-if-range)#switchportSW1(config-if-range)#channel-protocolpagp[stanley6]SW2(config-if-range)#channel-group1modeauto[stanley7]Creatingaport-channelinterfacePort-channel1SW2(config-if-range)#exitSW2(config)#exit6、处于PAgP的Descirable模式的接口,其会主动的进入协商状态。而Auto模式会进入被动的进入协商状态。7、当在两台交换机完成相应配置后,IOS在配置过程中,会给出如下提示信息:00:32:28:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/0/23,changedstatetodown00:32:28:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/0/24,changedstatetodown[stanley8]00:32:37:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/0/23,changedstatetoup00:32:38:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/0/24,changedstatetoup[stanley9]0:37:18:%LINK-3-UPDOWN:InterfacePort-channel1,changedstatetoup00:37:19:%LINEPROTO-5-UPDOWN:LineprotocolonInterfacePort-channel1,changedstatetoup[stanley10]8、查看SW1的接口的聚合信息:SW1#showinterfacesfastEthernet1/0/23etherchannelPortstate=UpMstrIn-BndlChannelgroup=1Mode=Desirable-SlGcchange=0[stanley11]Port-channel=Po1GC=0x00010001Pseudoport-channel=Po1Portindex=0Load=0x00Protocol=PAgP[stanley12]Flags:S-DeviceissendingSlowhello.C-DeviceisinConsistentstate.A-DeviceisinAutomode.P-Devicelearnsonphysicalport.d-PAgPisdown.Timers:H-Hellotimerisrunning.Q-Quittimerisrunning.S-Switchingtimerisrunning.I-Interfacetimerisrunning.Localinformation:[stanley13]HelloPartnerPAgPLearningGroupPortFlagsStateTimersIntervalCountPriorityMethodIfindexFa1/0/23SCU6/S7H30s1128Any5001Partner'sinformation:[stanley14]PartnerPartnerPartnerPartnerGroupPortNameDeviceIDPortAgeFlagsCap.Fa1/0/23SW20014.a8e2.9880Fa1/0/2320sSAC10001Ageoftheportinthecurrentstate:00d:00h:06m:53sSW1#9、使用showetherchannelport-channel命令查看聚合组信息:SW1#showetherchannelport-channelChannel-grouplisting:----------------------Group:1----------Port-channelsinthegroup:---------------------------Port-channel:Po1------------AgeofthePort-channel=00d:00h:15m:37sLogicalslot/port=10/1Numberofports=2GC=0x00010001HotStandByport=nullPortstate=Port-channelAg-InuseProtocol=PAgPPortsinthePort-channel:IndexLoadPortECstateNoofbits------+------+------+------------------+-----------000Fa1/0/23Desirable-Sl0000Fa1/0/24Desirable-Sl0[stanley15]Timesincelastportbundled:00d:00h:10m:27sFa1/0/24SW1#10、查看聚合链路的汇总信息:SW1#showetherchannelsummaryFlags:D-downP-inport-channelI-stand-alones-suspendedH-Hot-standby(LACPonly)R-Layer3S-Layer2U-inusef-failedtoallocateaggregatoru-unsuitableforbundlingw-waitingtobeaggregatedd-defaultportNumberofchannel-groupsinuse:1Numberofaggregators:1GroupPort-channelProtocolPorts------+-------------+-----------+-----------------------------------------------1Po1(SU)PAgPFa1/0/23(P)Fa1/0/24(P)[stanley16]SW1#11、查看生成树信息:SW1#showspanning-tree………InterfaceRoleStsCostPrio.NbrType------------------------------------------------------------------------Po1RootFWD12128.616P2p[stanley17]SW1#12、配置SW1和SW2的VLAN1的IP地址,测试聚合链路的容错:SW1(config)#interfacevlan1SW1(config-if)#ipaddress192.168.1.1255.255.255.0SW1(config-if)#noshutdownSW1(config-if)#exitSW2(config)#interfacevlan1SW2(config-if)#ipaddress192.168.1.2255.255.255.0SW2(config-if)#noshutdownSW2(config-if)#exit13、在R1上使用ping命令,测试两台交换机的连接:SW2#ping192.168.1.1Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/1/1msSW2#14、为了能够测试聚合端口的冗余容错特性,在SW2上使用扩展的ping命令向SW1持续发送ICMP数据包:SW2#pingProtocol[ip]:TargetIPaddress:192.168.1.1[stanley18]Repeatcount[5]:1000000[stanley19]Datagramsize[100]:Timeoutinseconds[2]:Extendedcommands[n]:Sweeprangeofsizes[n]:Typeescapesequencetoabort.Sending1000000,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!15、然后在SW1上将聚合组中的Fastethernet1/0/24或Fastethernet1/0/24任一端口手工shutdown后,观察SW2的ping的反馈信息。会发现其Ping数据包不会出现中断,说明链路聚合能够有效的避免单链路的拓扑不稳定,同时解决了冗余链路情况下,由于生成树原因而不能充分利用链路带宽和实现负载分担的问题。16、之前所配置的是第二层的PAgP的链路聚合,接下来配置向各位展示了如何配置第三层的

1 / 14
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功