How to remove 'router' option within a dhcpd group block

Sten Carlsen stenc at s-carlsen.dk
Thu Jun 30 14:29:58 UTC 2022



> On 30 Jun 2022, at 15.16, Adam Nielsen <a.nielsen at shikadi.net> wrote:
> 
> Hi all,
> 
> Does anyone know if there is a way to remove a router in a group block
> that was set in a subnet block, in the dhcpd config file?

I put the router option in each pool, probably it will also work in groups.
This works for me.

> 
>  subnet 192.168.0.0 netmask 255.255.255.0 {
>    option routers 1.2.3.4;
>  }
> 
>  group {
>    # Don't supply a router at all.
>    option routers 0.0.0.0;
> 
>    host ...
>  }
> 
> Specifying 0.0.0.0 doesn't work, dhcpd still hands out 1.2.3.4 from the
> subnet section.
> 
> Is there a way to tell it to drop that option completely within the
> group section?
> 
> My reason for asking is that I have some devices that like to phone
> home, and while I can block them at the router it would be nice not to
> even have them try to connect to the router at all.
> 
> Many thanks,
> Adam.
> -- 
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
> 
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



More information about the dhcp-users mailing list