cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
634
Views
0
Helpful
1
Replies

How to catch the below Drops using IOS XR ,Which Debug/Show Command let me catch the result of the Below config

Ibrahim Jamil
Level 6
Level 6
Hello Guys How to catch the below Drops using IOS XR ,Which Debug/Show Command let me catch the result of the Below config !***Drops common CSG community*** if community matches-any (10:10) then route-policy R2-BGP_Egress_Transport_Filter !***Passes FAN Loopbacks*** if community matches-any (20:20) then pass else !***Passes Communities in R2: 10:201, 10:202, etc.*** if community matches-any (10:2*) then pass !***Drops common CSG community*** if community matches-any (10:10) then drop else pass endif
1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Ibrahim,

it would be kind of you, if you write your posts with configuration sections in a more readable format.

 

it will increase the probability to get better help.

 

Respectfully this is only my personal opinion.

The following slides by Cisco expert Vinit Jain can be helpful

 

https://community.cisco.com/t5/networking-documents/webcast-slides-border-gateway-protocol-bgp-fundamentals-and/ta-p/3155886

 

In IOS XR a route-policy is applied to an attach point for example a BGP neighbor session is likely your case.

The show commands are likely

show bgp neighbor x.x.x.x advertised-routes

show bgp neighbor x.x.x.x received-routes

 

with the second command likely showing you all the received routes from neighbor before an inbound route-policy can act on them.

 

Edit:

if the route-policy is applied inbound you should see differences between

show bgp neighbor x.x.x.x received-routes

and

show bgp | inc x.x.x.x

 

Actually only show bgp <prefix> can show you all the BGP attributes including the BGP standard communities that are the selection criteria in your route-policy config example.

Again using a debug command is not recommended for the added load on devices.

 

Edit2:

to see all the details of a route policy with expansion of all sets objects you can use

show rpl policy-route <name> detail

 

see

https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-4/routing/configuration/guide/b-routing-cg-asr9000-64x/b-routing-cg-asr9000-64x_chapter_01011.html?dtid=osscdc000283#task_1079601

 

Best Regards

Giuseppe