For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/hosted-private-cloud/vmware/nsx-configure-dhcp-onsegment.md.
  • English

DHCP Configuration in NSX

View as Markdown

In this guide, you will learn how to configure a DHCP server in a segment.

Requirements

Instructions

We will configure DHCP for :

  • An overlay segment behind the gateway ovh-T1-gw
  • A segment on a VLAN connected to the gateway ovh-T1-gw.

Common DHCP configuration for all overlay segments

First we will create a DCHP server common to all segments in Overlay.

  1. Through the NSX interface, go to the Networking tab.
  2. Click on Networking Profiles on the left in the Settings section.
  3. Go to the DHCP tab and click ADD DHCP PROFILE.

DHCP configuration - step 1

 

Type Name in Name and click SAVE.

DHCP configuration - step 2

 

The DCHP server is active, it uses a network in 100.96.0.1/30, do not use this network in one of your segments.

DHCP configuration - step 3

DHCP assignment to the ovh-T1-gw gateway

In the Networking tab, click on Tier-1-Gateways on the left in the Connectivity section.

DHCP configuration - step 4

 

Click the three vertical dots and choose Edit from the menu.

DHCP configuration - step 5

 

Click Set DHCP Configuration.

DHCP configuration - step 6

 

Choose DHCP Server from Type and your DHCP profile from DHCP Server Profile. Then click SAVE.

DHCP configuration - step 7

 

Click SAVE.

DHCP configuration - step 8

 

Click CLOSE EDITING.

DHCP configuration - step 9

Setting up DHCP on an Overlay segment

From the NSX interface, go to the Networking tab and click on Segments on the left in the Connectivity section.

Go to the Segments section, click on the configuration icon indicated with three vertical dots to the left of your segment and choose Edit.

DHCP configuration - step 10

 

Click Set DHCP CONFIG.

DHCP configuration - step 11

Fill in this information :

  • DHCP Type : Leave Gateway DHCP Server.
  • DHCP Ranges : Enter your range 192.168.1.10-192.168.1.200.
  • DNS Servers : Add OVHcloud DNS server 213.186.33.99.

Click on APPLY.

DHCP configuration - step 12

 

Click SAVE.

DHCP configuration - step 13

 

Click CLOSE EDITING.

DHCP configuration - step 14

Virtual machines in this segment can now be configured with DHCP.

Setting up DCHP on a VLAN segment

On a VLAN segment it is not possible to use the profile created for Overlay segments.

In order to have a DHCP server on this segment, we will create a DHCP configuration with a new profile directly attached to the segment.

If you do not have a VLAN type segment, use the Segment Management in NSX guide to create it with these settings :

  • VLAN Subnet: 192.168.100.0/24.
  • Gateway and interface IP address : 192.168.100.254/24.

Go to the Networking tab, click on Segments on the left in the Connectivity section, then click on the three vertical dots on the left of your VLAN segment and choose Edit from the menu.

DHCP configuration - step 15

 

Click SET DHCP CONFIG.

DHCP configuration - step 16

 

Leave Local DHCP Server in DHCP Type, click the three vertical dots to the right of DHCP Profile and choose Create New from the menu.

DHCP configuration - step 17

Enter this information :

  • Name: Leave DHCP-VLAN100.
  • Server IP Address : IP address of DHCP server 192.168.100.253/24.

Then select your Edge Cluster and click SAVE.

DHCP configuration - step 18

Verify in DHCP Profile that the profile is present and enter this information :

  • DHCP Server : DHCP server address 192.168.100.253/24.
  • DHCP Ranges : DHCP Server range 192.168.100.10-192.168.100.200.
  • DNS Servers : OVHcloud DNS server IP address 213.186.33.99.

Then click APPLY.

DHCP configuration - step 19

 

Click SAVE.

DHCP configuration - step 20

 

Click CLOSE EDITING.

DHCP configuration - step 21

The DHCP server is active on this VLAN segment.

Conclusion

Having read this guide, you should be able to configure a DHCP server in a segment.