Adding OSPF support to Ubiquiti devices

From CTWUG Wiki
Revision as of 02:17, 29 January 2011 by Aragon (talk | contribs) (Initial save)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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. :)