Tuesday, August 16, 2016

visualize your bgp networks

aspath_graph is a utils that generate graph of your bgp path, so you can understand more about your bgp network.

1- install aspath_graph
$ sudo pip install aspath_graph

2- login to your router and issue the following command and capture its result
 router# show ip route bgp paths

--- and change it format as below (remove everything, keep only the bgp path)
131203 38235 55769
131203 38235 55769
131203 131178 45796 45581
131178 131178 131178 131178
17451 58495 58495 58495



3- run the aspath_graph and use the result above as input
$ sudo aspath_graph --runserver bgp-path-result-file

4- access to http://localhost:8000  to view the graph

- screenshot of the graph of aspath_graph

zoom out to see the whole network

No comments:

Post a Comment