How to ignore DHCP requests without Option-82

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to ignore DHCP requests without Option-82

Alp Eren Kose
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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: How to ignore DHCP requests without Option-82

Anderson, Charles R
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.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users