在vmware环境中,经常会遇到vc或NSX报出Duplicate IP的问题,导致vm和edeg的网络问题,排查定位困难,今天我们就来看下如何处理这种重复IP的网络冲突问题。
二、案例分析处理 案例 1问题:A duplicate IP address is detected for a vmknic interface configuration. This impacts IPv4 and IPv6.
If 192.168.3.1 is the IP address used by the remote interface 00:50:56:76:b9:ae, the following event will be seen when this very same IP address is being assigned to the local vmknic interface vmk2.
Duplicate IP address detected for 192.168.3.1 on interface vmk2, current owner being 00:50:56:76:b9:ae
影响:任何依赖于错误配置接口的服务都可能受到 IP 网络连接问题的影响。
分析处理:使用 esxcfg-vmknic配置正确的ip地址或配置为DHCP获取,即配置业务网卡IP地址池(但有时环境为管理发布,多用静态地址)
案例 2问题:
分析处理:net-stats -l | grep edge //查看exci vmnic接口的edge关联情况,示例如下:
33554440 5 9 DvsPortset-0 00:50:56:89:b0:d5 edge1.eth0 - This edge interface has IP address 10.1.1.10 50331658 5 9 DvsPortset-1 00:50:56:89:09:f8 edge1.eth2 - This edge interface has IP address 192.168.1.12/24 50331659 5 9 DvsPortset-1 00:50:56:89:ab:49 edge1.eth1 - This edge interface has IP address 192.168.1.13/24
如果我们执行数据包捕获或查看物理安全日志,我们会看到包含以下内容的数据包:
source mac as: 00:50:56:8949 - Mac address from edge node eth1
source IP address as: 192.168.1.12 - IP address from edge node eth2
处理:检查VMKNiCS 的ip地址,确保唯一性。edge执行同步,消除流量缓存影响,同步后正常edge上的重复IP警告会消除。
案例3:故障描述:
The system has detected a conflict for IP address
There is an IP address conflict with another system on the network
The static IP address that was just configured is already in use on the network. Please reconfigure a different IP address
The IP address XXX.XXX.XXX.XXX you have entered for this network adapter is already assigned to another adapter
处理:
移除并重新添加虚拟 NIC ;



