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

How can I see BGP routes filtered with a prefix-list?

dhawkes
Level 1
Level 1

I have 2 BGP routers peered together, in 2 different ASNs.  I am using prefix-lists on router A, and would like to see what routes are being advertised by router B, even though I am filtering the routes with a prefix-list (without just going to router B and doing a show ip bgp).  How can I see the routes I am filtering, but getting advertised by the far router?  I want to add to my prefix-list, but need to match the advertised route.

Thanks in advance.

2 Replies 2

Reza Sharifi
Hall of Fame
Hall of Fame

from you router you can issue this command to see all the routes received from your neighbor routershow ip bgp neighbors [neighbor-address] [received-routes | routes | advertised-routes | {paths regexp} | dampened-routes]

HTH

milan.kulik
Level 10
Level 10

Hi,

show ip bgp nei ... received-routes

But you will probably need to enable inbound soft reconfiguration on your router by

router bgp ...

nei ...  soft-reconfiguration inbound

Read http://www.cisco.com/en/US/docs/ios/iproute_bgp/command/reference/irg_bgp5.html#wp1159860

and

http://www.cisco.com/en/US/docs/ios/iproute_bgp/command/reference/irg_bgp3.html#wp1111298

for details.

HTH,

Milan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card