In this guide, you will learn how to configure a DHCP server in a segment.
Requirements
- Being an administrative contact of your Hosted Private Cloud infrastructure to receive login credentials.
- A user account with access to the OVHcloud Control Panel.
- Having NSX deployed with two overlay and VLAN segments configured in your NSX configuration. Use our guide on Segment Management in NSX for more information.
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.
- Through the NSX interface, go to the
Networking
tab. - Click on
Networking Profiles
on the left in the Settings section. - Go to the
DHCP
tab and clickADD DHCP PROFILE
.
Type Name
in Name and click SAVE
.
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 assignment to the ovh-T1-gw gateway
In the Networking
tab, click on Tier-1-Gateways
on the left in the Connectivity section.
Click the three vertical dots
and choose Edit
from the menu.
Click Set DHCP Configuration
.
Choose DHCP Server
from Type and your DHCP profile
from DHCP Server Profile. Then click SAVE
.
Click SAVE
.
Click CLOSE EDITING
.
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
.
Click Set DHCP CONFIG
.
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
.
Click SAVE
.
Click CLOSE EDITING
.
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.
Click SET DHCP CONFIG
.
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.
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
.
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
.
Click SAVE
.
Click CLOSE EDITING
.
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.