[Dnsmasq-discuss] DHCP options, in particular setting default route

Carlos Carvalho carlos at fisica.ufpr.br
Thu Aug 20 22:43:02 BST 2009

Chris G (cl at isbd.net) wrote on 14 August 2009 11:03:
 >I'm pretty sure dnsmasq can do what I want but I'd just like to
 >confirm the details of how to do it.
 >I want dnsmasq to set default routes for DHCP clients, so I need to
 >use --dhcp-option, so far so good.  However the extra bit I'm not
 >quite clear about is that I want to set different default routes for
 >different clients.
 >So I need something like:-
 >    --dhcp-option = <network id>,option:router,
 >for each client (or list of clients given by the network id) that
 >needs to use default route
 >What I'm not quite clear about is what the network id looks like
 >and/or if I need to set it myself using other dnsmasq arguments.

You have to give the netid for the machine in the dhcp-host declaration.

More information about the Dnsmasq-discuss mailing list