Using BIRD as a route server for BGP analytics

Submitted by cliff on Tue, 13/03/2018 - 10:34

These days there are many public BGP analytics services which all need data to analyze. Ofcourse you could peer directly to it from your BGP routers, but I wanted to seperate it a bit more.

I choose to use bird as a collector for the routes and distribute them to multiple services. As I personally didn't find many examples for BIRD here is mine (privatized a bit here and there)

# Using 192.168.192.0/24 and AS 65530 as examples
router id 192.168.192.15;

protocol kernel {
        scan time 60;
        import none; # Make sure none of these routes go live
        export none;
}

protocol device {
        scan time 60;
}

## BGP Core Network (Import Only)
protocol bgp bgp-core-net {
  import all;
  export none; # Make sure our core doesn't accept routes
  local as 65530;
  neighbor 192.168.192.17 as 65530;
  multihop 10;
}

## Qrator Radar
protocol bgp qrator {
  export all;
  import none;
  local as 65530;
  neighbor 178.248.237.29 as 197068;
  multihop 20;
}

## NLNOG Ring Looking Glass
protocol bgp nlnog {
  export all;
  import none;
  local as 65530;
  neighbor 82.94.230.130 as 199036;
  multihop 20;
}

## BGPMon.net
protocol bgp bgpmon {
  export all;
  import none;
  local as 65530;
  neighbor 37.139.16.212 as 65179;
  multihop 20;
}

Tags