<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 5, 2011, at 1:41 PM, Paul Reilly wrote:</div><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; "><div class="im">> I'm not clear on how the DHCP server knows which subnet to use though?  Does it use the the router address of the subnet (where ip helper address is configured)  to determine which subnet the request is coming from?<br>

<br>
</div>Yes, for remote subnets. For local subnets, it uses its own network address for the comparison.<br></blockquote><div class="h5"><br>Yes, that makes sense for remote subnets. But for local subnets does it compare it to it's own IP address? <br>
What if there's more than 1 local subnet?<br></div></div></blockquote><div><br></div><div>Yes, that's what I meant when I said that it uses its own network address for the comparison.</div><div><br></div><div>If the DHCP server has more than one network interface, and thus more than one local subnet, each one is treated as a separate subnet.</div><br><blockquote type="cite">One other question which is bugging me, is if the lease time is set high, say 1 day,  and a laptop user in subnet 10  walks to another building and plugs in to subnet 20,  their machine still has the 1 day lease from subnet 10. From what I've seen in the DHCP logs, when the laptop starts up again, it doesn't do a DHCPDISCOVER but a DHCPREQUEST for it's subnet 10 address.  At the moment the DHCP sends back a DCHPACK saying yeah, that IP is fine, but it's clearly not, as it won't work in that subnet. What is the expected behaviour?</blockquote><div><br></div><div>The expected behavior is that it should send a DHCPNAK, or "not acknowledged". Basically, it should reject the renewal, at which point the client should immediately start over with a DISCOVER.</div><br><blockquote type="cite"> Should it reconfigure itself auto-magically for subnet 20, or does it's lease have to expire, or does the user  have to do a<span style="font-family: courier new,monospace;"> ipconfig /release </span>then<span style="font-family: courier new,monospace;"> ipconfig /nenew</span>  to force it to get it's new subnet 20 IP address?<br></blockquote></div><br><div>You can force the previous lease to expire with the statement 'one-lease-per-client true;'. Either way, though, the client should automatically figure out that it's on a new subnet and get its other assigned address.</div><div><br></div><div>Chris Buxton</div><div>BlueCat Networks</div></body></html>