04-18-2016 11:38 PM
Dear Experts,
I am trying to convert IOS configs to XR. I am bit confused with the route policy. Would you please let me know if this looks good.
IOS
-----
ip prefix-list AA seq 10 permit 10.10.10.0/25
ip prefix-list AA seq 20 permit 10.10.10.128/25
ip community-list expanded AA permit .*:100$
ip community-list expanded AA permit .*:200$
route-map AA permit 10
match community AA
!
route-map AA permit 20
match ip address prefix-list AA
router bgp 1
neighbor BB peer-group
neighbor BB send-community
neighbor BB route-map AA in
neighbor BB route-map AA out
neighbor BB maximum-routes 12000
neighbor 1.1.1.1 peer-group BB
IOS-XR
-------
ipv4 prefix-list AA seq 10 permit 10.10.10.0/25
ipv4 prefix-list AA seq 20 permit 10.10.10.128/25
OR?
prefix-set AA
10.10.10.0/25
10.10.10.128/25
end-set
community-set AA
ios-regex '.*:100$',
ios-regex '.*:200$'
end-set
route-policy XX
if community matches-any AA or source-prefix in AA then
pass
endif
end-policy
router bgp 1
bgp log neighbor changes detail
address-family ipv4 unicast
!
neighbor-group BB
remote-as 1
update-source Loopback0
address-family ipv4 unicast
af-group BB address-family ipv4 unicast
maximum-prefix 12000
route-policy XX out
neighbor 1.1.1.1
use neighbor-group BB
use af-group BB
description YYYY
Solved! Go to Solution.
04-27-2016 05:07 AM
I have only seen destination-prefix referenced for BGP FS, destination is the way I have always done RPLs.
Thanks,
Sam
04-22-2016 05:10 AM
I would use prefix-set. I also think that for the RPL you meant to use destination and not source-prefix.
Thanks,
Sam
04-26-2016 05:48 PM
Thank you for your reply,
What is the difference between " destination-prefix in" and " destination in"?
could not able to locate this in Cisco. I will look more.
04-27-2016 05:07 AM
I have only seen destination-prefix referenced for BGP FS, destination is the way I have always done RPLs.
Thanks,
Sam
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