[Dnsmasq-discuss] Setting different default gateway by mac address
Simon Kelley
simon at thekelleys.org.uk
Tue Jul 29 16:41:49 BST 2008
jboss at cpaaa.org wrote:
> I have a hand full of users on my network that need a different
> gateway. I would like to override the different gateway by mac
> address. Here are my config options:
>
> dhcp-option=option:router,172.xx.xx.1 # just the different gateway
>
>
> dhcp-host=00:XX:0B:65:XX:58,3,172.xx.xx.254 # Thought this might
> work but no
>
> dhcp-option=3,00:XX:0B:65:XX:58,172.xx.xx.254 # Thought this might
> work but no
>
> Thanks for your help
>
dhcp-host=00:XX:0B:65:XX:58,net:altgateway
dhcp-option=net:altgateway,option:router,172.xx.xx.1
The idea is to set the "altgateway" tag for just the relevant hosts, and
then send the different gateway just to them.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list