cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
974
Views
10
Helpful
8
Replies

BGP next hop ??

rajatsetia
Level 1
Level 1

Scenario :-

R1--IBGP--R2--EBGP--R3

R2 applies community AS:NN to inbound updates of R3

route-map test permit 10

set weight 0

set origin igp

set community AS:NN

then while sending the updates to R1 and applies the following route map

route-map set-next-hop permit 5

match community comm

set ip next-hop loopback0

loopback0 is the R2 loopback IP address.

ip community-list standard comm permit AS:NN

While I do (on R2) "show ip bgp neigbors <R1-router id> advertised-routes", I can see that next hop of R3 prefixs is not changed.

but at R1, its getting R3 prefix with next hop as R2 loopback0.

anyone who can help here ???

1 Accepted Solution

Accepted Solutions

Rajat,

This is also normal behavior. These counters displayed in the output of the "show route-map" are only incremented if the route-map is used for the purpose of Policy based routing (PBR).

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

8 Replies 8

devang_etcom
Level 7
Level 7

peform soft reset...

clear ip bgp {* | address | peer-group-name} soft in

regards

Devang

Hi Devang,

sorry for the delay in reply ...kinda busy in some other issue but I tried soft reset but no luck...

I got one reply from Harrold, and I kinda agree with him...

Thanks for your reply mate

rgds

Harold Ritter
Cisco Employee
Cisco Employee

Rajat,

This is normal behavior as the output of this command shows only the routes that made it through the outbound policy but it doesn't reflect the attribute alterations applied by this same outbound policy. In other words it shows these routes with the same attributes they have in the bgp loc-rib.

Hope this helps,

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

Hi Harold,

Thanks mate, you explanation makes sense..

ok then if there is a case that I donnt have access to R1 and I have to make sure that outbound policies have been applied at R2.

how can I check at R2 and the weird part is that I am not able to see any matches when do "show route-map " ..

rgds

Rajat,

One way I know if you have absolutely no access to R1, is to use "deb ip bgp upd ". The ACL could be limited to one prefix send to that specific neighbor (R1). This will give you the attribute as updated by the outbound policy.

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

Harrold,

so we are left with last resort i.e. debug ...

If I think abt the order of operation of changing the attribute, kinda agree with you that only debug will give the correct picture ...

have you thought about the other aspect of why there are no matches shown for "show route-map " command ..

Regards

Rajat,

This is also normal behavior. These counters displayed in the output of the "show route-map" are only incremented if the route-map is used for the purpose of Policy based routing (PBR).

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

Hi Harrold

hmmm now I know where the problem, its in my head :)

configuration is correct , everything is working fine and all the operations are normal and still i got ?? in my head ...

but this discussion does cleared lot of things, it was kind of reminder for me to stick to the basics while solving any problem..

yeah, you are correct again, when we do show route-map, its output says "policy routing matches " ...

Thanks a lot mate ..

regards

Review Cisco Networking for a $25 gift card