Windows DHCP server scope selection

Kalin Hristov 0 Reputation points
2023-06-03T06:44:16.2433333+00:00

Hello

I am trying to force a specific DHCP clients to get IP address from specific scope in a superscope setup but it does not work

Basically I have two scopes

Scope A range 192.168.0.0/24

Scope B range 192.168.10.0/24

They are combined in superscope.

Now, I want a specific clients based on DHCP option 60 to get IP address from scope B. I have added a policy to Scope B which match this specific DHCP option but it does not work

I tried to add a policy to Scope A, which says "Not equals" to this vendor specific option, hoping to force the DHCP server to pick the Scope B, but it does not work as well

Any ideas?

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,594 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,034 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,101 Reputation points
    2023-06-05T11:10:18.47+00:00

    Hello there,

    DHCP Server offers a client a lease based on the scope - and the scope chosen is based on the interface the DHCP Discover is first received, Thus you need to ensure that the server receives the requests via the right interface.

    There are a few ways to force clients to take IP addresses from the first DHCP server in a LAN with multiple DHCP servers. One option is to configure the DHCP server with a higher priority or precedence value. Another option is to use DHCP relay agents to direct clients to the first DHCP server. You can also configure DHCP clients to only accept DHCP offers from specific servers using DHCP filters, or use DHCP reservation to assign specific IP addresses to certain clients

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  2. Kalin Hristov 0 Reputation points
    2023-06-06T10:20:56.1366667+00:00

    Thanks for the reply. I have only one server with two scopes, combined in one superscope. The clients are directly connected to the DHCP server. There are no routers in between. The current algorithm that I see the server is using is to utilize the first scope, and when there are no more addresses, the server starts to use the second scope. The only option that I currently know that is working is to reserve an address from the second scope to the client's MAC address and it is working, but this is not scalable. I want to be able to select the scope via DHCP option 60, but the scope policy that I create does not kick in for some reason

    0 comments No comments