Skip to main content

One post tagged with "Routing Protocols"

Deep dives into network routing protocols like BGP, OSPF, and related technologies

View All Tags

Python Route Summarisation

· One min read
Simon Painter
Cloud Network Architect - Microsoft MVP

There used to be a great little website for route summarisation and it did it far more intelligently than Cisco kit does it. It looks like the site has dropped off the internet which is a shame but there is a handy python library called netaddr with has the same capabilities.

I have written a little wrapper for it which will regex the prefixes out of a ‘show ip bgp’ and then list the summary routes. You pass the output of ‘show ip bgp’ as a text file, it’s the only argument the script expects.