首页 > 其他分享 >EtherChannel

EtherChannel

时间:2024-08-21 22:19:55浏览次数:2  
标签:f0 group EtherChannel 接口 etherchannel mode channel

<EtherChannel>

 

·通过这个技术能够将多个物理端口绑定为一个逻辑端口

 通过多个端口绑定,能充分利用现有端口来增加带宽。

 

·Cisco交换机最多允许绑定8个端口。

 如果是快速以太网,总带宽可达1600Mbit/s

 如果是Gbit以太网,总带宽可达16Gbit/s

 

·绑定后的端口默认继承原来物理接口的配置模式。

 

·etherchannel不支持10M端口的绑定

 

·cisco的交换机不仅可以支持第二层etherchannel,还可以支持第三层etherchannel。

 

·一个etherchannel内所有的端口都必须具有相同的速率和双工模式。LACP只能是全双工。

 

二层接口和三层接口的区别:

二层接口不能配置IP地址,不能宣告进路由协议,只能对二层以太网帧进行转发。

三层接口可以配置IP地址,可运行路由协议,能接收IP包并且转发。

 

可以直接将物理端口绑定,也可以让两台交换机之间通过协议进行协商,来形成channel通道。

 

 

SW1、SW2:

int range f0/23 ,f0/24

 channel-group 1 mode on 将这两个接口绑定为一组并指定on模式

 

interface  port-channel  1

  switchport  mode  trunk 指定接口模式为trunk,如不指定,会自动继承物理接口的模式

 

show etherchannel summary 可以看到绑定了多少接口

Show interface etherchannel

 

Cisco私有技术,这个协议又有两种模式:

auto:被动  

 Desirable:主动 会发也会收协商消息

 

 

 

SW1:

int range f0/23 ,f0/24

 channel-group 1 mode desible

 

SW2:

int range f0/23 ,f0/24

 channel-group 1 mode auto

 

interface  port-channel  1

  switchport  mode  trunk

 

802.3ad,业界标准

  Passvie相当于PAgP的auto  

 Active相当于PAgP的desirable  又发又收协商消息

 

 

SW1:

int range f0/23 ,f0/24

 channel-group 1 mode passive

 

SW2:

int range f0/23 ,f0/24

 channel-group 1 mode active

 

interface  port-channel  1

  switchport  mode  trunk

 

show etherchannel 1 summary

show etherchannel  summary  查看所有的group

还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk

 

注: channel-group接口会自动继承第一个物理接口的接口配置模式,或最先配置的接口模式。

 

所谓三层的channel其实就是将多个三层接口绑定。只能在三层交换机上配置。

 

在3550这样的交换机上,所有接口默认都是二层接口。首先需要将交换机的的二层接口改为三层接口。可用以下命令实现:

 

 

将二层接口改成三层接口:

interface  range f0/23 - 24

 no  switchport

 

然后再绑定:

interface  range f0/23 - 24

 channel-group  1  mode  desirable

 

给channel通道配上IP地址:

interface  port-channel  1

 ip  address  100.1.1.1  255.255.255.0

 

默认情况下是基于源MAC地址的负载均衡

 

port-channel load-balance [dst-mac|src-mac]

 

show etherchannel load-balance

标签:f0,group,EtherChannel,接口,etherchannel,mode,channel
From: https://www.cnblogs.com/smoke520/p/18372657

相关文章

  • Etherchannel & ether trunk
    EtherchannelisaCiscotrademarkedterm.华为借鉴了Cisco的Etherchannel,但又怕被告,所以换名为ethertrunk。WecancreateEtherchannelusingPAgP,LACP,orstaticon.PAgPbeingCisco’sproprietaryprotocolandLACPbeingtheopenstandard.更多详情见https://ipwi......