Thu Sep 08, 2022 12:54 am
This can be done (hypotetically) with a script inside dhcp server on-lease event.
On first request, assign one IP with dedicated pools that do not nothing and have lease time 10 seconds,
A) if the script check successfully suboptions "decoded" on lease, create a static lease with correct parameters for that device
(when the lease expire, remove by script the static lease)
B) if the script fail the ckeck, assign a permanent 127.0.0.1 to that device. After 10 seconds renew the lease and lock itself on 127.0.0.1