Skip to content

Files

Latest commit

1e7d463 · Jun 6, 2022

History

History
165 lines (86 loc) · 8.61 KB

configure-dhcp-azure-vmware-solution.md

File metadata and controls

165 lines (86 loc) · 8.61 KB
title description ms.topic ms.custom ms.service ms.date
Configure DHCP for Azure VMware Solution
Learn how to configure DHCP by using either NSX-T Manager to host a DHCP server or use a third-party external DHCP server.
how-to
contperf-fy21q2, contperf-fy22q1
azure-vmware
04/08/2022

Configure DHCP for Azure VMware Solution

[!INCLUDE dhcp-dns-in-azure-vmware-solution-description]

In this how-to article, you'll use NSX-T Manager to configure DHCP for Azure VMware Solution in one of the following ways:

Tip

If you want to configure DHCP using a simplified view of NSX-T Data Center operations, see Configure DHCP for Azure VMware Solution.

Important

For clouds created on or after July 1, 2021, the simplified view of NSX-T Data Center operations must be used to configure DHCP on the default Tier-1 Gateway in your environment.

DHCP does not work for virtual machines (VMs) on the VMware HCX L2 stretch network when the DHCP server is in the on-premises datacenter. NSX-T Data Center, by default, blocks all DHCP requests from traversing the L2 stretch. For the solution, see the Configure DHCP on L2 stretched VMware HCX networks procedure.

Use the Azure portal to create a DHCP server or relay

You can create a DHCP server or relay directly from Azure VMware Solution in the Azure portal. The DHCP server or relay connects to the Tier-1 gateway created when you deployed Azure VMware Solution. All the segments where you gave DHCP ranges will be part of this DHCP. After you've created a DHCP server or DHCP relay, you must define a subnet or range on segment level to consume it.

  1. In your Azure VMware Solution private cloud, under Workload Networking, select DHCP > Add.

  2. Select either DHCP Server or DHCP Relay and then provide a name for the server or relay and three IP addresses.

    [!NOTE] For DHCP relay, you only require one IP address for a successful configuration.

    :::image type="content" source="media/networking/add-dhcp-server-relay.png" alt-text="Screenshot showing how to add a DHCP server or DHCP relay in Azure VMware Solutions.":::

  3. Complete the DHCP configuration by providing DHCP ranges on the logical segments and then select OK.

Use NSX-T Data Center to host your DHCP server

If you want to use NSX-T Data Center to host your DHCP server, you'll create a DHCP server and a relay service. Then you'll add a network segment and specify the DHCP IP address range.

Create a DHCP server

  1. In NSX-T Manager, select Networking > DHCP, and then select Add Server.

  2. Select DHCP for the Server Type, provide the server name and IP address, and select Save.

    :::image type="content" source="./media/manage-dhcp/dhcp-server-settings.png" alt-text="Screenshot showing how to add a DHCP server in NSX-T Manager." border="true":::

  3. Select Tier 1 Gateways, select the vertical ellipsis on the Tier-1 gateway, and then select Edit.

    :::image type="content" source="./media/manage-dhcp/edit-tier-1-gateway.png" alt-text="Screenshot showing how to edit the NSX-T Data Center Tier-1 Gateway for using a DHCP server." border="true":::

  4. Select No IP Allocation Set to add a subnet.

    :::image type="content" source="./media/manage-dhcp/add-subnet.png" alt-text="Screenshot showing how to add a subnet to the NSX-T Data Center Tier-1 Gateway for using a DHCP server." border="true":::

  5. For Type, select DHCP Local Server.

  6. For the DHCP Server, select Default DHCP, and then select Save.

  7. Select Save again and then select Close Editing.

Add a network segment

[!INCLUDE add-network-segment-steps]

Specify the DHCP IP address range

When you create a relay to a DHCP server, you'll also specify the DHCP IP address range.

Note

The IP address range shouldn't overlap with the IP range used in other virtual networks in your subscription and on-premises networks.

  1. In NSX-T Manager, select Networking > Segments.

  2. Select the vertical ellipsis on the segment name and select Edit.

  3. Select Set Subnets to specify the DHCP IP address for the subnet.

    :::image type="content" source="./media/manage-dhcp/network-segments.png" alt-text="Screenshot showing how to set the subnets to specify the DHCP IP address for using a DHCP server." border="true":::

  4. Modify the gateway IP address if needed, and enter the DHCP range IP.

    :::image type="content" source="./media/manage-dhcp/edit-subnet.png" alt-text="Screenshot showing the gateway IP address and DHCP ranges for using a DHCP server." border="true":::

  5. Select Apply, and then Save. The segment is assigned a DHCP server pool.

    :::image type="content" source="./media/manage-dhcp/assigned-to-segment.png" alt-text="Screenshot showing that the DHCP server pool assigned to segment for using a DHCP server." border="true":::

Use a third-party external DHCP server

If you want to use a third-party external DHCP server, you'll create a DHCP relay service in NSX-T Manager. You'll also specify the DHCP IP address range.

Important

For clouds created on or after July 1, 2021, the simplified view of NSX-T Data Center operations must be used to configure DHCP on the default Tier-1 Gateway in your environment.

Create DHCP relay service

Use a DHCP relay for any non-NSX-based DHCP service. For example, a VM running DHCP in Azure VMware Solution, Azure IaaS, or on-premises.

  1. In NSX-T Manager, select Networking > DHCP, and then select Add Server.

  2. Select DHCP Relay for the Server Type, provide the server name and IP address, and select Save.

    :::image type="content" source="./media/manage-dhcp/create-dhcp-relay.png" alt-text="Screenshot showing how to create a DHCP relay service in NSX-T Manager." border="true":::

  3. Select Tier 1 Gateways, select the vertical ellipsis on the Tier-1 gateway, and then select Edit.

    :::image type="content" source="./media/manage-dhcp/edit-tier-1-gateway.png" alt-text="Screenshot showing how to edit the NSX-T Data Center Tier-1 Gateway." border="true":::

  4. Select No IP Allocation Set to define the IP address allocation.

    :::image type="content" source="./media/manage-dhcp/add-subnet.png" alt-text="Screenshot showing how to add a subnet to the NSX-T Data Center Tier-1 Gateway." border="true":::

  5. For Type, select DHCP Server.

  6. For the DHCP Server, select DHCP Relay, and then select Save.

  7. Select Save again and then select Close Editing.

Specify the DHCP IP address range

When you create a relay to a DHCP server, you'll also specify the DHCP IP address range.

Note

The IP address range shouldn't overlap with the IP range used in other virtual networks in your subscription and on-premises networks.

  1. In NSX-T Manager, select Networking > Segments.

  2. Select the vertical ellipsis on the segment name and select Edit.

  3. Select Set Subnets to specify the DHCP IP address for the subnet.

    :::image type="content" source="./media/manage-dhcp/network-segments.png" alt-text="Screenshot showing how to set the subnets to specify the DHCP IP address." border="true":::

  4. Modify the gateway IP address if needed, and enter the DHCP range IP.

    :::image type="content" source="./media/manage-dhcp/edit-subnet.png" alt-text="Screenshot showing the gateway IP address and DHCP ranges." border="true":::

  5. Select Apply, and then Save. The segment is assigned a DHCP server pool.

    :::image type="content" source="./media/manage-dhcp/assigned-to-segment.png" alt-text="Screenshot showing that the DHCP server pool assigned to segment." border="true":::

Next steps

If you want to send DHCP requests from your Azure VMware Solution VMs to a non-NSX-T DHCP server, see the Configure DHCP on L2 stretched VMware HCX networks procedure.