cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
971
Views
0
Helpful
3
Replies

Cisco IOS to Cisco XR

foysol_bgd
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

I have only seen destination-prefix referenced for BGP FS, destination is the way I have always done RPLs.

Thanks,

Sam

View solution in original post

3 Replies 3

smilstea
Cisco Employee
Cisco Employee

I would use prefix-set. I also think that for the RPL you meant to use destination and not source-prefix.

Thanks,

Sam

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. 

I have only seen destination-prefix referenced for BGP FS, destination is the way I have always done RPLs.

Thanks,

Sam