I am trying to configure a Windows 2019 RRAS VPN server to use DHCP for VPN address assignment from a specific network.
RRAS VPN Server - 192.168.1.20
DHCP Server - 192.168.1.10
VPN Network / Scope - 192.168.10.0 /24
My DHCP server is located on the same network as the VPN server but the IP addresses I want to assign to my VPN clients are that of another network (192.168.10.0/24). These servers are virtual machines running on Hyper-V (on the same host). The DHCP server has multiple scopes configured to serve the physical VLANs in our office. The DHCP server knows which scope to assign addresses to these VLANs from due to IP helper addresses on the physical switches.
How can I configure RRAS on the VPN server to request addresses from the 192.168.10.0/24 scope on the DHCP server?
At the moment, the VPN server is on the 192.168.1.0/24 network (the same network as the DHCP server). If a VPN client connects, it will send out a DHCP request to the DHCP server but how do I control which scope it receives an address from?
I want it to receive a 192.168.10.xxx address and not an address from any of the other scopes being served by that DHCP server. Is this possible with RRAS and Hyper-V virtual switching?
Any help appreciated.
You can, using the RRAS MMC Snap-In and a DHCP Relay.
To configure RRAS to use addresses from a DHCP server
To configure the IPv4 DHCP relay agent