<div dir="ltr">Hi <br><div>It might be too many questions but I wan to configure my dhcpd configuration file by avoiding the classes as much as possible</div><div>If the subnet is configured as like below snippet </div><div>subnet 192.168.10.0 netmask 255.255.255.0 {  </div><div>  pool {  </div><div>         range   192.168.10.10 192.168.10.199;  <br>        option subnet-mask 255.255.255.0;<br>        option routers 10.1.10.1;<br>        option domain-name "<a href="http://test.com">test.com</a>";<br>        option agent.circuit-id "22";<br>        option agent.remote-id "192.168.10.242";</div><div>  } <br>}<br></div><div>can we achieve the option 82 configuration setup with above snippet</div><div> Thanks in advance and or if any reference links to setup the option 82 functionality without class can also be appreciated</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 26, 2019 at 7:42 PM Surya Teja <<a href="mailto:suryateja042@gmail.com">suryateja042@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi is the option 82 supported by using class concept only ? <div>or can it be defined as other general options like domain-name server, router in scope section ?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 24, 2019 at 12:49 PM Surya Teja <<a href="mailto:suryateja042@gmail.com" target="_blank">suryateja042@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, <br>I am trying to configure the dhcp option 82, went through the google forums and one of it suggest the syntax like<br># vim /etc/dhcp/dhcpd.conf<br>########################################################<br>log-facility local7;<br><b>class "VLAN10" {<br>        match if binary-to-ascii(10,16,"",substring(option agent.circuit-id,2,2)) = "10";<br>} # VLAN10<br>class "VLAN20" { <br>         match if ( substring(option agent.remote-id,2,15)="10.5.20.4" <br>              and binary-to-ascii(10, 16, "",substring(option agent.circuit-id, 4, 2)) = "2" ); <br>}</b><br>subnet 192.168.10.0 netmask 255.255.255.0 {<br>        pool {<br>                <b>allow members of                "VLAN10";</b><br>                default-lease-time               600;<br>                max-lease-time                    7200;<br>                range                           192.168.10.1 192.168.10.199;<br>                option routers                  192.168.10.254;<br>                option broadcast-address        192.168.10.255;<br>                option subnet-mask              255.255.255.0;<br>                option domain-name-servers      4.2.2.2;<br>}<br>}<br>subnet 192.168.20.0 netmask 255.255.255.0 {<br>        pool {<br>       <b> allow members of                "VLAN20";</b><br>        default-lease-time              600;<br>        max-lease-time                  7200;<br>        range                           192.168.20.20 192.168.20.199;<br>        option routers                  192.168.20.254;<br>        option broadcast-address        192.168.20.255;<br>        option subnet-mask              255.255.255.0;<br>        option domain-name-servers      4.2.2.2;<br><br>}<br>(Just ignore ip values)<br>can we configure this concept only by using classes and make it allow or deny like that?<br>or can we use the option space concept to get it worked(do we have any other syntax). Thanks in advance<br></div>
</blockquote></div>
</blockquote></div>