I read on netacad that there may be more than one DHCP servers in the same network and I was wondering, how does the client choose between them?
Does the client choose the one that sends the DHCPOFFER first or there is something else?
I read on netacad that there may be more than one DHCP servers in the same network and I was wondering, how does the client choose between them?
Does the client choose the one that sends the DHCPOFFER first or there is something else?
DHCP is first-come, first-serve. You should not have two competing DHCP servers on the same network without some form of fail-over or HA between them, otherwise you run the risk of having duplicate IP's on the same network.
You are correct, DHCP is first-to-answer as far as the client is concerned. This doesn't mean you can't (or shouldn't) have multiple DHCP servers for a given subnet; it just requires planning.
I prefer to use a primary and a secondary DHCP server with split scoping. The details of an example subnet:
For doing this with a Windows environment, this link discusses this in greater depth - https://blogs.technet.microsoft.com/teamdhcp/2009/01/22/how-to-configure-split-scope-using-wizard/