<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div>
<br><div class="gmail_quote">On Tue, Jun 23, 2015 at 11:54 AM, Leandro <span dir="ltr"><<a href="mailto:ingrogger@gmail.com" target="_blank">ingrogger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello dhcpd users:<br>
Im planning to manage a /17 network using isc dhcpd. I would like to briefly describe my plan so I can get any comments/advices from the list.<br>
My dhcp server will receive requests from approximately 20 relay agents from 3 different access technology.<br>
I dont know in advance behind wich relay will be most ip usage since I can not predict witch service will grown over the others.<br>
In order to be able to be flexible with ip pools management, Im thinking on:<br>
<br>
Create a class per each agent.circuit-id<br>
Subneting the /17 in /24 subnets<br>
Create a pool declaration per each subnet.<br>
Add / Delete "allow members of" statements within the pool declaration to bind a relay-agent with one or multiple pool<br>
<br>
I also would like to create a default class just in case I can not get the option 82 info from some relay-agent, I dont know how to do it yet.<br>
It would be for example with 3 class and 3 pools:<br>
<br>
#########################################<br>
class "fth_clients" {<br>
match if option agent.circuit-id = "fth_relay";<br>
}<br>
<br>
class "adsl_clients" {<br>
match if option agent.circuit-id = "adsl_relay";<br>
}<br>
<br>
class "default_clients" {<br>
match if option agent.circuit-id = ""; #need to confirm<br>
}<br></blockquote><div><br></div><div>If it does not work as written, then maybe you could try: </div><div> match if not( option agent.circuit-id = "fth_relay" or option agent.circuit-id = "adsl_relay" );</div><div>(That does not scale well, but should work for a small number of classes.)</div><div><br></div><div>-- </div><div>Bob Harold</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
shared-network my_pool {<br>
subnet 1.1.1.0 netmask 255.255.128.0 {<br>
<br>
#<a href="http://1.1.1.0/24" rel="noreferrer" target="_blank">1.1.1.0/24</a> for all clases<br>
pool {<br>
range 1.1.1.2 1.1.1.254;<br>
option broadcast-address 1.1.1.255;<br>
option subnet-mask 255.255.255.0;<br>
option routers 1.1.1.1;<br>
allow members of "fth_clients"<br>
allow members of "adsl_clients"<br>
allow members of "default_clients"<br>
}<br>
<br>
#<a href="http://1.1.2.0/24" rel="noreferrer" target="_blank">1.1.2.0/24</a> only for adsl_clients<br>
pool {<br>
range 1.1.2.2 1.1.2.254;<br>
option broadcast-address 1.1.2.255;<br>
option subnet-mask 255.255.255.0;<br>
option routers 1.1.2.1;<br>
allow members of "adsl_clients"<br>
}<br>
<br>
}<br>
}<br>
<br>
###################################33<br>
Any comment / Advice will be accepted,<br>
Thanks!!!<br>
Leadro.<br>
<br></blockquote><div> </div></div><br></div></div>