Hello,
Thank you for posting in Microsoft Community forum.
Question 1: The DHCP server processes the request
The situation you mentioned is indeed a common challenge in EVPN-VXLAN deployments. DHCP servers will usually only respond to requests from their known IP addresses, which are for security and administrative reasons. The DHCP option 82 you mentioned is used to provide information about the relay agent so that the DHCP server can identify the true origin of the client.
Regarding the Microsoft documentation you are looking for, while Microsoft's official documentation may not explicitly state that "a pool of virtual IP addresses must be added", you can refer to the following link to understand how DHCP option 82 works and how to configure DHCP relay:
Install DHCP relay agent for Windows Server | Microsoft Learn
Understanding DHCP Option 82 | Junos OS | Juniper Networks
These documents can help you understand how the DHCP server handles requests from different IP addresses and how to configure DHCP options to suit your specific network environment.
Please Note: This response contains links to third parties, which we provide for convenience of reference, and Microsoft cannot guarantee the validity of any information and content in this link.
Question 2: IP address allocation behavior of the DHCP server
Regarding the issue you mentioned that the client needs to re-acquire the IP address after changing the role, the default behavior of the Windows DHCP server is to assign an IP address based on the MAC address. If a device has already acquired an IP address, the DHCP server assumes that the device is requesting the same IP address without going through the full DHCP discovery process. This behavior can cause problems in some cases, especially in dynamic network environments.
The registry modification you mentioned (setting DhcpFlagSubnetChangeDHCPRequest to 1) is to change this default behavior and allow the DHCP server to handle IP address assignment more flexibly when it receives a request. The reason for this setup may be to improve performance and reduce network traffic, as in many static or semi-static environments, devices often request the same IP address.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Regards,
Jill Zhou