To use Gateway DHCP for a dynamic IP assignment, you must attach a DHCP server profile to a tier-0 or tier-1 gateway.

You can attach a DHCP profile to a gateway only when the segments connected to that gateway do not have a local DHCP server or DHCP relay configured on them. If a local DHCP server or DHCP relay exists on the segment, the UI throws an error when you try to attach a DHCP profile to the gateway. You must disconnect the segments from the gateway, and then attach a DHCP profile to the gateway.


A DHCP server profile is added in the network.


  1. From your browser, log in with admin privileges to an NSX Manager at https://<nsx-manager-ip-address>.
  2. Go to Networking > Tier-0 Gateways or Networking > Tier-1 Gateways.
  3. Edit the appropriate gateway.
  4. Do any of one of the following depending on the version of NSX-T Data Center that you are using:
    • In version 3.0.2, next to DHCP, click Set DHCP Configuration.
    • In version 3.0 and 3.0.1, next to IP Address Management, click No Dynamic IP Allocation.
  5. In the Type drop-down menu, select DHCP Server or DHCP Relay.
    Note: If you select the profile type as DHCP Relay, the configuration does not take any effect. You must assign the DHCP relay profile to the segments, which are connected to the gateway. Attaching a DHCP relay profile to the gateway is a redundant configuration. This functional behavior is a known issue. For information about assigning a DHCP relay profile to the segment, click the Configure DHCP on a Segment link in the What to do next section of this topic.
  6. Select a DHCP server profile to attach to this gateway.
  7. Click Save.

What to do next

Navigate to Networking > Segments. On each segment that is connected to this gateway, configure the DHCP settings, static bindings, and other DHCP options.

After a Gateway DHCP server is in use, you can view the DHCP server statistics on the gateway. On the gateway, next to DHCP or IP Address Management, click the Servers link. On the Set DHCP Configuration page, click Statistics.

The Gateway DHCP server statistics are displayed in a pop-up window.

Note: If you have configured a local DHCP server on a gateway-connected segment, the Statistics link on the Set DHCP Configuration page does not display the local DHCP server statistics. Only Gateway DHCP statistics are shown on this page.