Forgive me if this is a dumb question but I'm relatively new to the carrier networking world. We own a block of IP addresses, say a /18 and we advertise various /20s, /24s, /23s, etc all over the world. I want to know "what's available" from our space as in if there are portions that we are not advertising.
What I could do is download a text dump of the entire BGP routing table and grep for the /18, /19s, /20s, ... , /24s and see if there are any matches but there has to be a better way.
We use Juniper so I popped into a router and ran show route protocol bgp FIRST_IP_OF_18 but it only gave me a route to the first thing we advertise.
/24
block. You could advertise the aggregate, say/20
, either both the aggregate and the individual network, or just the aggregate only. The aggregate will be advertised as long as at least one of the networks in the aggregate is in the router's routing (not BGP) table. Assuming the aggregate being advertised means that all the networks in the aggregate are in use is a mistake. The aggregate looks like it is a/20
network is in use, but there may be only one or a few of the networks in that/20
aggregate that are actually being used.