You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

独立ESXi主机MAC地址漂移异常问题排查及链路聚合配置求助

独立ESXi主机MAC地址漂移异常问题排查及链路聚合配置求助

各位大佬好,想请教下我们公司独立ESXi主机遇到的MAC地址漂移问题,还有后续配置链路聚合的相关建议,先把情况说清楚:

问题现象

我们有几台独立ESXi主机,最近碰到个奇怪的MAC地址漂移问题:

  • 部分ESXi主机的IP偶尔会ping不通,但主机上的VM网络完全不受影响
  • 这时候只要在同VLAN的服务器上ping一下该ESXi主机的IP,主机网络就会恢复

前期尝试的无效操作

一开始我以为是网卡的EEE功能导致的,试了一堆操作但都没解决:

  • 升级ESXi版本,从6.5升到6.7再到7.0
  • 禁用igbn驱动,改用ign驱动
  • 关闭网卡的EEE功能

直到后来发现,出现问题的时候,ESXi主机的MAC会漂移到G2/1端口——这个端口连接的是深信服的AC设备,AC再连防火墙。

MAC漂移日志

Jun 30 12:38:13.923 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 08:94:EF:30:BB:D0 in vlan 99 is moving from port Gi2/1 to port Gi2/16
Jun 30 12:38:23.491 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 40:F2:E9:96:EF:72 in vlan 99 is moving from port Gi2/1 to port Po10
Jun 30 12:45:17.847 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 40:F2:E9:96:E9:7A in vlan 99 is moving from port Gi2/1 to port Gi2/33
Jun 30 12:45:20.231 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 00:50:56:6F:76:8C in vlan 99 is moving from port Gi2/1 to port Gi2/29
Jun 30 12:45:20.287 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 00:50:56:66:89:DB in vlan 99 is moving from port Gi2/1 to port Gi2/29
Jun 30 12:45:20.327 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 00:50:56:6A:88:90 in vlan 99 is moving from port Gi2/1 to port Gi2/29
Jun 30 13:12:15.275 GMT: %C4K_EBM-4-HOSTFLAPPING: Host 08:94:EF:30:C3:40 in vlan 99 is moving from port Gi2/1 to port Gi2/16
Jun 30 13:16:26.499 GMT: %C4K_EBM-4-HOSTFLAPPING: Host BC:97:E1:86:0B:AC in vlan 99 is moving from port Gi2/1 to port Gi2/16

我们的网络环境

  • 两台Cisco CS4506交换机配置了端口聚合
  • 每台ESXi主机单独连接到CS4506交换机,交换机和ESXi之间没有配置端口聚合或LACP
  • ESXi主机的交换机端口配置为access模式,所有主机都在VLAN99

已完成的排查动作

  1. 排除交换机CPU或环路问题:交换机CPU使用率不高,而且只有ESXi主机会出现这个问题,应该不是网络环路导致的
    JD1KY2F-CS4506-01#show process
    CPU utilization for five seconds: 22%/1%; one minute: 20%; five minutes: 20%
    
  2. 排查STP影响:看到深信服论坛有人说可能是STP导致的,查了交换机STP拓扑变更时间,和日志里的漂移时间完全不匹配;后来也参考相关配置给端口开了PortFast,但问题依旧
    JD1KY2F-CS4506-01#show spanning-tree detail | in ieee|from|occur|is exec
    VLAN0099 is executing the ieee compatible Spanning Tree protocol
    Number of topology changes 19461 last change occurred 4d12h ago
    from GigabitEthernet2/5
    
  3. 检查MAC地址表:确认交换机MAC表中没有重复的ESXi主机MAC地址

当前临时处理方案

我现在给ESXi对应的交换机端口配置了端口安全,用来避免MAC漂移:

interface GigabitEthernet2/11
switchport access vlan 99
switchport mode access
switchport port-security maximum 50
switchport port-security
switchport port-security violation restrict

但这只是临时解决办法,我本来想给ESXi和交换机之间配置端口聚合,现在得先解决这个MAC漂移的问题才行。

有没有大佬能给点排查方向或者解决建议?多谢了!

备注:内容来源于stack exchange,提问作者Satan023

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 11:43:08