What's new

Setting dnsmasq on Asuswrt-Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Siff

New Around Here
Hi All,

I'm setting up an RT-AX88U Pro as a main router with another one as a mesh node. The main router has Asuswrt-Merlin version 3004.388.8_2 installed on it.

I'm looking to have a "Main" network (192.168.1/24) and 2 Guest Networks (172.16.0.1/24 - "Guest" on GN#1 on 5GHz and 172.16.10/24 - "IoT" on GN#1 on 2.4GHz) and I need all of them available on the mesh node. All networks will have a mix of devices with static IPs (on the device), DHCP reservations and "free floating" DHCP IPs.

I have YazDHCP (I'm not sure whether I'll keep it) and YazFi installed. With YazFi, I set the 2 Guest Networks up. I looked though the forum for how to set the DHCP reservations on the "Main" network (I have some devices with 2 MAC addressed with the same IP) as well as on "Guest" and "IoT" and I found several posts (here, here, here as well as many other posts), which gave good advice and direction what to do, but none of my attempts to add dhcp-host= worked, so I ended up with the following:

I created a local_config directory under /jffs and created the following two files in it (dummy MAC, IP addresses and host names):

local_hosts
Code:
192.168.1.3 device-1 # static ip set on device
192.168.1.101 device-2 # DHCP Reserved
192.168.1.190 device-3 # DHCP Reserved with two MAC addresses
172.16.0.40 guest-device-1 # DHCP Reserved on "Guest"
172.16.10.110 iot-device-1 # DHCP Reserved on "IoT"

local_dhcp
Code:
11:22:33:44:55:66,192.168.1.101 # device-2
22:33:44:55:66:AA,22:33:44:55:66:BB,192.168.1.190 # device-3
33:44:55:66:77:88,172.16.0.40 # guest-device-1
44:55:66:77:88:AA,172.16.10.110 # iot-device-1
44:55:66:77:88:AA,iot-device-2 # Assign name, no IP reservation

Then I edited the /jffs/configs/dnsmasq.conf.add file and added:
Code:
addn-hosts=/jffs/local_config/local_hosts # local config
dhcp-hostsfile=/jffs/local_config/local_dhcp # local config

As the above shows, I have a wide range of cases which I have to cover (the MAC-to-host name is for convenience only, of course) and I would like to check whether I'm doing something in a wrong or in a non recommended way (e.g. using /jffs to strore my local config)? Also, I think that I don't need YazDHCP (I guess that I'll have to create the /jffs/configs/dnsmasq.conf.add file myself) for this configuration?

Also, I have the "Advanced Settings", "LAN", "DHCP Server tab (YazDHCP)", "DNS and WINS Server Setting", "Advertise router's IP in addition to user-specified DNS" set to "No" and the "General", "Tools", "Other Settings", "Advanced Tweaks and Hacks", "Wan: Use local caching DNS server as system resolver" set to "Yes", so the local names are resolved by the router.

Thank you!
 
Last edited:
This is not possible. YazFi doesn't support AiMesh nodes. (This question would probably have been better asked in the Merlin addons forum as it's specific to YazFi).

However, you could probably achieve most of what you want by not using YazFi and just using the normal AiMesh guest network options. You wouldn't be able to use 172.16.0.0/24 or 172.16.10.0/24 though, you would have to use the provided 192.168.101.0/24 and 192.168.102.0/24 networks.
 
Last edited:
I'm setting up an RT-AX88U Pro as a main router with another one as a mesh node.
As already indicated, YazFi does not work on, or extend to, AiMesh nodes. YazFi only works on the main router. Per the original YazFi developer:
YazFi doesn't work on Aimesh nodes. The guest network on the node will be unrestricted
If you want to set manual IP reservations for YazFi clients see the following:
https://www.snbforums.com/threads/y...inc-ssid-vpn-client.45924/page-32#post-473403
 
Thank you @ColinTaylor and @bennor!

I don't need the IP ranges I posted (but I definitely need the Guest Networks to be available on the AiMesh node!), so I'll try Colin's suggestion. Fingers crossed, it will work
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top