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

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

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Question 'show ip bgp neig' and advertised routes

I think I heard this before but I can't find the answer:
Imagine you have route-maps, prefix-lists etc filtering a given advertised BGP route.


Then you want to analyze how the advertised routes to a neighbor would look like without the effect of the aforementioned prefix-lists, route-maps, etc.

Is there any command to accomplish that?

To my understanding 'advertised-routes' should list the output of the actual advertised routes to a neighbor including filters (such as prefix-lists, route-maps).

R2#show ip bgp neig 10.2.2.47 ?

  advertised-routes  Display the routes advertised to a BGP neighbor

  dampened-routes    Display the dampened routes received from neighbor (eBGP

                     peers only)

  flap-statistics    Display flap statistics of the routes learned from

                     neighbor (eBGP peers only)

  paths              Display AS paths learned from neighbor

  received           Display information received from a BGP neighbor

  received-routes    Display the received routes from neighbor

  routes             Display routes learned from neighbor

  |                  Output modifiers

  <cr>

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: Question 'show ip bgp neig' and advertised routes

Hello Marlon,

>> Is there any command to accomplish that?

sh ip bgp

if no filter is applied all valid BGP routes not learned by that neighbor would be advertised to it

so if x.x.x.x is the neighbor

sh ip bgp | exclude x.x.x.x

should give you a good approximation of you would send to x.x.x.x without any filter applied: all the local RIB

well actually only >* best paths are sent out

soa regular expression would be needed

sh ip bgp | include  *>

Hope to help

Giuseppe

1 REPLY
Hall of Fame Super Silver

Re: Question 'show ip bgp neig' and advertised routes

Hello Marlon,

>> Is there any command to accomplish that?

sh ip bgp

if no filter is applied all valid BGP routes not learned by that neighbor would be advertised to it

so if x.x.x.x is the neighbor

sh ip bgp | exclude x.x.x.x

should give you a good approximation of you would send to x.x.x.x without any filter applied: all the local RIB

well actually only >* best paths are sent out

soa regular expression would be needed

sh ip bgp | include  *>

Hope to help

Giuseppe

16976
Views
0
Helpful
1
Replies