DHCP server scope on different subnet

newbie Admin

Reputable
Aug 4, 2015
7
0
4,520
I may have word the title misleading but please bear with me.

I am looking for a way to assign Windows 7 client a subnet and allow it to grab any ip from DHCP scope. On my Windows Server DHCP I configured it to be superscope with 4 subnets (no real reason beside categorizing them for webexclusion list). I want to be able to tell a computer which subnet it belongs to and allow it to grab any IP address from DHCP.

Any idea?

I know this can be done as I "accidently" assign a client with subnet 192.168.2.x before but not sure what I did.
 
You cant just plug 12 PCs into a unmanaged switch and the single DHCP server know which of those PCs to assign to which subnet.

It sounds like you have already setup DHCP scopes to assign IPs for each subnet.
You either need routers for each subnet that can be your DHCP relay or managed switches with VLAN tagging (and then bridge the VLANs)
 
If you are obtaining the IP address via DHCP you are also obtaining the netmask in the same way. Therefore there is no way to tell the client computer which subnet to use.

In other words - it can't be done. The nearest that you could do would be to assign a fixed address in the DHCP server to the client's MAC. As you say, there is really no good reason to subnet your network in this way.
 


With unmanaged switches and a single off the shelf SOHO routers this is correct.

By using a router for each subnet (and setting them to point to the Server for DHCP) you can use that router to then be the DHCP relay that will tell the DHCP server which subnet it is on so that it can use the right scope of DHCP addresses.

Then there is managed routers and switches where you can assign each port to a VLAN and thus the DHCP server can know which scope based off of what VLAN.
 
At the end of the day there clearly has to be something that differentiates that computer in order to categorize it as one subnet or the other. It is either a setting on the specific PC, an identifier like it NETMASK or WINS name or its MAC address that is built into an exclusion/reservation list, or its something else physical like what port its plugged into. There is just no way around that.