链路聚合Lacp
实验目的:理解并掌握链路聚合的配置及原理。
实验拓扑:
实验步骤:
SW1
SW1(config)#interface range g0/1 - g0/2
SW1(config-if-range)#channel-protocol lacp
SW1(config-if-range)#channel-group 1 mode active SW1(config-if-range)#exit
SW1(config)#interface port-channel 1 SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport nonegotiate SW1(config-if)#exit SW1(config)#^Z SW1#
%SYS-5-CONFIG_I: Configured from console by console SW1#wr
Building configuration... [OK]
SW2
SW2(config)#interface range g0/1 -g0/2
SW2(config-if-range)#channel-protocol lacp
SW2(config-if-range)#channel-group 1 mode passive SW2(config-if-range)#exit
SW2(config)#interface port-channel 1
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport nonegotiate SW2(config-if)#exit SW2(config)#exit SW2#wr
Building configuration... [OK]
分析: SW1
SW2
以上显示,链路聚合完成。
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) LACP Gig0/1(P) Gig0/2(P)
(sw1中的信息应该和sw2中一样,但由于模拟器的问题,时常up时常down,所以才显示
1 Po1(SD) LACP Gig0/1(I) Gig0/2(I),应该是1 Po1(SU) LACP Gig0/1(P) Gig0/2(P))。
实验总结:配置链路聚合要注意的几点
①
② ③ ④ ⑤
交换机的所有接口必须支持链路聚合; 相同的通信速率和双工模式;
链路聚合的port-channel端口不能作为SPAN的映射目标端口; 三层链路聚合必须分配一个IP地址给port-channel端口; 二层链路聚合接口必须配置相同的vlan或trunk。
注:当带宽不够用、数据流量很大时使用链路聚合;
当一根线段了,链路聚合失效,只能用另外一根进行数据传输;
此实验中,链路聚合如果没有“nterface port-channel 1、switchport mode trunk、
switchport trunk encapsulation dot1q、switchport nonegotiate” ,那么默认的模式就是Auto。
检验用到的命令:show etherchannel 查看链路聚合
show etherchannel summary 查看链路聚合详细信息
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库cisco 链路聚合lacp在线全文阅读。
相关推荐: