The process for configuring a default gateway on a ESG or DLR is identical. Static routes are OK for small sites with not many networks. As the amount of networks increase the use of dynamic routing protocols are beneficial.
1. Log into the vSphere Web Client. Click Networking and Security, then NSX Edges. Double-Click the Edge (ESG or DLR) that you want to configure the Default Gateway on then click the Routing tab and finally click Static Routes:
Click the green + sign to add a static route. Fill in the Network (i.e. the destination), the Next Hop IP address, the interface you want to add the static route, the MTU, the admin distance and a description:
Make sure you click Publish Changes to apply the configuration