You can add multiple DHCP server profiles in your network. Further, you can attach a single DHCP server profile to multiple DHCP servers.
- Edge nodes are deployed in the network.
- Edge cluster is added in the network.
- From your browser, log in with admin privileges to an NSX Manager at https://nsx-manager-ip-address.
- Select .
- Click Add DHCP Profile.
- Enter a unique name to identify the DHCP server profile.
- In the Profile Type drop-down menu, select DHCP Server.
- (Optional) Enter the IP address of the DHCP server in a CIDR format.
Note: A maximum of two DHCP server IP addresses are supported. You can enter one IPv4 address and one IPv6 address. For an IPv4 address, the prefix length must be <= 30, and for an IPv6 address, the prefix length must be <= 126. The DHCP server IP address must not overlap with the addresses used in DHCP ranges and DHCP static binding.
If no server IP address is specified, 100.96.0.1/30 is autoassigned to the DHCP server.The server IP address cannot be any of the following:
- Multicast IP address
- Broadcast IP address
- Loopback IP address
- Unspecified IP address (address with all zeroes)
- Edit the lease time in seconds. The default value is 86400.
Valid range of values is 60–4294967295.
- Select an Edge cluster.
Follow these guidelines:
Caution: You can change the edge cluster in the profile after the DHCP server is created. However, this action causes all the existing DHCP leases that are assigned to the DHCP clients to be lost.
- If you are using a Local DHCP server on a segment, you must select an edge cluster in the DHCP server profile. If an edge cluster is unavailable in the profile, an error message is displayed when you save the segment.
- If you are using a Gateway DHCP server on the segment, select an edge cluster either in the gateway, or DHCP server profile, or both. If an edge cluster is unavailable in either the profile or the gateway, an error message is displayed when you save the segment.
When a DHCP server profile is attached to a segment that uses a Local DHCP server, the DHCP service is created in the edge cluster that you specified in the DHCP profile. However, if the segment uses a Gateway DHCP server, the edge cluster in which the DHCP service is created depends on a combination of several factors. For a detailed information about how an edge cluster is selected for DHCP service, see Scenarios: Selection of Edge Cluster for DHCP Service.
- By default, the edges for the DHCP server are autoallocated from the edge cluster and DHCP HA is configured.
NSX-T selects a pair of active and standby edge nodes automatically from the available nodes in the edge cluster. If you want to allocate the edges manually from the edge cluster, go to the next step.
- (Optional) Manually allocate the edges from the cluster.
- Turn off the Edges toggle button.
- (Required) From the first drop-down menu, select an edge node.
- (Optional) From the second drop-down menu, select another edge node.
The first edge node becomes the active edge and the second edge node becomes the standby edge. If second edge node is not selected, DHCP HA is not configured.
- (Optional) In the Tag drop-down menu, enter a tag name. When you are done, click Add Item(s).
The maximum length of the tag name is 256 characters.
If tags exist in the inventory, the Tag drop-down menu displays a list of all the available tags and their scope. The list of available tags includes user-defined tags, system-defined tags, and discovered tags. You can select an existing tag from the drop-down menu and add it to the DHCP profile.
- Click Save.