VMware Cloud Community
nkh4947
Contributor
Contributor

How can I set the DHCP server for the VM?

Hi

I'm using vcenter 6.5 and esxi 6.5.

I have read several documents,

and I thought that by following instructions,

  1. set the ip pool and assign it to the distributed virtual port group
  2. create a vapp and set its ip application policy to the Transient - IP Pool
  3. add vm to the vapp

dhcp can be enabled for the VMs.

However, vm failed to get the IP from IP Pools.

IP Pool configuration 1

ippools1.png

IP Pool configuration 2

ip pools 2.png

vapp configuration

DHCP - vapp.png

Also, I tried all the combinations of <DHCP present> of ip pools and <IP allocation policy> of vapps.

However, it still failed.

Thanks in advance.

0 Kudos
2 Replies
dja234
Enthusiast
Enthusiast

you have to change ip allocation scheme to use it from ip pool & not the DHCP

Darshana Jayathilake
0 Kudos
nkh4947
Contributor
Contributor

Thanks for reply.

I changed ip allocation scheme as a flowing picture.

ip allocation.png

Also I tried both DHCP prensent check box on and off.

However, it still does not work at all.

I think if DHCP is enabeld by vCenter, dhcp request sent by VM should not be sent to uplink of the virtual switch.

but by using wireshark, I checked that dhcp request packet is still sent to uplink.

I think it means dhcp request is not handled by vCenter at all.

How can I solve this?

0 Kudos