Linux – UniFi Change IP Address via CLI

1. You must do this for each AP separately since by default they’ll all connect using the same IP, 192.168.1.20/24.
2. Connect a computer to the same LAN segment as one AP and manually configure your IP to 192.168.1.100 with a netmask of 255.255.255.0.
3. ssh ubnt@192.168.1.20 (default pass is ‘ubnt‘)
4. Edit the file /etc/udhcpc/udhcpc
5. Update the lines:

UDHCPC_FALLBACK_IP="192.168.1.20"
UDHCPC_FALLBACK_NETMASK="255.255.255.0"

to contain the IP address and netmask you need in order to be able to properly communicate with the controller.

6. Save the file and exit the editor
7. Within several seconds, your ssh connection will hang because udhcpc has changed the IP address.
8. The AP is now using a default IP that works with your existing network and can be adopted by the controller.