<div>Thank you for that information! If the host declaration (even if on a different subnet) takes higher precedence to the client's subnet, it would really explain quite a bit.<br></div><div><br></div><div>But exploring on that front, here is something I came across on the ISC portal describing the dhcpd.conf file, quoted :<br></div><div><br></div><div>Link : <a href="https://www.isc.org/wp-content/uploads/2017/08/dhcp43.html">https://www.isc.org/wp-content/uploads/2017/08/dhcp43.html</a><br></div><div><br></div><div>"<br></div><div><span style="color:rgb(0, 0, 0)"><span style="font-family:"Times New Roman""><span style="font-size:medium">When dhcpd tries to find a<span> </span></span></span></span><i style="color: rgb(0, 0, 0); font-family: "Times New Roman"; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">host</i><span style="color:rgb(0, 0, 0)"><span style="font-family:"Times New Roman""><span style="font-size:medium"><span> </span>declaration for a client, it first LOOKS FOR A HOST DECLARATION </span></span></span><span style="color:rgb(0, 0, 0)"><span style="font-family:"Times New Roman""><span style="font-size:medium">which has a<span> </span></span></span></span><i style="color: rgb(0, 0, 0); font-family: "Times New Roman"; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">fixed-address</i><span style="color:rgb(0, 0, 0)"><span style="font-family:"Times New Roman""><span style="font-size:medium"><span> </span>declaration that lists an IP address THAT IS VALID FOR THE SUBNET or shared network ON WHICH THE CLIENT IS BOOTING. If it doesn’t find any such entry, it tries to find an entry which has no<span> </span></span></span></span><i style="color: rgb(0, 0, 0); font-family: "Times New Roman"; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">fixed-address</i><span style="color:rgb(0, 0, 0)"><span style="font-family:"Times New Roman""><span style="font-size:medium"><span> </span>declaration.</span></span></span><br></div><div>" <br></div><div><br></div><div>- pardon the CAPS, just wanted to place that in focus<br></div><div><br></div><div>Would this suggest that dhcpd picks the host declaration that is within the subnet of the client, and not other subnets?<br></div><div><br></div><div>Host declarations do support circuit-id. I will try using class declarations.<br></div><div><br></div><div><span style="background-color:rgb(255, 255, 255)"><span style="color:rgb(85, 85, 85)"><span style="font-size:14px"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">------------------------------ </span></span></span></span><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;"><br></span></div><div><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">
Date: Tue, 20 Nov 2018 21:31:10 +0000
From: Simon Hobson <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:dhcp1@thehobsons.co.uk" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">dhcp1@thehobsons.co.uk</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
To: Users of ISC DHCP <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:dhcp-users@lists.isc.org" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">dhcp-users@lists.isc.org</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
Subject: Re: ISC DHCP server ignores fixed address specification for
Circuit-ID
Message-ID: <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:EA20386E-2560-48C7-A76A-94F20A22CF01@thehobsons.co.uk" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">EA20386E-2560-48C7-A76A-94F20A22CF01@thehobsons.co.uk</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
Content-Type: text/plain; charset=us-ascii
codedd713 <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:codedd713@protonmail.com" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">codedd713@protonmail.com</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">> wrote:
> I observed this behavior (below) on ISC DHCP server. Was wondering if this is to be expected or perhaps I overlooked some element.
Yes you've overlooked a critical bit of knowledge - something that's tripped up a few people over the years. All host declarations are global in scope - even when written within a subnet declaration. So the host statement matching the MAC address will always match - even when the client is in the other subnet. This may well prevent the other host declaration from matching - don't know what happens if two host declarations match a client.
Also, I don't know if you can match on that option (circuit ID). AIUI there are only a small number of fields you can match on within a host statement.
------------------------------
Message: 3
Date: Tue, 20 Nov 2018 21:45:38 +0000
From: Patrick Trapp <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:ptrapp@nex-tech.com" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">ptrapp@nex-tech.com</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
To: Users of ISC DHCP <</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:dhcp-users@lists.isc.org" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">dhcp-users@lists.isc.org</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
Subject: RE: ISC DHCP server ignores fixed address specification for
Circuit-ID
Message-ID:
<</span></span><a style="background-color: rgb(255, 255, 255); font-family: monospace; white-space: pre-wrap;" href="mailto:1D507D610594D14F86D40D77C17E9E665761F9DA@EXCHANGEDSB.ruralnex.com" rel="noreferrer nofollow noopener" target="_blank"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">1D507D610594D14F86D40D77C17E9E665761F9DA@EXCHANGEDSB.ruralnex.com</span></a><span style="color: rgb(85, 85, 85); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><span style="font-family: menlo, consolas, courier new, monospace, sans-serif;">>
Content-Type: text/plain; charset="us-ascii"
Probably irrelevant to the larger conversation, but I am successfully using circuit ID to determine if a host belongs to a class. I only share that in case it's helpful to the OP if their host statements turn out to not use circuit ID like desired.
</span></span><br></div>