Setting up DHCP on an NSX Edge Services appliance
Assign IPs to your VMs through DHCP
Assign IPs to your VMs through DHCP
Last Updated on 22nd November 2021
DHCP allows automatic assignment of private IPs to VMs behind your NSX Edge Services Gateway.
This guide explains how to setup the DHCP service.
In the vSphere interface menu, go to the Networking and Security
dashboard.
On the left side, navigate to the NSX Edges
section then click on the appliance you're setting up.
In the DHCP
tab, you'll see 3 options:
We'll set up those 3 services in this guide.
Let's start with Pools
. Click on it.
The Pools
menu allows the traditional setup of the DHCP service.
We'll set up a scope for it and will start the service.
Click on + Add
.
In the New DHCP Pool window, fill in the informations you need:
DHCP Options
tab but those are outside of the scope of this guideClick on Add
when done.
The DHCP pool is ready but you need to click Start
and then Publish
to start the service and register the changes.
The DHCP is now operational. You can see the service status and the basic information on the pool.
Now on the left side, click on Bindings
.
Bindings will always assign the same DHCP address to a specific network interface, depending on a specific information.
Click on + Add
when ready.
There are 2 ways to create bindings:
For VM NIC Binding, type in the information as follows:
Don't forget your DNS Settings
.
They can be put manually or configured automatically.
Click on Save
when done.
Now click on + Add
again and choose Use MAC Binding
.
Again, do not forget your DNS Settings
.
Click on Save
when done.
You can now Publish
our changes.
The DHCP Bindings and their basic settings are now visible.
Click on Relay
.
The set up of a DCHP relay implies the existence of routes to the target DHCP servers.
First, create the Global Configuration by clicking Edit
.
You can add:
Click Save
when ready.
Now click + Add
to set up an agent.
The vNIC will be the Edge Services Gateway interface that will forward the DHCP requests.
The Gateway Address is the address that will forward the requests.
Click Add
.
You can now Publish
the changes.
Your DHCP Relay will be functional after a short wait.
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community