Windows DHCP server with multiple scopes – which will be used

dhcpscopevlanwindows-server-2003

I have a Win 2k3 server with DHCP running on a subnet with no VLAN, and 5 scopes (each with a different subnet). I have 4 VLAN's and a router that does DHCP relay to that server from each vlan.

I understand that a DHCP request coming from any VLAN will be converted to unicast, and the DHCP server will pick the right scope to serve from based on the unicast address. Great!

However, what if a DHCP request comes in from a PC not on a vlan? Which scope will the server use?

If not predictable, is there a way to force the DHCP server to use one scope by default?

Best Answer

DHCP scopes and switch VLAN's aren't directly related to each other and as such there's no interdependence or interaction between them. The DHCP server will assign an ip address from the scope that corresponds to the subnet that the server is on, except in the case where a DHCP relay agent is in use to relay DHCPDiscover packets from remote subnets. In the case of remote subnets where a DHCP relay agent is in use, the DHCP relay agent forwards the DHCP client broadcast packet as a unicast packet to the DHCP server with additional information (contained in the GIADDR field), which the DHCP server uses to assign an ip address from a scope that corresponds to the GIADDR field value in the DHCP relay agent packet.

http://www.ietf.org/rfc/rfc2131.txt