You can create DHCP servers to service DHCP requests from VMs that are connected to logical switches.

Prerequisites

Verify that Manager mode is selected in the NSX Manager user interface. See NSX Manager. If you do not see the Policy and Manager mode buttons, see Configure the User Interface Settings.

Procedure

  1. With admin privileges, log in to NSX Manager.
  2. Select Networking > DHCP > Servers > Add.
  3. Enter a name and optional description.
  4. Enter the IP address of the DHCP server and its subnet mask in CIDR format.
    For example, enter 192.168.1.2/24.
  5. (Required) Select a DHCP profile from the drop-down menu.
  6. (Optional) Enter common options such as domain name, default gateway, DNS servers, and subnet mask.
  7. (Optional) Enter classless static route options.
  8. (Optional) Enter other options.
  9. Click Save.
  10. Select the newly created DHCP server.
  11. Expand the IP Pools section.
  12. Click Add to add IP ranges, default gateway, lease duration, warning threshold, error threshold, classless static route option, and other options.
  13. Expand the Static Bindings section.
  14. Click Add to add static bindings between MAC addresses and IP addresses, default gateway, hostname, lease duration, classless static route option, and other options.

What to do next

Attach a DHCP server to a logical switch. See Attach a DHCP Server to a Logical Switch in Manager Mode.