Chapter 6 Deploying Wireless Networks : Access point deployment : Advanced WiFi controller discovery : Controller discovery methods : DHCP
  
DHCP
If you use DHCP to assign an IP address to your FortiAP unit, you can also provide the WiFi controller IP address at the same time. This is useful if the AP is located remotely from the WiFi controller and other discovery techniques will not work.
When you configure the DHCP server, configure Option 138 to specify the WiFi controller IP address. You need to convert the address into hexadecimal. Convert each octet value separately from left to right and concatenate them. For example, 192.168.0.1 converts to C0A80001.
If Option 138 is used for some other purpose on your network, you can use a different option number if you configure the AP units to match.
To change the FortiAP DHCP option code
To use option code 139 for example, enter
cfg –a AC_DISCOVERY_DHCP_OPTION_CODE=139
For information about connecting to the FortiAP CLI, see “Connecting to the FortiAP CLI” below.