<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Gllug] dhcpd Question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>-----BEGIN QUOTE----<BR>
Ken Smith wrote:<BR>
<BR>
> Are you saying that DHCP is smart enough to work out which interfaces to<BR>
> offer its subnet leases to, based on the IP address configuration of the<BR>
> interface?<BR>
<BR>
Yep.<BR>
-----END QUOTE-----<BR>
<BR>
For remote networks and DHCP relay agents the dhcpd server looks in the giaddr field (Gateway Interface Address) of the DHCP protocol which is filled in by the router or DHCP relay agent.<BR>
<BR>
This way dhcpd knows which subnet the request comes from and can give the correct address for the clients subnet.<BR>
<BR>
The same happens for a locally attached network. DHCP receives the broadcast directly from the client on eth0 so it knows to give out an address from an appropiate range<BR>
<BR>
~sm<BR>
(Apologies for the retarded quoting style)</FONT>
</P>

</BODY>
</HTML>