Jack Yaz
Part of the Furniture
v1.0.6
Updated 2023-11-18
Feature expansion of DHCP assignments using AsusWRT-Merlin's Addons API to read and write DHCP assignments, increasing the limit on the number of reservations.
YazDHCP is free to use under the GNU General Public License version 3 (GPL 3.0).
This project is hosted on GitHub
Love the script and want to support future development? Any and all donations gratefully received!
PayPal donation
Buy me a coffee
Supported firmware versions
You must be running firmware Merlin 384.15/384.13_4 (or later) Asuswrt-Merlin
Installation
Using your preferred SSH client/terminal, copy and paste the following command, then press Enter:
Usage
WebUI
YazDHCP leverages the existing LAN - DHCP Server page in the AsusWRT-Merlin WebUI. It has been modified under the hood to read and write to files in /jffs/addons/YazDHCP.d/ via the Addons API.
This allows us to use a greater amount of storage (6KB vs 2.5-3KB) for DHCP host assignments.
Command Line
To launch the YazDHCP menu after installation, use:
If this does not work, you will need to use the full path:
Changes made to dnsmasq configuration
YazDHCP adds 3 lines to dnsmasq.conf.add to configure DHCP reservations:
addn-hosts contains a list of IP address to hostname mappings, for DNS resolution of DHCP reserved clients
dhcp-hostsfile contains a list of MAC address to IP address bindings, to reserve a DHCP IP address for a MAC address
dhcp-optsfile contains a list of MAC address to DNS server address bindings, to provide the specified DNS server as a DHCP option for a MAC address
Updated 2023-11-18
Feature expansion of DHCP assignments using AsusWRT-Merlin's Addons API to read and write DHCP assignments, increasing the limit on the number of reservations.
YazDHCP is free to use under the GNU General Public License version 3 (GPL 3.0).
This project is hosted on GitHub
Love the script and want to support future development? Any and all donations gratefully received!
PayPal donation
Buy me a coffee
Supported firmware versions
You must be running firmware Merlin 384.15/384.13_4 (or later) Asuswrt-Merlin
Installation
Using your preferred SSH client/terminal, copy and paste the following command, then press Enter:
Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/YazDHCP/master/YazDHCP.sh" -o "/jffs/scripts/YazDHCP" && chmod 0755 /jffs/scripts/YazDHCP && /jffs/scripts/YazDHCP install
Usage
WebUI
YazDHCP leverages the existing LAN - DHCP Server page in the AsusWRT-Merlin WebUI. It has been modified under the hood to read and write to files in /jffs/addons/YazDHCP.d/ via the Addons API.
This allows us to use a greater amount of storage (6KB vs 2.5-3KB) for DHCP host assignments.
Command Line
To launch the YazDHCP menu after installation, use:
Code:
YazDHCP
If this does not work, you will need to use the full path:
Code:
/jffs/scripts/YazDHCP
Changes made to dnsmasq configuration
YazDHCP adds 3 lines to dnsmasq.conf.add to configure DHCP reservations:
Code:
addn-hosts=/jffs/addons/YazDHCP.d/.hostnames # YazDHCP_hostnames
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist # YazDHCP_staticlist
dhcp-optsfile=/jffs/addons/YazDHCP.d/.optionslist # YazDHCP_optionslist
dhcp-hostsfile contains a list of MAC address to IP address bindings, to reserve a DHCP IP address for a MAC address
dhcp-optsfile contains a list of MAC address to DNS server address bindings, to provide the specified DNS server as a DHCP option for a MAC address
Last edited: