On 08/20/2009 02:43 PM, Carlos Carvalho wrote:
Chris G ([email protected]) 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, 192.168.1.1 > >for each client (or list of clients given by the network id) that >needs to use default route 192.168.1.1. > >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.
The network ID can be the MAC address of the machine.
