Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP Conditional Advertisement

I know we can conditionally not advertise routes if a certain route/s are not in the BGP table, but I'm not sure how to stop advertising the entire BGP table (if we are providing a full routing table to a customer) if a route or routes are missing from the BGP table. Question is, is there a way I can stop advertising a full BGP table to a customer if some of those routes are missing?

Hall of Fame Super Silver

Re: BGP Conditional Advertisement

Hello David,

BGP conditional advertisement has added also the exist-map :

you should be able to implement the desired logic : until a prefix described in the route map invoked with the exist-map option you can advertise all prefixes.

With Cisco IOS® 12.2T or later versions, the exist-map keyword can be used to accomplish these tasks as well:


If exists in R102's BGP table, then advertise the network to R101.


If does not exist in R102's BGP table, then do not advertise the network to R101.


Hope to help


Re: BGP Conditional Advertisement


I think the scenario described in this conversation is a tricky one. The documentation for neighbor advertise-map command says: "To install a Border Gateway Protocol (BGP) route as a locally originated route in the BGP routing table for conditional advertisement, use the neighbor advertise-map command in router configuration mode."

The word "advertise" is commonly used loosely to mean either locally originated routes or routes that are actually passed from one AS to another. However, it seems to me that the documentation means locally originated routes in the case of advertise-map. In addition, the routes covered by an advertise-map are also covered by a network command in the examples I've seen.

So, either documentation is not accurate and conditional advertisement works in this scenario without issues or documentation is accurate and you would be trying to locally originate the full routing table (this will probably fail due to no route in IGP or lack of network/redistribute command).

I do not know of another feature that might be of help. The normal filtering with route-maps on actual sessions cannot accomplish the desired effect because this type of route-map is somewhat memoryless (acts on one route at a time following non-deterministic order and disregarding previously considered routes or future ones).

Kind Regards,


CreatePlease login to create content