Remember to clear your browser cache before downloading :)

  • GUI code (Perl for quagga)
  • monitor (Perl. Can be used with Asterisk, GnuGK, Cisco (you can use Cisco for CO-BGP instead of quagga), Yate. Can be easily extended.)
  • monitorcobgp (TCL, can be run by Embedded Event Manager (EEM)) Cisco TCL/EEM mini-howto (older version monitor)
  • CHF code (Perl. The code implements the lookup function and the “glue” to make it work with Asterisk.) Note: You must also have the monitor script (the previous bullet) running with subroutine write_plaintext. It will populate an intermediate CO-table (at the moment a plain text file “COtable.txt”, you can easily make it use a database also). The CHF will use the intermediate table instead of the CO-BGP table directly (Option 6).
  • CHF code (C. Implements the lookup function, as well as Asterisk FastAGI “bindings”.). Note: You must also have the monitor script (the previous bullet) running with subroutine write_plaintext. It will populate an intermediate CO-table (at the moment a plain text file “COtable.txt”, you can easily make it use a database also). The CHF will use the intermediate table instead of the CO-BGP table directly.
  • Convert an IPv6 prefix to a telephony prefix (and vice versa; Perl)
  • See guidelines in the comments of the monitor code (above subroutine write_gnugk).
  • See guidelines from the monitor code (above subroutine write_yate).

Debian (in this example configuration, CO-BGP and the “normal” BGP are handled from the same process):

CentOS: Same as with Debian.

Note that no IPv4 networks are advertised to CO-BGP neighbor (10.10.0.12), and no IPv6 networks to CL-BGP neighbor (10.63.0.1):

# vtysh -c 'show ip bgp neighbors 10.63.0.1 advertised-routes' 
> 10.10.5.0/24     10.63.0.2     0     32768 i  
# vtysh -c 'show ipv6 bgp neighbors 10.63.0.1 advertised-routes'
% No such neighbor or address family
# vtysh -c 'show ip bgp neighbors 10.10.0.12 advertised-routes'
# vtysh -c 'show ipv6 bgp neighbors 10.10.0.12 advertised-routes' 
*> 2001:db8:941:215::/64                                             2001:db8::10:10:5:12                                                                                       0 32768 i

(Scipts, configuration and documentation by Visa Holopainen -2013)

  • cobgp/v2013
  • Last modified: 2014-03-12T13:57
  • by kuski