07-24-2013 10:03 AM - edited 03-07-2019 02:34 PM
What is the difference between "sh ip bgp neighbor <> routes" and "sh ip bgp neighbor <> received-routes"?
Solved! Go to Solution.
07-24-2013 10:24 AM
Hi Kashish,
Here's the definition from the documentation:
routes:
Displays all routes that are received and accepted. The output displayed when this keyword is entered is a subset of the output displayed by the received-routes keyword.
received-routes:
Displays all received routes (both accepted and rejected) from the specified neighbor.
The "routes" keyword shows the routes coming from agiven neighbor after the inbound policy has been applied. The "received-routes" shows the routes coming from a given neighbor before the inbound policy has been implied. The latter needs "soft-reconfiguration inbound" to be configured.
Regards
07-24-2013 10:53 AM
Hi Kashish,
The function of the "soft-reconfiguration inbound" command is to keep all prefixes in local memory even if they have been rejected by the inbound policy. Without this command, prefixes rejected by the inbound policy are not kept in memory and therefore "show ip bgp neighbor received-routes" is unable to show these rejected prefixes.
If you enter the "show ip bgp neighbor received-routes" command without "soft-reconfiguration inbound" being configured for the specific neighbor, IOS will issue the following message:
Test#sh ip bgp neighbors 192.168.12.2 received-routes
% Inbound soft reconfiguration not enabled on 192.168.12.2
Test#
Regards
07-24-2013 10:24 AM
Hi Kashish,
Here's the definition from the documentation:
routes:
Displays all routes that are received and accepted. The output displayed when this keyword is entered is a subset of the output displayed by the received-routes keyword.
received-routes:
Displays all received routes (both accepted and rejected) from the specified neighbor.
The "routes" keyword shows the routes coming from agiven neighbor after the inbound policy has been applied. The "received-routes" shows the routes coming from a given neighbor before the inbound policy has been implied. The latter needs "soft-reconfiguration inbound" to be configured.
Regards
07-24-2013 10:29 AM
Thnx Harold.
This part is not clear to me:
>> The latter needs "soft-reconfiguration inbound" to be configured.
Could you explain this?
07-24-2013 10:53 AM
Hi Kashish,
The function of the "soft-reconfiguration inbound" command is to keep all prefixes in local memory even if they have been rejected by the inbound policy. Without this command, prefixes rejected by the inbound policy are not kept in memory and therefore "show ip bgp neighbor received-routes" is unable to show these rejected prefixes.
If you enter the "show ip bgp neighbor received-routes" command without "soft-reconfiguration inbound" being configured for the specific neighbor, IOS will issue the following message:
Test#sh ip bgp neighbors 192.168.12.2 received-routes
% Inbound soft reconfiguration not enabled on 192.168.12.2
Test#
Regards
07-24-2013 11:07 AM
Thanks so much!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide