The default Glinet DHCP options are way too limited and need a redesign.
Please add the following for each DHCP client:
- dhcp options to push, like custom dns and gw
- change the way the clients are named
If you edit the /etc/confug/dhcp file to implement dhcp push options, the naming is bugged in the current solutions:
The problem is, that the Glinet DHCP page uses the "tag" feature in the /etc/confug/dhcp file to name them. This is not a good way and causes issues if you use the tag for what it is designed in Openwrt:
config tag 'owndns'
list dhcp_option '6,1.1.1.1,8.8.8.8'
config host
option mac '...'
option ip '192.168.8.165'
option name 'mkdr-HUE'
option tag 'owndns'
config host
option mac '...'
option ip '192.168.8.11'
option tag 'mkdr-V11'
You need to change this from tag to name, or store the names in another file.
The field "Description" in the glinet web interface need / should be changed to host-name and use the "name" option in the config file.
Then also add options for dchp_option for each client too to push custom DNS for example or custom gw for each client.
The whole interface should be extended too to properly see lease times, end leases, or give each client different lease times.
The options also should have their own list entry here as DHCP instead of it being in "LAN", this is confusing.
Another issue which needs to be changed:
You cant edit the DNS fields for network wan if it is set to DHCP. DHCP should allow custom DNS servers though. You can only edit this by changing /etc/config/network manually
config interface 'wan'
option device 'eth0'
option ipv6 '0'
option vlanid '0'
option disabled '0'
option classlessroute '0'
option metric '1'
option proto 'dhcp'
option peerdns '0'
list dns '1.1.1.1'
list dns '8.8.8.8'