cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
388
Views
0
Helpful
6
Replies

IOS XR Route Policy

WAN-MAN
Level 1
Level 1

Hello 

 

I have running ios xr and trying to set up a as-path prepending. 

 

What i have is our as and a few down stream bgp sessions. 

 

Trouble i am facing is that when i prepend my own as then all the other downstream bgp session drop traffic. 

 

Thanks for any help as i am new to IOS xr from the IOS world. 

 

 

6 Replies 6

M02@rt37
VIP
VIP

Hello @WAN-MAN 

Please share your topology and configurations. Thanks.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Hello 

We want to not only prepend our as but all our down stream clients as well. 

route-policy CARRIER-A-OUT
if community matches-within CARRIERA-COMMUNITY and destination in PREFIXES then
prepend as-path own-as 4
else
drop
endif
end-policy

Hi,

What your policy is doing is if the community matches the community list and the prefix list then you prepend, if not you don't send the prefix (drop).

Are you wanting to only prepend these specific prefixes?

Also I suggest changing the else to pass instead of drop so that routes you don't want prepended are still advertised just without the prepend, right now they aren't sent at all.

Sam

Yes

 

I want to prepend any route i add to the prefix list i have set up. 

All of my downstream clients that have prefixes are added to this prefix list. 

 

Thanks

 

@WAN-MAN 

When you don't prepend your own as all the other downstream bgp session accept traffic ?

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

#show rpl route-policy CARRIER-A-OUT inline <<- share this 

Also why you select match-within 

Can I see community you need to match 
MHM