<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>