实验的2.5Etherchannel配置.docVIP

  • 6
  • 0
  • 约8.34千字
  • 约 8页
  • 2018-12-08 发布于安徽
  • 举报
实用标准文案 精彩文档 实验2.5 EtherChannel的配置 1.实验目的 通过实验可以掌握: (1)EtherChannel的工作原理 (2)EtherChannel的配置 2.实验拓扑 EtherChannel配置实验拓扑如图2-1所示。 图2-1 EtherChannel配置实验拓扑 3.实验步骤 构成EtherChannel的端口必须具有相同的特性:Trunking的状态、Trunk的封装方式、双工、速率及所属的VLAN等。配置EtherChannel有手动配置和自动配置(PAGP或者LACP)两种方法。手动配置就是管理员指明哪些接口形成EtherChannel;自动配置就是让EtherChannel协商协议自动协商EtherChannel的建立,协商的协议有PAGP或者LACP两种。 (1)手动配置EtherChannel S1(config)#int f0/13 S1(config-if)#shutdown //关闭不必要的接口,否则会影响测试 S1(config)#int port-channel ? 1-48 Port-channel interface number S1(config)#int port-channel 1 //创建以太通道,需指定一个唯一的通道组号,组号的范围是1~48的正整数。要取消EtherChannel时用“no interface port-channel 1 S1(config)#int range f0/14-15 S1(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 detected S1(config-if-range)#channel-group 1 mode on //将物理接口指定到已创建的通道中 S1(config-if-range)#switchport trunk encapsulation dot1q S1(config-if-range)#switchport mode trunk //配置通道中的物理接口的属性,这里是配置trunk S1(config)#port-channel load-balance ? dst-ip Dst IP Addr dst-mac Dst Mac Addr src-dst-ip Src XOR Dst IP Addr src-dst-mac Src XOR Dst Mac Addr src-ip Src IP Addr src-mac Src Mac Addr S1(config)#port-channel load-balance dst-ip //配置EtherChannel的负载平衡方式 S2(config)#int port-channel 2 //链路两端的channel-group是可以不一样的,这个百年好只是本地有效。 S2(config)#int range f0/1-2 S2(config-if-range)#channel-group 2 mode on S2(config-if-range)#switchport trunk encapsulation dot1q S2(config-if-range)#switchport mode trunk S2(config-if-range)#exit S2(config)#port-channel load-balance dst-ip (2)查看EtherChannel信息 S1#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 - unsuit

文档评论(0)

1亿VIP精品文档

相关文档