Adding OSPF support to Ubiquiti devices
Although Ubiquiti devices don't ship with OSPF support, Ubiquiti do provide a firmware SDK for building custom firmware with additional software of your choosing. Ubiquiti firmware is based on OpenWrt, and consequently there are a lot of software packages available to install, including both BIRD and Zebra.
This guide focuses on building a custom Ubiquiti Airmax firmware with BIRD integrated.
Requirements:
- A working Linux system or virtual machine with build tools installed.
- Some Unix knowledge (editing/patching files, building software, copying files).
- Ubiquiti Airmax SDK v5.3.
- My patch.
Extract and patch SDK
Download the SDK tarball and patch file, placing them both into the same directory.
tar xjf SDK.UBNT.v5.3.tar.bz2 unzip ubnt-5.3-bird-1.2.5.zip mv SDK.UBNT.v5.3 SDK.UBNT.v5.3.ospf cd SDK.UBNT.v5.3.ospf patch -p1 <../ubnt-5.3-bird-1.2.5.diff
All the above commands should complete with no errors.
Build firmware
To build the firmware your system will need internet access so that the build tools can fetch package data.
From within the SDK.UBNT.v5.3.ospf directory:
cd openwrt make
The build will take a long time even on fast hardware. Go make a sandwich. :)