Linux Mauritius

UniFi Layer 3 adoption the easy way

Posted on: 11/10/2015

Ubiquity is undoubtedly a very popular choice for building Wireless Networks. Being among the early adopters of the UniFi platform [AP/AC/Outdoor], the network quickly grew to span over multiple sites. As the APs could be provisioned and the controller switched off, I had a controller running on CentOS 7 only at the primary site and used to have a dummy controller on a laptop to provision APs at remote sites. With the release of the controller version 4 and the need for guest control / statistics, I clearly needed to manage all APs from a central location. Enter Layer 3 adoption, there are a few options on the official blog https://help.ubnt.com/hc/en-us/articles/204909754-UniFi-Layer-3-methods-for-UAP-adoption-and-management but they all seem to miss a simple trick for those who are not bothered about DHCP/DNS setup.

  • Start by resetting the AP to defaults using the hardware reset switch
  • If you have a DHCP server, find out the IP address and SSH into the AP using the default credentials ubnt/ubnt. If not, set a static IP and SSH to the default IP 192.168.1.20.
  • To adopt the remote AP, the controller must be able to communicate with the AP. The AP sends inform messages to the controller using the hostname ‘unifi’, so we will modify the host file on the AP to point ‘unifi’ to the controller address. Run the following commands:

echo 10.1.1.107 unifi >> /etc/hosts [replace 10.1.1.107 with the IP of your controller]

cat /etc/hosts [to check that the line now exists in the file]

  • Enter the AP shell and run the following:

mca-cli

set-inform http://10.1.1.107:8080/inform

You can now adopt the AP on the controller. If you want to have different settings [SSID/Limits], create a new site and adopt the AP in that site.

UniFi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

negativo17.org

I'm not dumb. I just have a command of thoroughly useless information.

Red Hat Services Speak

Insights and news on Red Hat training, certification and consulting

Máirín Duffy

Open design forever.

Matthew Garrett

Penguins on the paradise island

Remi's RPM repository - Blog

Penguins on the paradise island

Brno hat

Blog of Jiri Eischmann

Simon + Fedora

Penguins on the paradise island

Luc de Louw's Blog

Penguins on the paradise island

Richard WM Jones

Virtualization, tools and tips

%d bloggers like this: