How do I change DHCP server to my vMX

Brian Estelle 0 Reputation points
2023-03-24T18:09:56.5466667+00:00

I want to place new vm's on the virtual network, and have the vMX assign dhcp. I am not even sure where to control the dhcp that is provided by Azure for the vm's.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,451 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,491 Reputation points
    2023-03-25T05:32:46.9266667+00:00

    Hi Brian,

    As far as I know you cannot deploy a DHCP server in Azure VNets:

    Can I deploy a DHCP server in a VNet?

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#can-i-deploy-a-dhcp-server-in-a-vnet

    Azure VNets provide DHCP service and DNS to VMs and client/server DHCP (source port UDP/68, destination port UDP/67) not supported in a VNet. You cannot deploy your own DHCP service to receive and provide unicast/broadcast client/server DHCP traffic for endpoints inside a VNet. You can deploy a DHCP server on a VM with the intent to receive unicast DHCP relay (source port UDP/67, destination port UDP/67) DHCP traffic. A possible scenario is configuring DHCP relay from devices on-premises to an Azure VM running a DHCP server. Customer is responsible for configuring on-premise devices (for example, router configuration) to create this DHCP relay traffic to the VM's IP in Azure.

    I believe this answer would answer for vMX as well.

    Can I reserve a private IP address for a VM that I will create at a later time?

    No. You cannot reserve a private IP address. If a private IP address is available, it is assigned to a VM or role instance by the DHCP server. The VM may or may not be the one that you want the private IP address assigned to. You can, however, change the private IP address of an already created VM, to any available private IP address.

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#can-i-reserve-a-private-ip-address-for-a-vm-that-i-will-create-at-a-later-time

    What are the different types of IP addresses I can assign to VMs?

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#what-are-the-different-types-of-ip-addresses-i-can-assign-to-vms


    If this is helpful please accept answer.

    0 comments No comments

  2. Gunston, Aden 0 Reputation points
    2023-10-03T14:09:40.16+00:00

    I think the statement you reference has been altered to remove the possibility of using an Azure VM as the endpoint for a DHCP relay:

    Azure virtual networks provide DHCP service and DNS to VMs and client/server DHCP (source port UDP/68, destination port UDP/67) not supported in a virtual network. You can't deploy your own DHCP service to receive and provide unicast or broadcast client/server DHCP traffic for endpoints inside a virtual network. Deploying a DHCP server VM with the intent to receive unicast DHCP relay (source port UDP/67, destination port UDP/67) traffic is also an unsupported scenario.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.