BGP show Local RIB before Import filters

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

BGP show Local RIB before Import filters

Hello,

 

After applying Import filters in BGP the Local RIB is reduced to a filtered set of routes advertised by peers.

 

However it seems to be impossible to see what the original set of advertised routes is. The peers are still advertising these routes, but there seem to be no methods in the GUI or CLI (show routing, debug routing ...) to see those advertised routes...

 

Is the only way to check this list really to disable all Import filters? And thus risking that unwanted routes will be installed? You could also first disable installing of routes (on the BGP General tab), but then you have a different problem...

2 REPLIES 2

L1 Bithead

The ridiculous conclusion I came to was to brute-force it with a pcap. It's certainly before the filter gets applied... 🙂

# enable debug pcap for bgp
debug routing pcap bgp on virtualrouter default

# request bgp peer to resend all routes
test routing bgp virtual-router default refresh peer lab01

# pcap name might be different
view-pcap verbose++ yes debug-pcap bgp-vr-1.pcap

# or SCP it elsewhere to view in wireshark
scp export debug-pcap from bgp-vr-1.pcap to user@host:/optional/path

# disable and delete the debug pcap for bgp when done
debug routing pcap bgp off
debug routing pcap bgp delete

Review the pcap preferably in wireshark and look for the prefixes. It works. Pretty asinine. There has to be a better way.

Kudos for your mad skills! But not gonna accept this as a solution 🙂 Indeed there HAS to be a better way...

  • 3609 Views
  • 2 replies
  • 2 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!