<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div><div class="gmail_quote">On Tue, Jun 23, 2015 at 2:26 PM, Peter Rathlev <span dir="ltr"><<a href="mailto:peter@rathlev.dk" target="_blank">peter@rathlev.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2015-06-23 at 15:08 -0300, Leandro wrote:<br>
> After I run out of those ips, I can do two thinks:<br>
> a)change the network mask from /24 to /23.<br>
> b)Add a second /24 subnet behind the relay , for example <a href="http://1.1.2.0/24" rel="noreferrer" target="_blank">1.1.2.0/24</a> and<br>
> set a second gateway ip <a href="http://1.1.2.1/24" rel="noreferrer" target="_blank">1.1.2.1/24</a>.<br>
><br>
> option a) is not good since the broadcast domain at /23 could bring many<br>
> collisions. (its just my opinion).<br>
<br>
</span>For a regular Ethernet switched network, /23 doesn't sound like a lot.<br>
At modern speeds and with modern operating systems the baseline<br>
broadcast should be negligible.<br>
<span class=""><br>
> option b) Could work but, how does relay agent knows witch ip to use for<br>
> GI-Adrr ?<br>
> Can relay agent send both or more than one ips, on the GI-Addr field so<br>
> dhcpd can figure out from witch range can serve the ip ?<br>
<br>
</span>You would use "shared-network" for this. The GI-Addr just has to fall<br>
within one of the subnets inside the shared-network statement. The DHCP<br>
server will then hand out an address from a random subnet. Take a look<br>
at the dhcpd.conf man page for the syntax.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Peter<br>
</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div> Simon, Dave, and Peter are right. And when you use "shared-network", the DHCP server will work with any of the gateway addresses that the router chooses to send in the GiAddr field. DHCP treats all the subnets in the shared-network as one group of IP's to hand out.</div><div><br></div><div>Bob Harold</div><div><br></div><div><br></div></div><br></div></div>