Skip to content

graph BGP network and routing information from Bird and Quagga/vtysh

Notifications You must be signed in to change notification settings

mmitch/bgpgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bgpgraph - print a network graph of routing information

GPL 3+

license/copyright

Copyright (C) 2011,2014,2015,2018 Christian Garbs mitch@cgarbs.de
Licensed under GNU GPL 3 or later.

project homepage

https://github.com/mmitch/bgpgraph

dependencies

usage

Run

vtysh -c 'show ip bgp' | vtysh_bgp_to_dot 1234 | dot -Tpng > graph.png

to generate a graph, where 1234 is your local AS and graph.png will be the generated graph. You need read-access with vtysh, of course.

optional features

If there is an info.conf in your current directory, it will be read to spice up the graph. The format of info.conf is whitespace delimited fields:

  • First field contains an AS number.
  • Second field contains a name describing the AS.
  • Third field optionally contains a flag for marking a node in the output.

Example info.conf

60001  this_is_me
60002  Network_A
60003  Network_B  important
60004  Network_C

This configuration will add labels to the graph nodes 60001 to 60004 and mark the node 60003 as important.

About

graph BGP network and routing information from Bird and Quagga/vtysh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published