好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

etherchannel、链路聚合.doc

9页
  • 卖家[上传人]:xiao****1972
  • 文档编号:84149218
  • 上传时间:2019-03-02
  • 文档格式:DOC
  • 文档大小:62.50KB
  • / 9 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • EtherChannel以太网通道、链路聚合(channel-group 1 mode )<EtherChannel>通过这个技术能够将多个物理端口绑定为一个逻辑端口 通过多个端口绑定,能充分利用现有端口来增加带宽Cisco交换机最多允许绑定8个端口 如果是快速以太网,总带宽可达1600Mbit/s 如果是Gbit以太网,总带宽可达16Gbit/s绑定后的端口默认继承原来物理接口的配置模式etherchannel不支持10M端口的绑定cisco的交换机不仅可以支持第二层etherchannel,还可以支持第三层etherchannel一个etherchannel内所有的端口都必须具有相同的速率和双工模式LACP只能是全双工  二层接口和三层接口的区别:二层接口不能配置IP地址,不能宣告进路由协议,只能对二层以太网帧进行转发三层接口可以配置IP地址,可运行路由协议,能接收IP包并且转发EtherChannel的模式:可以直接将物理端口绑定,也可以让两台交换机之间通过协议进行协商,来形成channel通道 On:强行起etherchannelSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode on 将这两个接口绑定为一组并指定on模式  组号本地有效Sw1(config)#interface  port-channel  1Sw1(config-if)#switchport  mode  trunk 指定接口模式为trunk,如不指定,会自动继承物理接口的模式Sw1#show etherchannel summary 可以看到绑定了多少接口Show interface etherchannelSw1(config)#no interface port-channel 1 拆除etherchannel强行起通道的话要在短期内在双方启用。

      否则可能环路协商起链路则没有这问题,因为启用不起通道的话会downPort Aggregation Protocol (PAgP)端口汇聚协议Cisco私有技术,这个协议又有两种模式: auto: 被动  只收不发 desirable: 主动 会发也会收协商消息Sw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode desirableSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode autoSw1(config)#interface  port-channel  1Sw1(config-if)#switchport  mode  trunkLink Aggregation Control Protocol (LACP) 链路聚合控制协议802.3ad,业界标准  Passvie相当于PAgP的auto    Active相当于PAgP的desirable  又发又收协商消息Sw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode passiveSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode activeSw1(config)#interface  port-channel  1Sw1(config-if)#switchport  mode  trunkshow etherchannel 1 summaryshow etherchannel  summary  查看所有的group还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk注:channel-group接口会自动继承第一个物理接口的接口配置模式,或最先配置的接口模式。

      配置三层channel所谓三层的channel其实就是将多个三层接口绑定只能在三层交换机上配置在3550这样的交换机上,所有接口默认都是二层接口首先需要将交换机的的二层接口改为三层接口可用以下命令实现:3550(config)#interface  gigabitethernet 0/13550(config-if)#no  switchport然后再绑定:3550(config-if)#channel-group  1  mode  desirable3550(config-if)#exit将另一个端口也绑进来3550(config)#interface  gigabitethernet 0/23550(config-if)#no  switchport3550(config-if)#channel-group  1  mode  desirable3550(config-if)#exit给channel通道配上IP地址:3550(config)#interface  port-channel  13550(config-if)#ip  address  100.1.1.1  255.255.255.0当物理接口放进了逻辑接口,那物理接口的配置就忽略了,如ip地址。

      配置etherchannel负载均衡默认情况下是基于源MAC地址的负载均衡port-channel load-balance [dst-mac|src-mac]show etherchannel load-balance3560可以基于源目IP来做负载均衡Err-disable特性:接口如果进入err-disable状态:有两种方法恢复1、手动恢复   先shutdown、再no shutdown2、自动恢复   errdisable recovery cause {all|arp-inspection|bpduguard|link-flap} 指定原因   errdisable recovery interval 30   指定自动恢复时间间隔两台交换机之间是否形成EtherChannel也可以用协议自动协商目前有两个协商协议:PAGP和LACP,前者是CISCO专有的协议,而LACP是公共的标准LACP协商的规律                ON      active      passiveON           √            ×               ×active       ×           √               √passive    ×           √                ×PAGP协商的规律               ON      Desirable     autoON           √            ×                ×desirable ×            √                √auto         ×            √                ×要想把接口配置为PAGP 的desirable 模式使用命令:“channel-group 1 mode desirable”;要想把接口配置为PAGP 的auto 模式使用命令:“channel-group 1 mode auto”;要想把接口配置为LACP 的active 模式使用命令:“channel-group 1 mode active”;要想把接口配置为LACP 的passive 模式使用命令:“channel-group 1 mode passive”。

      端口通道负载均衡  port-channel load-balancesw1(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 Addrsw1#show etherchannel summary Flags:  D - down        P - in port-channel        I - stand-alone s - suspended        R - Layer3      S - Layer2        U - in useGroup Port-channel  Ports-----+------------+-----------------------------------------------------------1     Po1(SD)     Fa0/0(s)   Fa0/1(s) sw1#show etherchannel load-balance  Po1 ---> Source XOR Destination IP address备注:1、以太网通道最多可以捆绑8条物理链路2、捆绑遵循以下规则:       (1)相同VLAN       (2)端口中继模式       (3)相同speed和duplex==============================================================================================================================================================================================channel-group用于将超过一个的交换机互联的端口捆绑到一起,主要用于负载均衡比如sw1和sw2之间相连的端口为 19,20sw1(config-if-range)#int rang f0/19 -20sw1(config-if-range)#channel-group ?<1-64> Channel group numbersw1(config-if-range)#channel-group 1 ?mode Etherchannel Mode of the interfacesw1(config-if-range)#channel-group 1 mode ?active        Enable LACP unconditionallyauto          Enable PAgP only if a PAgP device is detecteddesirable     Enable PAgP unconditionallyon            Enable therchannel onlypassive       Enable LACP only if a LACP device is detected要同时在。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.