主机在switchport和Etherchannel之间震荡

我有两堆Catalyst 4506-E交换机(Core01&Core02),它们之间configuration了4个链路端口通道(Po1)。 我有两台路由器,一台3845和一台7206VXR,两台交换机的Gi4 / 45和Gi2 / 11端口连接到Core01和Core02。 快速图表:

Core1-2

在试图追查一个不同的(?)问题时,我注意到Core01和Core02的显示logging输出是:

Oct 19 15:16:24.807: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Gi4/45 to port Po1 Oct 19 15:16:24.807: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Po1 to port Gi4/45 Oct 19 15:16:34.188: %C4K_EBM-4-HOSTFLAPPING: Host 00:22:0D:92:B0:1B in vlan 999 is moving from port Gi2/11 to port Po1 Oct 19 15:16:34.236: %C4K_EBM-4-HOSTFLAPPING: Host 00:22:0D:92:B0:1B in vlan 999 is moving from port Po1 to port Gi2/11 Oct 19 15:16:35.080: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Gi4/45 to port Po1 Oct 19 15:16:35.128: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Po1 to port Gi4/45 Oct 19 15:16:44.189: %C4K_EBM-4-HOSTFLAPPING: Host 00:22:0D:92:B0:1B in vlan 999 is moving from port Gi2/11 to port Po1 Oct 19 15:16:44.189: %C4K_EBM-4-HOSTFLAPPING: Host 00:22:0D:92:B0:1B in vlan 999 is moving from port Po1 to port Gi2/11 Oct 19 15:16:45.081: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Gi4/45 to port Po1 Oct 19 15:16:45.125: %C4K_EBM-4-HOSTFLAPPING: Host 00:25:84:EA:60:80 in vlan 999 is moving from port Po1 to port Gi4/45 

一遍又一遍地。 这两个MAC地址00:25:84:EA:60:80&00:22:0D:92:B0:1B分别对应于3845和7206VXR上的BVI1。

sh vlan id 999的输出:

 VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 999 Core active Gi1/3, Gi1/4, Gi2/11, Gi2/25, Gi2/31, Gi3/18, Gi3/20, Gi3/22, Gi3/24, Gi3/26, Gi3/28 Gi3/32, Gi4/4, Gi4/7, Gi4/11, Gi4/15, Gi4/27, Gi4/45, Gi5/2, Gi5/3, Gi5/4, Gi5/5 Gi5/10, Gi5/25, Gi5/26, Gi5/27, Gi5/28, Gi5/34, Gi5/36, Po1 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 999 enet 100999 1500 - - - - - 0 0 Remote SPAN VLAN ---------------- Disabled Primary Secondary Type Ports ------- --------- ----------------- ------------------------------------------ 

所以,端口通道Po1在vlan 999,Gi2 / 11和Gi4 / 45,我假设是一个问题,并导致这些消息。 我的问题是这个; 我inheritance了这个设置,我没有build立它,但我也没有改变它。 我已经构build了一个处理configuration差异的De​​bian Rancid服务器,所以如果这是新的东西,我会收到一封关于它的电子邮件。 我承认自己并没有回头去看看过去一年里收到的每一个configuration差异,但是我回到了足够的深刻,知道这不是一个新的变化,我可以认为它已经做了一段时间现在。 不过,我看到这个消息,我想循环。

让Po1和连接到同一个vlan的路由器的接口不正确? 另外,这些端口是访问端口,我不应该干什么? 任何想法,将不胜感激。

谢谢,

是的,有一个问题,你是一个循环,但它并不是因为保持Po1和接口连接到路由器在相同的VLAN。 当您堆叠两台交换机时,即使它们是VSS(虚拟交换系统)的一部分,它们也可以一个工作。 两个开关的大脑变成一个,所有的开关决定都是由一个开关决定的(这是两个开关中的一个)。

现在将两台电缆从路由器连接到交换机并在同一个VLAN中会发生什么? 是的,这就是它将从两个端口获得相同的MAC。

让Po1和连接到同一个vlan的路由器的接口不正确?

绝对不。 你正在使它更安全,更好。 🙂

另外,这些端口是访问端口,我不应该干什么?

不,您应该将连接到路由器的两个端口分别转换为端口通道。 正如我在堆叠之后所说的那样,它们的行为是一样的,因此,您应该将Gi2 / 11同时作为(可以说)Po2和Gi4 / 45同时作为Po3。 保持两个端口通道在Vlan 999,也Ether通道的路由器上的端口(但我认为这已经完成,因为你从两个接口获得MAC),我相信日志将消失。

希望这可以帮助!