cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
943
Views
0
Helpful
0
Replies

Parsing 'show ip bgp'

David Williams
Level 1
Level 1

Short of writing a script from scratch I was hoping to identify an application or program that can help me perform an IP audit of a supernet by looking at the bgp table of a router with full internal routes.

In an MPLS network of 20+ PE routers I would like to be able to quickly identify the components subnets of a given supernet and the PE router that it is being originated from.

I can look at the output from show ip bgp and get that information but it is not easily sorted.  Essentially what I want is a key value pair.  

Destination Subnet:Originating PE 

and be able to run that against a supernet.  So if I want to break down 192.168.0.0/16 into its component networks and their destinations I would get output that might look like this.

192.168.1.0/24:172.16.1.5

192.168.2.0/24:172.16.1.5

192.168.100.0/30:172.17.1.1

192.168.100.4/30:172.17.2.1

192.168.200.0/25:172.16.1.5

192.158.200.128/25:172.16.1.10

Before I go spending hours crafting some home grown hack, does anyone know a less time intensive way to get that information?  

0 Replies 0

Review Cisco Networking for a $25 gift card