User Tools

Site Tools


hints:misc

This is an old revision of the document!


BGP Tool Hints

Here are some docs about how to build the various BGP tools out there.

Building BGPDUMP

BGPDUMP is a tool and set of libraries maintained by the RIPE NCC which reads MRT (Multi-Threaded Routing Toolkit) files and outputs them in human readable format (ie ASCII).

First off, we clone the git repo locally. Go to the place where you normally do your development work (for example, /usr/local/src), and:

git clone https://github.com/RIPE-NCC/bgpdump.git

Next make sure we have the libraries and packages we need installed:

sudo apt install libz-dev libbz2-dev autoheader

and then go into the bgpdump folder and build the Makefile:

cd bgpdump
./bootstrap.sh

Once this is done we can then build bgpdump:

make

and then install it:

sudo make install

which will put bgpdump into /usr/local/bin.

You can now take your MRT files, eg as produce by RouteViews and convert them into plain text for further analysis.

Building a Looking Glass

These instructions cover how to put together the Cougar Looking Glass code. Why choose this one? Well, it's there, it seems to work fine, and installs nicely on Ubuntu 22.04. Even though the code itself hasn't been touched since 2009!

First off, grab the few files you need off the repo - you could clone it, but there are only a few files, and they haven't been changed in a while. Put them all in `/usr/local/src/LG`.

Back to Home page

hints/misc.1692387658.txt.gz · Last modified: 2023/08/19 05:40 by philip