Login to the vCenter

Select Network & Security from Home button

Select Logical Switches

We can see that, there is a logical switch for Windows vms

We are going to configure DHCP zone for windows tier(5003 segment ID)

clip_image001

Just check & confirmed there are two vms

clip_image002

Checked the ip address of one vm.Its static IP 172.16.70.13

clip_image003

Go to the NSX edges

Double click on edge-1(Perimeter-Gateway-01)

clip_image004

Click on Manage

Select DHCP

Select Pools

clip_image005

Click on Enable button

clip_image006

Click on green colour + sign

Provide required details

Start IP

End IP

Domain name

Primary DNS server

Default Gateway

Subnet Mask

clip_image007

Login to the one of thevm in that logical switch.

Enable DHCP on the network connection

We can see that , machine took theIP address from our edge

clip_image008

If we want to do a DHCP reservation ,go to the Bindings

Click on + sign

clip_image009

Add record

Assign Host Name

IP Address

Subnet Mask

Domain name

*note-IP address should be out of the scope which we have created

clip_image010

clip_image011

If we still want to use our existing DHCP servers(Windows, Linux), we can use the DHCP relay function of the NSX gateway.

Go to the Relay

Add DHCP server’s IP address to the IP Sets

Add interface names to DHCP Relay Agents section( we have given windows logical switches interface)

clip_image012

clip_image013

clip_image014

clip_image015