etherchannel

 
Ethernet channel
一、        以太网通道
又称端口汇聚 / 链路汇聚,其作用将多余物理链路逻辑上绑定成一条虚拟的链路来使用,即:增大了带宽,又带了冗余。带宽(以太通道虚拟链路的带宽等于或近似于各物理链路带宽之和)。冗余(提供了物理,对 STP 是透明的)。
 
二、        以太通道的协议
1 PAGP port aggregation protocol cisco 私有)
最多支持 8 根物理链路的绑定,成为一个逻辑通道。 PAGP 是一个二层 SNAP 协议组播帧。目标地址 01-00-0C-CC-CC-CC 思科私有协议 PAGP DTP VTP CDP 目标组播 MAC 地址一样。都在 vlan1 中发, DTP 801.1Q trunk 中, native vlan 中传送。
       PAGP 的操作模式: desirable :主动协商,发 PAGP 协议包。 Auto :被动回应 On :强制形成以太通道,且不发包。 Off:IOS 缺省。
 
       2 LACP link aggregation control protocol 802.3ad
              LACP 是国际标准,最多支持 16 条链路的绑定。但同时只能用 8 根。
              LACP 的操作模式: active :主动协商,发 PAGP 协议包。 passive :被动回应。
 
三、        配置以太通道
1 、注意事项
       相同: duplex speed vlan trunk acl qos
       不能:动态 vlan span 目的端口、安全端口
       组号只在本地有作用,一边配置了通道,另一边没配,经过正常 STP 的收敛,端口可用。
2 、二层以太网通道
       Switch(config)#int range f0/1 �C 2
       Switch(config-if)#channel-group 1 mode active/auto/desirable/on/passive
              Switch(config)#int port-channel 1
       3 、三层以太网通道
              Switch(config)#ip routing
              Switch(config)#int port-channel 1
              Switch(config-if)#no switchport
              Switch(config-if)#ip address 192.168.1.1 255.255.255.0
              Switch(config)#int range f0/1 �C 2
              Switch(config-if-range)#no switchport
              Switch(config-if-range)#no ip address
              Switch(config-if-range)#channel-group 2 mode desirable
       4 、查看
              Switch# show run int port-channel 1
              Switch# show run int f0/1
              Switch# show int f0/1 etherchannel
              Switch# show etherchannel summary
              Switch# show etherchannel counter
              Switch# show etherchannel load-balance
       5 、负载均衡
              Switch(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

本文出自 “夕阳流水” 博客,转载请与作者联系!

你可能感兴趣的:(职场,休闲,ccnp,BCMSN)