question

WinTechie-3187 avatar image
0 Votes"
WinTechie-3187 asked CRD-8761 commented

DHCP server in Azure

Hi,

Is running DHCP service in Azure VM supported, This is meant to provide IPs to endpoints present on different physical/office sites.

Note: due to business requirement/constraints, have to serve DHCP service from Azure

azure-virtual-machinesazure-virtual-networkwindows-dhcp-dns
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
1 Vote"
AndreasBaumgarten answered CRD-8761 commented

Hi @WinTechie-3187 ,

running a DHCP service on an Azure VM is not supported.
Please refer: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#what-protocols-can-i-use-within-vnets

The DHCP service is provided by Azure for each subnet automatically . There is no need to run a DHCP service on a VM.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Andreas. You confirmed what I suspected after I posted my question. I got concerned when I saw an unrecognized IP address for the DHCP server, when I ran an"ipconfig /all" on an Azure VM. Then my concerns were hightened when I geolocated the "unrecognized" IP to Hong Kong (my Azure Vnet is in the USE region). Fear, if unchecked, can lead you astray. Thanks for your help.

0 Votes 0 ·
ktremain avatar image
0 Votes"
ktremain answered CRD-8761 commented

Hi,

I believe you are asking about running DHCP for use with an on-prem DHCP relay agent.

As Andreas noted in the other answer above, it is not supported (and would not work to hand out IP's to other Azure VM's) - however, you might find that it will respond to relay agent requests, although due to the unsupported state, please do not rely on this as it may break in the future. It would be better to run DHCP somewhere nearer your endpoint, maybe on a router or switch infrastructure if possible

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks ktremain, I appreciate your response. As noted in my comment to Andreas, I misunderstood the unrecognized IP address of the DHCP server, not realizing until after I posted my question that it was pointing to a MS datacenter in Hong Kong. Thanks again for your response.

0 Votes 0 ·