Chapter 6 Deploying Wireless Networks for FortiOS 5.0 : Access point deployment : Advanced WiFi controller discovery : Controller discovery methods : Static IP configuration
  
Static IP configuration
If FortiAP and the controller are not in the same subnet, broadcast and multicast packets cannot reach the controller. The admin can specify the controller’s static IP on the AP unit. The AP unit sends a discovery request message in unicast to the controller. Routing must be properly configured in both directions.
To specify the controller’s IP address on a FortiAP unit
cfg –a AC_IPADDR_1="192.168.0.1"
By default, the FortiAP unit receives its IP address by DHCP. If you prefer, you can assign the AP unit a static IP address.
To assign a static IP address to the FortiAP unit
cfg -a ADDR_MODE=STATIC
cfg –a AP_IPADDR="192.168.0.100"
cfg -a AP_NETMASK="255.255.255.0"
For information about connecting to the FortiAP CLI, see “Connecting to the FortiAP CLI”.