Saturday, February 6, 2016

Easy Configuration for Ubiquity EdgeRouter X + Unifi AC LITE

Cool gigabit and 802.11ac gear has finally hit the masses, so, like every other nerd, I got myself an EdgeRouter X (ERX) and a Unifi AC LITE access point (UAP).

There's many nice things about this combo, one of them is that you can take the 24V PoE injector from the Unifi and use it to power the ERX (on eth0) and the Unifi (PoE passthrough on eth4.) The PSU gives 24V/0.5A so it's just enough to satisfy both units.

The setup gave me a bit of trouble though. EdgeOS, as the OS on the ERX is called, is very powerful, but also takes a bit of time getting used to. So if you just want a simple SOHO NAT setup, do something like this:

  1. Feed the ERX power though the PoE injector and connect a computer to the LAN port on said injector. Configure the ethernet port on the computer to use
  2. Open a browser and connect to
  3. On the Dashboard tab, leave eth0 unchanged, and keep it as your configuration interface.
  4. Configure eth1 to be your WAN interface, so make that DCHP client. Make sure you get an IP address.
  5. Configure switch0 to include eth2 and eth4. Give it a suitable private IP, such as
  6. Configure a suitable DHCP server on Make sure its DNSs are and, and its router is
  7. Add a Source NAT Rule that has "Use Masquerade" and "All protocols" with outbound interface set to eth1.
  8. Change your computer over to eth2 and configure its ethernet port to be a DHCP client. Verify you get an address and can access to EdgeOS web interface on
  9. Verify you can access the internet.
  10. Plug the UAP into eth4.
  11. Download the Unifi Controller program for your OS and install it.
  12. Discover your UAP and configure SSID and WiFi key.
  13. Connect on WiFi and verify that things work.
  14. Make sure to change the default password on the ERX, as the very least.
There's loads more you can do from here, but now you're up and running.

1 comment:

  1. Forgot to mention that the AP won't work until you've enabled PoE on eth4. Make sure to do that prior to step 10.