1.
实验线路连接图
使用Cisco
Packet Tracer6.0 构建拓扑结构图。
2.
实验内容
(1)
按图配置各台计算机IP 地址。
(2)
参阅教材中内容,完成链路聚合的配置内容,配置要求如图9.14 所示。在各台交换机上使用show
running-config
和show etherchannel summary 查看链路聚合的配置情况,并使用Ping 指令测试各台计算
机之间的连通性。
SWA
Switch>enable Switch#configure terminal SA(config)#int range f0/1-2 SA(config-if-range)#channel-protocol ? lacp Prepare interface for LACP protocol pagp Prepare interface for PAgP protocol SA(config-if-range)#channel-protocol lacp SA(config-if-range)#channel-group 1 mode active SA(config-if-range)# Creating a port-channel interface Port-channel 1 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up SA(config-if-range)# SA con0 is now available Press RETURN to get started. %LINK-5-CHANGED: Interface Port-channel 1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up SA#conf t SA(config)#vlan 10 SA(config-vlan)#vlan 20 SA(config-vlan)#exit SA(config)#interface FastEthernet0/3 SA(config-if)#switchport access vlan 10 SA(config)#interface FastEthernet0/4 SA(config-if)#switchport access vlan 20 SA(config-if)#exit SA(config)#interface port-channel 1 SA(config-if)#switchport mode trunk Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode. SA(config-if)#switchport trunk encapsulation dot1q SA(config-if)#switchport mode trunk SA(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down %LINK-5-CHANGED: Interface Port-channel 1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up %LINK-5-CHANGED: Interface Port-channel 1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up SA(config-if)# SA# %SYS-5-CONFIG_I: Configured from console by console
SWB
Switch>enable Switch#configure terminal Switch(config)#hostname SB SB(config)#int range f0/23-24 SB(config-if-range)#channel-protocol lacp SB(config-if-range)#channel-group 1 mode active SB(config-if-range)# SB(config)#vlan 10 SB(config-vlan)#vlan 20 SB(config-vlan)#exit SB(config)#interface FastEthernet0/1 SB(config-if)#switchport access vlan 10 SB(config)#interface FastEthernet0/2 SB(config-if)#switchport access vlan 20 SB(config)#interface port-channel 1 SB(config-if)#switchport trunk encapsulation dot1q SB(config-if)#switchport mode trunk
3.
实验要求
掌握链路聚合的概念以及链路聚合的配置过程,理解channel
group 和port-channel
(1)
结果分析
PAgP(Port
Aggregation Protocol,端口汇集协议) Cisco 专有协议
LACP(Link
Aggregation Control Protocol,链路汇集控制协议) IEEE 标准
交换机A
的1 口、2 口做成了channel-group 1,通道组1
交换机B
的23 口、24 口做成了channel-group 1,通道组1
两台交换机之间的channel-group
相互协商,按照lacp 协议协商,如果协商成功之
后,就会产生port-channel,端口通道
(2)
概念理解
链路聚合技术可以把低速的链路聚合成为一条高速链路,比较经济实用
先把端口捆绑成channel-group,通道组
两台交换机的通道组之间要相互按照规定的协议协商,成功之后才会形成port-channel(端口通道),而端口通
道可以按照vlan
的要求设定为trunk
show
etherchannel summary
链路聚合LACP 配置和结果验证(51cti实验11),布布扣,bubuko.com
原文:http://www.cnblogs.com/jianfengyun/p/3745111.html