1  首先两台6509一主一备,中间是trunk。 做standby。 两个实地址,一个虚地址。

2   fortigate 1240B, 做HA。 两台设备相当于一台设备。主备机各使用port1 port2 做

一个端口聚合。

  

    现在需要做的是将两边设备channel起来。 Fortigate 写默认路由到 6509standby 虚地址。 6509 指静态路由向下。并将静态重分发到eigrp中。

    interface VlanXXX

    ip add 192.168.1.1 255.255.255.0

    standby xxx ip 192.168.1.3

    standby xxx preempt

 

    interface Vlan XXX

    ip add 192.168.1.2 255.255.255.0

   standby xxx ip 192.168.1.3

   standby xxx priority 150

   standby xxx preempt

 

    interface giga1/x

    logging event link-status

    switchport

    switchport access vlan xxx

    switchport mode access

    channel-protocol lacp

    channel-group xx mode acitve

   

    以此类推,在6509 主备上都做相关配置。

 

   检查 channel  配置

   show etherchannel summary

  

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Gi5/1(P)   Gi5/2(P)   Gi6/1(P)   Gi6/2(P)   
4      Po4(SU)         LACP      Gi1/23(P)  Gi2/23(P)  
6      Po6(SU)         LACP      Gi1/24(P)  Gi2/24(P)  
8      Po8(SU)         LACP      Gi2/17(P)  Gi2/18(D)  
9      Po9(SU)         LACP      Gi2/7(P)   Gi2/8(D)   
10     Po10(SU)        LACP      Gi1/8(P)   
10     Po10A(SU)       LACP      Gi2/20(P)  
278    Po278(SD)        

 

 

同时出现了 po 10 和 po10A 两个channel 组。

查看系统log

 

Jun 19 01:05:07: %EC-SP-STDBY-5-CANNOT_BUNDLE_LACP: Gi2/20 is not compatible with aggregators in channel 10 and cannot attach to them

 (Source monitor interfaces are not allowed to be part of an etherchannel)

 

原来是 monitor 导致的。 做channel的端口还在monitor 里面。

 

 

no monitor session 2 source interface Gi1/8
no monitor session 2 source interface Gi2/20
 

在查看 etherchannel summary

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Gi5/1(P)   Gi5/2(P)   Gi6/1(P)   Gi6/2(P)   
4      Po4(SU)         LACP      Gi1/23(P)  Gi2/23(P)  
6      Po6(SU)         LACP      Gi1/24(P)  Gi2/24(P)  
8      Po8(SU)         LACP      Gi2/17(P)  Gi2/18(D)  
9      Po9(SU)         LACP      Gi2/7(P)   Gi2/8(D)   
10     Po10(SU)        LACP      Gi1/8(P)   Gi2/20(P)  

 

cisco 6509 跟 非cisco设备做channel 有时还是容易出问题的。但这次主要是配置导致的。