This issue is resolved in:
VMware NSX-T Data Center 2.4.3, available at VMware Downloads.
VMware NSX-T Data Center 2.5.1, available at VMware Downloads.
VMware NSX-T Data Center 3.0, available at VMware Downloads.
Workaround:
If an upgrade is not possible the following workaround can be used.
Identify the segments which have duplicate gateway IPs
The IPs should be changed so that they are unique, for example use .1 for one segment and .254 for the other segment
Under Networking -> Segments -> Edit Segment, edit the subnet and change the Gateway
If the gateway IP is not being changed for one segment, it should still be refreshed to clear any incorrect data from the dataplane
In that case change the IP to a temporary IP and change it back e.g. .1 to .130 and back to .1
Ensure the VMs on the impacted segment have their default gateway IPs updated.
Verify the workaround by running
net-vdl2 -M ip -s <NVDS_Name> -n <VNI> on an ESXi host running a VM on that VNI and ensure the gateway IP is listed and is protected.