To use Gateway DHCP server for a dynamic IP assignment, you must attach an NSX 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 Segment DHCP server or a DHCP relay configured on them. If a Segment 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.

Prerequisites

A DHCP server profile is added in the network. For more details, refer to Add an NSX DHCP Profile.

Procedure

  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. Next to DHCP Config, click Set.
    The Set DHCP Configuration window opens.
  5. Select one of the following options from the Type drop-down menu:
    • No Dynamic IP Address Allocation
    • DHCP Server – If there are segments under this gateway using Gateway DHCP Server, a DHCP server is created.
  6. If you selected the DHCP Server option, select an existing DHCP server profile, or click Actions menu to add a new DHCP server profile to attach to this gateway. For more details, see Add an NSX DHCP Server Profile.
  7. Click Save.

What to do next

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

For more information, see Configure NSX DHCP Service.