[Dnsmasq-discuss] How to set no gateway

Donald Muller donmuller22 at outlook.com
Sat Feb 25 00:05:41 UTC 2023



> -----Original Message-----
> From: Dnsmasq-discuss <dnsmasq-discuss-bounces at lists.thekelleys.org.uk>
> On Behalf Of Matus UHLAR - fantomas
> Sent: Friday, February 24, 2023 5:46 AM
> To: dnsmasq-discuss at lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] How to set no gateway
> 
> On 24.02.23 04:54, Donald Muller wrote:
> > This may or may not be a dnsmasq question/issue. If not, sorry for the
> noise.
> 
> > I have two networks.  One is a 1GB routable network.  The other is a 2.5GB
> > private, non-routable network.  The DHCP server (dnsmasq) is attached to
> > both networks and all addresses are assigned via DHCP.  The address on
> the
> > private network all have reservations.  DHCP is working fine and addresses
> > are properly assigned.  The issue I am having is that I don't want the
> > private network to have a default gateway.  Is there a way via DHCP to
> > tell the client to net set a default gateway when the IP configuration
> > information is sent?
> 
> I have this in dnsmasq.conf file:
> 
> # Override the default route supplied by dnsmasq and send no default
> # route at all. Note that this only works for the options sent by
> # default (1, 3, 6, 12, 28) the same line will send a zero-length option
> # for all other option numbers.
> #dhcp-option=3
> 
> perhaps this helps

Thank you for responding Matus. It worked perfectly!

This behavior should really be documented.

Don

> --
> Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> 42.7 percent of all statistics are made up on the spot.
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list