cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
57642
Views
122
Helpful
4
Replies

BGP neighbor received routes

Kashish_Patel
Level 2
Level 2

What is the difference between "sh ip bgp neighbor <> routes" and "sh ip bgp neighbor <> received-routes"?

2 Accepted Solutions

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

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

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

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

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

4 Replies 4

Harold Ritter
Cisco Employee
Cisco Employee

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

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thnx Harold.

This part is not clear to me:

>> The latter needs "soft-reconfiguration inbound" to be configured.

Could you explain this?

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

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thanks so much!

Review Cisco Networking products for a $25 gift card