When attempting to enable the Allow Non-Distributed Routing toggle on a VMware Cloud Director (VCD) Edge Gateway connected to an NSX-T Provider Gateway, the operation fails.
The following error message is displayed:
Error "Cannot connect Edge Gateway urn:vcloud:gateway:{{id}} with default Static Route CIDR 0.0.0.0/0 to Provider Gateway."
- The affected VCD Edge Gateway is connected to an NSX-T Provider Gateway.
VMware Cloud Director 10.x
NSX-T Data Center
This error occurs because a default static route (with a destination CIDR of 0.0.0.0/0) is already configured on the Edge Gateway. This pre-existing manual route conflicts with the routing changes VCD attempts to make when enabling the "Allow Non-Distributed Routing" feature.
To resolve this issue, you must remove the conflicting default static route before enabling the "Allow Non-Distributed Routing" option.
Log in to the VMware Cloud Director Tenant Portal.
From the top navigation bar, select Networking and then click Edge Gateways.
Click the name of the affected Edge Gateway to open its configuration settings.
Navigate to the Routing tab and then select the Static Routes sub-tab.
Locate the static route in the list where the Network CIDR is 0.0.0.0/0.
Select the checkbox next to this route and click DELETE.
Confirm the deletion when prompted.
While still on the configuration page for the same Edge Gateway, navigate back to the General tab.
Locate the Allow Non-Distributed Routing option and click the toggle to set it to the "Enabled" position.
Click SAVE CHANGES.
The setting should now be enabled successfully without any errors.