Siff
Occasional Visitor
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.0/24) and 2 Guest Networks (172.16.0.0/24 - "Guest" on GN#1 on 5GHz and 172.16.10.0/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
local_dhcp
Then I edited the /jffs/configs/dnsmasq.conf.add file and added:
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!
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.0/24) and 2 Guest Networks (172.16.0.0/24 - "Guest" on GN#1 on 5GHz and 172.16.10.0/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: