<div dir="ltr">Hello.<div>I have to configure a dhcp server wich will act as master for dozens of relays.</div><div>My basic pool config includes a lot of "allow members of" statements, like this :</div><div><br></div><div><br></div><div>subnet 192.168.2.0 netmask 255.255.255.0 {<br>    option routers 192.168.2.1;<br>    #option domain-name-servers 192.168.2.1;<br>    #option bootfile-name = "snom821.htm";<br>    pool {<br>        range 192.168.2.100 192.168.2.200;<br>        ### Assign who is going to use this pool<br>        allow members of "voip-mac-address-prefix";<br>        # allow localhost for NRPE<br>        # allow members of "localhost";<br>        # Aastra<br>        allow members of "Aastra6730i";<br>        allow members of "Aastra6731i";<br>        allow members of "Aastra6739i";<br>        allow members of "Aastra6751i";<br>        allow members of "Aastra6753i";<br>        allow members of "Aastra6755i";<br>        allow members of "Aastra6757i";<br>        # Snom<br>        allow members of "Snom300";<br>        allow members of "Snom320";<br>        allow members of "Snom360";<br>        allow members of "Snom370";<br>        allow members of "Snom820";<br></div><div>       ....</div><div>     }</div><div>}</div><div><br></div><div>As I have to create dozens of pools, I tried to put all these "allow members of ..." in a file called "allowed_members.include", and replace my pool def by :</div><div><br></div><div>subnet 192.168.2.0 netmask 255.255.255.0 {<br>    option routers 192.168.2.1;<br>    pool {<br></div><div>        include "path/to/allowed_members.include";</div><div>    }</div><div>}</div><div><br></div><div><br></div><div>but it does not work, it throws a config error when testing config.</div><div><br></div><div>So my questions are :</div><div>- is there a way to do an "include" inside a pool ?</div><div>- is there another way to declare multiple pools for each relay ? (all relays will have the same config)</div><div><br></div><div>The aim of this is to have a small and comprehensible dhcpd.conf file.</div><div><br></div><div><br></div><div>Regards,</div><div>Cédric</div><div><br></div></div>