I choose DNSMASQ as DHCP server, and I want to push different ‘router’ setting to clients.
DNSMASQ supports tagging on hosts/ip ranges/subnets, I tag my mac address (with static ip-mac binding) as ‘prx’ and set ‘option:router’ to 192.168.1.20 if tag matches ‘prx’.
Here is my configuration:
1 2 3 4 5 6 7 8 9 10 11 12 |
# default dhcp range dhcp-range=192.168.1.100,192.168.1.199,12h # default router and dns-server options dhcp-option=option:router,192.168.1.1 dhcp-option=6,192.168.1.1 # bind 00:11:22:33:44:55 to 192.168.1.50, named as 'sskaje', tagged as 'prx' dhcp-host=00:11:22:33:44:55,192.168.1.50,sskaje,set:prx # sed hosts tagged as 'prx' default router to 192.168.1.20 dhcp-option=tag:prx,option:router,192.168.1.20 |
DNSMASQ Send Different DHCP Options by Hosts by @sskaje: https://sskaje.me/2016/10/dnsmasq-send-dhcp-options-hosts/
Incoming search terms:
Link to this post!