Unifi controller DHCP option
Unifi AP has to be on the same L2 segment, or can be suggested about controller in the different L2 via DHCP option:
Option code: 43
Value: 0x0104 + hex IP of controller
IP to hex can be converted using for example: https://shimi.net/services/opt43/
Use just IP part of hex, because cisco has different hex prefix than UBNT.
Set this values to IP > DHCP Server > Options > +
| name | describe usage |
| Code | 43 |
| Value | 0x01040AACBE1F |
And finally use this option in the IP > DHCP Server > Networks > xx.xx.xx.xx/yy > DHCP Options