As of now, is there a nice way to make DHCP hand out IP addresses within a certain range based on tags?
This would be very nice as I'm getting more and more devices on my LAN and they are all getting seemingly random IP's assigned. I'd love to 'group' them in a bit, e.g.
Mobile devices get IP's in the range 192.168.1.40-59
IoT devices get IP's in the range 192.168.1.60-79
and so on.
In the link that I posted, OP mentioned setting static IPs or writing the MAC addresses in a file and tagging them. That's not really what I'm looking for, I'd love to just set the tag in /etc/config/dhcp and put the desired DHCP range/options in that file too.
The most straight forward approach is to do one of the following:
use DHCP reservations
or
setup VLANs for your different types of devices as to give them entirely unique networks and DHCP server instances (this can also be combined with DHCP reservations, of course).
Network performance/efficiency (not much of an issue on small networks) by creating smaller broadcast domains.
security and/or isolation (at whatever global or granular level you desire) by using different subnets such that traffic is routed and can thus be filtered by the firewall.
organization by allowing you to set different address ranges/subnets for devices of a given category/type.