To use Gateway DHCP server 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 a 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.
Prerequisites
A DHCP server profile is added in the network.
Procedure
- With admin privileges, log in to NSX Manager.
- Go to or .
- Edit the appropriate gateway.
- Next to DHCP, click Set DHCP Configuration.
- Select one of the options from the Type drop-down menu.
- No Dynamic IP Address Allocation
- DHCP Server – A DHCP server is created if there are segments under this gateway using Gateway DHCP Server.
- If type is DHCP Server, select a DHCP Server Profile or to create a new to DHCP Server Profile to attach to this gateway, click the three-dot menu (). For more details, see Add a DHCP Profile.
- Click Save.
What to do next
Navigate to
. On each segment that is connected to this gateway, configure the DHCP settings, DHCP options, and static bindings.
For detailed steps, see: