When attempting to disable the DHCP configuration on an NSX Tier-1 (T1) Gateway or changing the IP Address Management setting to "No Dynamic IP Address Allocation", the operation fails with the following error:
Error: Modification of DHCP config is not allowed for Tier-1 Gateway '<t1-gw01>' when segment with DHCP are connected. (Error code: 503115)
This occurs even if the connected segments have been switched from "DHCP Server" to "DHCP Relay."
VMware NSX-T Data Center
VMware NSX
This issue is due to a validation logic constraint within the NSX T1 Gateway "Guard." The system incorrectly flags segments configured for DHCP Relay as having an active dependency on the T1 DHCP Server configuration.
Workaround:
Navigate to Networking > Segments.
Identify all segments currently configured with DHCP Relay.
Edit the segment and navigate to Delete DHCP Config.
Save the segment.
Navigate to Networking > Tier-1 Gateways.
Edit the T1 Gateway.
Change the DHCP configuration to No Dynamic IP Address Allocation.
Return to Networking > Segments.
Re-edit the segments and navigate to Set DHCP Config.
Change the Type back to DHCP Relay and select the appropriate Relay Profile.
Save the segment.