启用jffs分区
vi /jffs/configs/dnsmasq.conf.add
添加以下内容
dhcp-option=tag:test,option:router,192.168.8.2
dhcp-option=tag:test,option:dns-server,192.168.8.2
dhcp-host=xx:xx:a8:xx:xx:55,set:test,192.168.8.55,huawei
//标记tag test的网关和dns 并分配MAC地址为xx:xx:a8:xx:xx:55的huawei(可自定义)设备ip为8.55,并使用tag test设置的网关和dns
保存重启dnsmasq
service restart_dnsmasq
参考文档
https://www.asuswrt-merlin.net/download
https://github.com/RMerl/asuswrt-merlin.ng/wiki
https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq