How to ignore DHCP requests without Option-82

Chuck Anderson cra at WPI.EDU
Sat Apr 9 14:46:17 UTC 2016


Try this:

class "without-opt-82" {
  match if(not exists agent.remote-id);
  ignore booting;
}

On Sat, Apr 09, 2016 at 05:37:12PM +0300, Alp Eren Kose wrote:
> Hi,
> 
> I have got problem which might have an easy answer but I couldn't find it.
> 
> What I want to do is to make DHCP server ignore requests without an
> Option-82 information. That means to drop the requests without sending a
> DHCPNAK, I have got the following configuration however it sends a DHCPNAK
> for requests. Does anyone have an idea?
> 
> class "with-opt-82" {
>   match if( exists agent.remote-id );
> }
> 
> subnet 192.168.52.0 netmask 255.255.252.0 {
>   option routers 192.168.52.1;
>   pool {
>     failover peer "failover-partner";
>     allow members of "with-opt-82";
>     default-lease-time 9000;
>     max-lease-time 9000;
>     min-lease-time 9000;
>     range 192.168.52.21 192.168.55.254;
>   }
> }
> 
> Thanks in advance.


More information about the dhcp-users mailing list