I ran into a similar requirement and found no straight-forward feature or set of functions to achieve it in Junos. I considered a couple approaches and ultimately went with a brute-force, bulky solution but avoiding more complex ideas.
I implemented with each port being assigned a separate vlan, a /30 subnet, and a local dhcp pool for each on the local switch. It’s clunky, but has worked reliably.
It would be great if Juniper had the ability to say, have a /24 pool and statically reserve addresses by port and not just by MAC address.
I implemented with each port being assigned a separate vlan, a /30 subnet, and a local dhcp pool for each on the local switch. It’s clunky, but has worked reliably.
It would be great if Juniper had the ability to say, have a /24 pool and statically reserve addresses by port and not just by MAC address.