登录站点

用户名

密码

EtherChannel配置

热9已有 101 次阅读  2012-10-23 15:51   标签:  desirable  interface  protocol 
可将多个独立的交换机端口汇聚成一个单独的逻辑端口或EtherChannel.
有两个协议(pagp和lacp),pagp是cisco的,lacp是IEEE制定的,理论我就不用多说了。
ASW25(config-if)#channel-protocol ? (pagp与lacp之间是无法实现相互操作。必须在两端的模块或端口使用相同协议。)
  lacp  Prepare interface for LACP protocol
  pagp  Prepare interface for PAgP protocol
小弟在运行的网络实验中做测试跨线路卡也是可以建立EtherChannel的。
csw01(config)#interface g2/1 (你也可以使用interface range 进入一组端口)
csw01(config-if)#channel-group 2 mode desirable non-silent (关键字non-silent我理解的意思是:EtherChannel在建立前必须完成pagp协商)
csw01(config)#interface g2/2
csw01(config-if)#channel-group 2 mode desirable non-silent
csw01(config)#interface g3/1
csw01(config-if)#channel-group 2 mode desirable non-silent
csw01(config)#interface g3/2
csw01(config-if)#channel-group 2 mode desirable non-silent
csw01(config)#port-channel load-balance ? (选择一种负载均衡的方法)。
  dst-ip       Dst IP Addr (基于目的IP地址)
  dst-mac      Dst Mac Addr (基于目的MAC地址)
  src-dst-ip   Src XOR Dst IP Addr (基于原目标IP)
  src-dst-mac  Src XOR Dst Mac Addr (基于原目标MAC)
  src-ip       Src IP Addr (基于原IP)
  src-mac      Src Mac Addr (基于原MAC)

第二条EtherChannel链路使用LACP协议来配置,LACP的系统优先级被设置成8192。
csw01(config)#lacp system-priority 8192 (使得此交换机成为优先级更高的决策者)。
属于LACP管理号100的端口,g4/1,g4/2,g4/3,g4/4构成一条聚合链路。g4/1,g4/2端口优先级设置成100,使之低于128.
由于某些原因EtherChannel不能使用端口g4/3, g4/4,那么这两个端口将处于备用状态,其它端口失效时启用。并主动与远端的交换机发起EcherChannel协商。
csw01(config)#interface g4/1
csw01(config-if)#channel-group 100 mode active
csw01(config)#interface g4/2
csw01(config-if)#channel-group 100 mode active
csw01(config-if)#lacp port-priority 100
csw01(config)#interface g4/3
csw01(config-if)#channel-group 100 mode active
csw01(config)#interface g4/4
csw01(config-if)#channel-group 100 mode active
分享 举报

发表评论 评论 (5 个评论)

涂鸦板