We are studying DHCP in our networking class and I have a Virtual Box in which I have set up 2 VMs - one of them is a Windows server and other is a Windows 10 workstation. I have added the DHCP server role on the Windows server machine and I have added the following two scopes:
192.168.1.1 -192.168.1.20
192.168.1.30 - 192.168.1.40
I have added 192.168.1.21-29 in the exclusions list.
My question is which scope does the sever use when handing out IPs to my Windows WS? (both my Windows server and Windows WS are in the same network and domain) Does it choose the scope randomly or is there a process it follows?
I was going through the this thread and in this case the server handed out this particular IP becuase it was leased previously by the same device.
But what if the device is requesting IP for the first time? Which scope would it choose?