




已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
链路聚合协议实验实验目的:1、掌握其于Cisco私有的PAgP的链路聚合协议的配置方法。2、掌握第二层与第三层的PAgP配置区别。3、PAgP为Cisco私有链路聚合协议。实验拓扑图:实验步骤及要求:1、本实验使用两台Cisco Catalyst 3750交换机。并按照拓扑连接相应的交换机的线缆。2、为了能够保证实验成功,因此建议将Fa1/0/1 22号接口置为shutdown状态。3、在SW1或SW2上查看交换机的STP信息:SW1#show spanning-tree VLAN0001Spanning tree enabled protocol ieeeRoot ID Priority 32769 Address 0014.a8e2.9880 Cost 19 Port 25 (FastEthernet1/0/23) Hello Time 2 secMax Age 20 secForward Delay 15 secBridge IDPriority 32769(priority 32768 sys-id-ext 1) Address 0014.a8f1.9880 Hello Time 2 secMax Age 20 secForward Delay 15 sec Aging Time 300Interface Role Sts Cost Prio.Nbr Type- - - - - -Fa1/0/23 Root FWD 19 128.25 P2p Fa1/0/24 Altn BLK 19 128.26 P2p stanley1SW1#4、STP协议虽然可以避免网络环路的问题。但是其仍然不能充分的利用冗余的链路带宽。为了解决链路带宽的问题,可以实施PAgP的链路聚合。5、在SW1和SW2上配置如下:SW1(config)#interface range fastEthernet 1/0/23 - 24stanley2SW1(config-if-range)#switchport stanley3SW1(config-if-range)#channel-protocol pagp stanley4SW1(config-if-range)#channel-group 1 mode desirablestanley5Creating a port-channel interface Port-channel 1SW1(config-if-range)#exitSW1(config)#exitSW2(config)#interface range fastEthernet 1/0/23 - 24SW2(config-if-range)#swSW2(config-if-range)#switchport SW1(config-if-range)#channel-protocol pagp stanley6SW2(config-if-range)#channel-group 1 mode auto stanley7Creating a port-channel interface Port-channel 1SW2(config-if-range)#exitSW2(config)#exit6、处于PAgP的Descirable模式的接口,其会主动的进入协商状态。而Auto模式会进入被动的进入协商状态。7、当在两台交换机完成相应配置后,IOS在配置过程中,会给出如下提示信息:00:32:28: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/23, changed state to down00:32:28: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/24, changed state to downstanley800:32:37: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/23, changed state to up00:32:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/24, changed state to upstanley90:37:18: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up00:37:19: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to upstanley108、查看SW1的接口的聚合信息:SW1#show interfaces fastEthernet 1/0/23 etherchannel Port state = Up Mstr In-Bndl Channel group = 1 Mode = Desirable-Sl Gcchange = 0stanley11Port-channel= Po1 GC = 0x00010001 Pseudo port-channel = Po1Port index = 0 Load = 0x00 Protocol = PAgPstanley12Flags: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:stanley13 Hello PartnerPAgP LearningGroupPort Flags State TimersInterval Count Priority MethodIfindexFa1/0/23SC U6/S7 H 30s 1 128 Any 5001Partners information:stanley14 Partner Partner Partner Partner GroupPort Name Device ID Port AgeFlags Cap.Fa1/0/23SW2 0014.a8e2.9880 Fa1/0/23 20s SAC 10001 Age of the port in the current state: 00d:00h:06m:53s SW1#9、使用show etherchannel port-channel命令查看聚合组信息:SW1#show etherchannel port-channel Channel-group listing: -Group: 1 - Port-channels in the group: -Port-channel: Po1-Age of the Port-channel = 00d:00h:15m:37sLogical slot/port = 10/1 Number of ports = 2GC = 0x00010001 HotStandBy port = nullPort state = Port-channel Ag-Inuse Protocol = PAgPPorts in the Port-channel: Index Load Port EC state No of bits-+-+-+-+-0 00 Fa1/0/23 Desirable-Sl 00 00 Fa1/0/24 Desirable-Sl 0stanley15 Time since last port bundled: 00d:00h:10m:27s Fa1/0/24SW1#10、查看聚合链路的汇总信息:SW1#show etherchannel summary Flags:D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default portNumber of channel-groups in use: 1Number of aggregators: 1GroupPort-channelProtocol Ports-+-+-+-1 Po1(SU) PAgP Fa1/0/23(P) Fa1/0/24(P) stanley16SW1#11、查看生成树信息:SW1#show spanning-tree Interface Role Sts Cost Prio.Nbr Type- - - - - -Po1 Root FWD 12 128.616P2p stanley17SW1#12、配置SW1和SW2的VLAN 1的IP地址,测试聚合链路的容错:SW1(config)#interface vlan 1SW1(config-if)#ip address 192.168.1.1 255.255.255.0SW1(config-if)#no shutdownSW1(config-if)#exitSW2(config)#interface vlan 1SW2(config-if)#ip address 192.168.1.2 255.255.255.0SW2(config-if)#no shutdownSW2(config-if)#exit13、在R1上使用ping命令,测试两台交换机的连接:SW2#ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSW2#14、为了能够测试聚合端口的冗余容错特性,在SW2上使用扩展的ping命令向SW1持续发送ICMP数据包:SW2#ping Protocol ip: Target IP address: 192.168.1.1stanley18Repeat count 5: 1000000stanley19Datagram size 100: Timeout in seconds 2: Extended commands n: Sweep range of sizes n: Type escape sequence to abort.Sending 1000000, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:!15、然后在SW1上将聚合组中的Fastethernet 1/0/24或Fastethernet 1/0/24任一端口手工shutdown后,观察SW2的ping的反馈信息。会发现其Ping数据包不会出现中断,说明链路聚合能够有效的避免单链路的拓扑不稳定,同时解决了冗余链路情况下,由于生成树原因而不能充分利用链路带宽和实现负载分担的问题。16、之前所配置的是第二层的PAgP的链路聚合,接下来配置向各位展示了如何配置第三层的PAgP的链路聚合。17、首先删除之前的二层PAgP的配置。18、在SW1和SW2上作如下配置:SW1(config)#interface port-channel 1SW1(config-if)#no switchportstanley20SW1(config-if)#ip address 192.168.1.1 255.255.255.0SW1(config-if)#no shutdownSW1(config-if)#exitSW1(config)#SW1(config)#SW1(config)#interface range fastEthernet 1/0/23 - 24SW1(config-if-range)#no switchport SW1(config-if-range)#channel-protocol pagp SW1(config-if-range)#channel-group 1 mode desirable SW1(config-if-range)#exitSW1(config)#exitSW1#00:12:15: %EC-5-L3DONTBNDL1: Fa1/0/23 suspended: PAgP not enabled on the remote port.00:12:16: %EC-5-L3DONTBNDL1: Fa1/0/24 suspended: PAgP not enabled on the remote port.stanley21SW2(config)#interface port-channel 1 SW2(config-if)#no switchport SW2(config-if)#ip address 192.168.1.2 255.255.255.0SW2(config-if)#no shutdownSW2(config-if)#exitSW2(config)#SW2(config)#interface range fastEthernet 1/0/23 - 24SW2(config-if-range)#no switchport SW2(config-if-range)#channel-protocol pagp SW2(config-if-range)#channel-group 1 mode desirable SW2(config)#exitSW2#00:20:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/23, changed state to up00:20:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/24, changed state to up00:20:03: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up00:20:04: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to upstanley2217、查看聚合链路的信息:SW2#show etherchannel summary Flags:D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default portNumber of channel-groups in use: 1Number of aggregators: 1GroupPort-channelProtocol Ports-+-+-+-1 Po1(RU) PAgP Fa1/0/23(P) Fa1/0/24(P) stanley23SW2#18、使用Ping命令检测:SW2#ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 msSW2#19、使用步骤14和步骤15检查第三层的聚合链路的容错性。具体不再列出。20、实验完成。默认情况下,交换机会使用STP协议阻塞其中的某个端口。因为交换机认为网络有环路存在。进入23,24号端口。开启交换机的二层特性。此条命令默认是被启用的。指定聚合的协议。将当前端口组加入到channel-group即聚合链路通道1。同时将聚合工作模式设置为积极模式。指定聚合的协议。将端口组加入到聚合链路通道1。同时将其设置为自动模式。当改变接口工作方式后,会导致接口的DOWN。交换机在重置端口将其置为UP状态。当与对端交换机协商成功后,其port-channel 1的会进入UP状态。指出链路聚合配置成功。聚合组及其工作模式。聚合使用协议。本地被聚合的接口信息。对端的聚合的接口信息。处于聚合组的一些端口列表。关键字(SU)中的S指出当前的聚合路链路属于第二层聚合。此时,生成树协议仅针对被聚合的逻辑端口工作。配置目标地址。将PING的值设置一个较大的值。关闭交换机接口的二层特性。由于目前仅配置SW1,而SW2并没有配置。所以此处系统提示,远程主机没有激活PAgP聚合。当配置完SW2交换机后,系统提示聚合链路已经处于UP状态。RU的状态的其中,R指出目前聚合链路为第三层的聚合。EtherChannel简介EtherChannel允许我们把多个端口绑在一起,成为一个逻辑端口,Catalyst交换机允许最多8个端口进行捆绑,汇聚后,单条逻辑链路的带宽是所有物理链路的总和。EtherChannel现在不支持对10Mb/s的链路进行通道处理。 EtherChannel配置命令配置端口协议类型: Switch(config-if)# channel-protocol (lacp | pagp配置端口模式: Switch(config-if)# channel-group number mode active | auto | desirable | on | passive配置Port Priority: Switch(config-if)# lacp port-priority priority_value配置System Priority: Switch(config)# lacp system-priority priority_value配置Load Balancing: Switch(config)# port-channel load-balance src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-portEtherChannel常用的show命令Switch# show running-config interface port-channel numberSwitch# show interfaces type slot/port etherchannelSwitch# show lacp sys-idSwitch# show etherchannel load-balanceEtherChannel配置注意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,那么久不能形成EtherChannel。.6.4 配置三层EtherChannel若欲在三层设备(如三层交换机)之间实现高速连接,可以采用三层EtherChannel方式,从而避免由路由连接而产生的瓶颈。1创建Port-Channel逻辑接口当将IP地址从物理接口移动至EtherChannel时,必须先从物理接口中删除该IP地址。第一步:进入全局配置模式。Switch# configure terminal第二步:创建Port-Channel接口。port_channel_number取值范围为148。Switch(config)# interface port-channel port_channel_number第三步:将接口置于三层模式。Switch(config-if)# no switchport第四步:为该EtherChannel指定IP地址和子网掩码。Switch(config-if)# ip address ip_address mask第五步:退出配置模式。Switch(config-if)# end第六步:校验配置。Switch# show running-config interface port-channel port_channel_number2配置为三层EtherChannel第一步:进入全局配置模式。Switch# configure terminal第二步:选择欲配置的物理接口。Switch(config)# interface fastethernet | gigabitethernet slot/port第三步:创建三层路由端口。Switch(config-if)# no switchport第四步:确保该物理接口没有指定IP地址。Switch(config-if)# no ip address第五步:将接口配置至port-channel,并指定PAgP或LACP模式。Switch(config-if)# channel-group channel-group-number mode auto non-silent | desirable non-silent | on | active | passive 第六步:退出配置模式。Switch(config-if)# end第七步:校验配置。Switch# show running-config3实现负载均衡第一步:进入全局配置模式。Switch# configure terminal第二步:配置Etherchannel负载均衡。Switch(config)# port-channel load-balance src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-port其中,src-mac指源MAC地址;dst-mac指目的MAC地址;src-dst-mac指源和目的IP地址;src-ip指源IP地址;dst-ip指目的IP地址;src-dst-ip指源和目的IP地址;src-port指源第四层端口;dst-port指目的第四层端口;src-dst-port指源和目的第四层端口。第三步:退出配置模式。Switch(config-if)# end第四步:校验配置。Switch# show etherchannel load-balancePAgP EtherChannel的配置SW1的配置:sw1(config)#line console 0sw1(config-line)#logging synchronous sw1(config-line)#exec-timeout 0sw1(config-line)#exitsw1(config)#int f0/0sw1(config-if)#no shsw1(config-if)#switchport sw1(config-if)#channel-group 1 m
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025中国电科36所校园招聘备考练习试题及答案解析
- 2025年单焦点人工晶体行业研究报告及未来行业发展趋势预测
- 2025年风电叶片行业研究报告及未来行业发展趋势预测
- 山东省日照市天立集教育集团2026届高三上学期入学考试语文试卷(含答案)
- 2025年彩色混凝土行业研究报告及未来行业发展趋势预测
- 2025年公安辅警招聘知识考试练习题(答案+解析)
- 2025年8月绍兴银行社会招聘9人笔试参考题库附答案解析
- 2025年8月16日贵州省黔东南州事业单位遴选笔试真题及答案解析(专业水平测试)
- 2025河北唐山高新区公安分局警务辅助人员招聘22人笔试模拟试题及答案解析
- 2025广西南宁市第四职业技术学校招聘11人考试参考题库附答案解析
- 六年级家长会课件
- 2025年党建党史知识竞赛测试题库及答案
- 2025年教科版新教材科学二年级上册教学计划(含进度表)
- GB/T 45859-2025耐磨铸铁分类
- 临床基于ERAS理念下医护患一体化疼痛管理实践探索
- 2025年河北交警三力测试题及答案
- 2025贵州贵阳供销集团有限公司招聘笔试历年参考题库附带答案详解
- 人教版(2024)新教材三年级数学上册课件 1.2 观察物体(2)课件
- 颈椎骨折脊髓损伤的护理
- 华为海外税务管理办法
- 2025秋统编版小学道德与法治二年级上册教学设计(附目录)
评论
0/150
提交评论