BGP Community No Advertise

Hello David

In BGP, when multiple well-known communities are applied to a single route, they all can have their effects simultaneously. The BGP protocol does not prioritize one community over another. Instead, it applies all the community values to the route. When you have seemingly contradictory communities, then the rule is that the most restrictive one is applied.

In your case, you have three communities:

NO_EXPORT: This community instructs the router not to advertise this route to eBGP peers.
NO_ADVERTISE: This community instructs the router not to advertise this route to any peer, neither iBGP nor eBGP.
NO_EXPORT_SUBCONFED: This community instructs the router not to advertise this route to eBGP peers or any peers outside the local confederation.

So, if you apply all these three communities to a route, the NO_ADVERTISE will take effect, which is the most restrictive one. This means the route will not be advertised to any peers, whether iBGP, eBGP, or confederation peers.

I hope this has been helpful!

Laz