




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Give it everything you've got.一、 链路聚合简介1. 链路聚合原理将两个或更多数据信道结合成一个单个的信道,该信道以一个单个的更高带宽的逻辑链路出现。链路聚合一般用来连接一个或多个带宽需求大的设备2. 作用将多个物理以太网端口聚合在一起形成一个逻辑上的聚合组,使用链路聚合服务的上层实体把同一聚合组内的多条物理链路视为一条逻辑链路3. LACP协议Link Aggregation Control Protocol 链路聚合控制协议LACP 协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路聚合控
2、制协议数据单元)与对端交互信息。使能某端口的 LACP 协议后,该端口将通过发送LACPDU 向对端通告自己的系统LACP 协议优先级、系统MAC、端口的LACP 协议优先级、端口号和操作Key。对端接收到LACPDU 后,将其中的信息与其它端口所收到的信息进行比较,以选择能够处于Selected 状态的端口,从而双方可以对端口处于Selected 状态达成一致。操作 Key 是在链路聚合时,聚合控制根据端口的配置(即速率、双工模式、up/down状态、基本配置等信息)自动生成的一个配置组合。在聚合组中,处于Selected 状态的端口有相同的操作Key。4. 链路聚合的端口的注意事项1 端口
3、均为全双工模式; 2 端口速率相同; 3 端口的类型必须一样,比如同为以太口或同为光纤口; 4 端口同为access端口并且属于同一个vlan或同为trunk端口; 5 如果端口为trunk端口,则其allowed vlan和nativevlan属性也应该相同。5. 链路聚合配置命令1) CISCOa) 把指定端口给聚合组,并指定聚合方式SW(config)interface Ethernet0/1SW(config-ethernet0/1)#port
4、-group 1 mode(active|passive|on)b) 进入聚合端口的配置模式SW(config)#interface 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 man
5、ual b) 将端口加入聚合组interface ethernet0/1port link-aggregation group 1采用静态LACP聚合方式a) 设置系统的LACP协议优先级(可选)Lacp system-priority system-priority / 缺省情况下是32768b) 创建静态LACP聚合组link-aggregation group 1 mode staticc) 将端口加入聚合组interface ethernet0/1port link-aggregation group 1d) 配置端口LACP的优先级(可选)Lacp port-priority por
6、t-priority / 缺省情况下是327686. 负载均衡1) 作用自适应负载平衡Fast EtherChannel处理多个链路间的通信量负载平衡任务。负载平衡在冗余并行路径间平均分配通信量。如果任何一个链路失效,其他的链路将自动接管这个负载份额而不会中断。2) 配置命令CISCOSW config#port-channel load-balance method源地址 src-ip目的地址 dstip源和目的 srcdstip源mac地址 srcmac目的mac地址 dstmac源和目的mac srcdstmac源端口号 srcport目的
7、端口号 dst-port源和目的端口号 src-dst-portH3Clink-aggregation load-sharing mode destination-ip | destination-port | ip-protocol | source-ip | source-port 二、 实验Cisco私有的PAgP的链路聚合协议配置(PT模拟2层)1. 实验拓扑说明:默认情况下,交换机会使用STP协议阻塞其中某个端口,因为上面的网络存在环路。使用PAgP链路聚合充分利用冗余的链路带宽2. 配置Switch>enSwitch#conf tSwitch(config)#hostname
8、 SW0SW0(config)#int ra fa 0/1-2SW0(config-if-range)#no shSW0(config-if-range)#switchport SW0(config-if-range)#channel-protocol ? lacp Prepare interface for LACP protocol pagp Prepare interface for PAgP protocolSW0(config-if-range)#channel-protocol pagp SW0(config-if-range)#channel-group ? <1-48&g
9、t; Channel group numberSW0(config-if-range)#channel-group 1 mode ? active Enable LACP unconditionally auto Enable PAgP only if a PAgP device is detected desirable Enable PAgP unconditionally on Enable Etherchannel only passive Enable LACP only if a LACP device is detectedSW0(config-if-range)#channel
10、-group 1 mode desirable /主动进入协商状态Switch>enSwitch#conf tSwitch(config)#hostname SW1SW1(config)#int ra fa 0/1-2SW1 (config-if-range)#no shSW1 (config-if-range)#switchport SW1 (config-if-range)#channel-protocol pagp SW1 (config-if-range)#channel-group 1 mode auto /被动进入协商模式Switch(config-if-range)#%LI
11、NK-5-CHANGED: Interface Port-channel 1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up Switch(config-if-range)#3. 验证查看聚合组信息SW0(config-if-range)#do show etherchannel port-channel Channel-group listing: -Group: 1- Port-channels in the group: -Por
12、t-channel: Po1-Age of the Port-channel = 00d:00h:01m:56sLogical slot/port = 2/1 Number of ports = 2GC = 0x00000000 HotStandBy port = nullPort state = Port-channel Protocol = PAGPPort Security = DisabledPorts in the Port-channel:Index Load Port EC state No of bits-+-+-+-+- 0 00 Fa0/1 Desirable-Sl 0 0
13、 00 Fa0/2 Desirable-Sl 0Time since last port bundled: 00d:00h:01m:05s Fa0/2SW0(config-if-range)#查看聚合链路的汇总信息SW0(config-if-range)#do show etherchannel summaryFlags: 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
14、 allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default portNumber of channel-groups in use: 1Number of aggregators: 1Group Port-channel Protocol Ports-+-+-+-1 Po1(SU) PAgP Fa0/1(P) Fa0/2(P) SW0(config-if-range)#4. 测试容错性配置SW0和SW1的VLAN 1 的IP地址,测试聚合链路的容错SW0(config-if-
15、range)#int vlan 1SW0(config-if)#no shutdown SW0(config-if)#ip add 192.168.1.1 255.255.255.0SW0(config-if)#SW1(config-if-range)#int vlan 1SW1(config-if)#no shSW1(config-if)#ip add 192.168.1.2 255.255.255.0SW1(config-if)#测试聚合端口的冗余容错特性在SW0上向SW1持续发送ICMP数据包SW0(config-if)#do pingProtocol ip: ipTarget IP a
16、ddress: 192.168.1.2Repeat count 5: 10000Datagram size 100: 100Timeout in seconds 2: 2Extended commands n: nSweep range of sizes n: nType escape sequence to abort.Sending 10000, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:!然后在SW1上将聚合组中的fa 0/2关掉,观察ping数据包是否中断SW1(config)#int fa 0/2SW1(conf
17、ig-if)#no shSW1(config-if)#no shutdown SW1(config-if)#shSW1(config-if)#shutdown %LINK-5-CHANGED: Interface FastEthernet0/2, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to downSW1(config-if)#!%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down.Success rate is 92 percent (122/132), roun
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 自我意识心理健康教育
- 秩序队员法律法规培训
- 呼吸内科门诊病历
- 中班艺术活动《冬天里的活动》
- 2025年中国女性生物纤维素面膜行业市场全景分析及前景机遇研判报告
- 生态农业园区厂房转租及农业项目合作协议
- 商业设备抵押融资合同书
- 空压系统培训
- 2024年旅游景区开发运营项目资金需求报告代可行性研究报告
- 因公出国培训
- 2025年江苏高考政治试卷真题解读及答案讲解课件
- 2025高考全国一卷语文真题
- JIS G3125-2021 高级耐大气腐蚀轧制钢材
- (完整版)学生课堂学习自我评价表
- 梁俊娇税收筹划课后思考题
- DTLDTC带式输送机工艺流程图
- 荧光绿送货单样本excel模板
- 有机化学概述
- 复盛零件手册
- 内外墙抹灰施工承包合同
- 《急救药品》PPT课件.ppt
评论
0/150
提交评论