03-05-2018 05:50 AM - edited 03-05-2019 10:02 AM
Hi!
On Cisco IOS I have BGP configuration:
ip access-list standard RIPE_Public
permit xy.xy.xy.0 0.0.1.255
permit xz.xz.xz.0 0.0.3.255
route-map TS permit 20
match ip address RIPE_Public
neighbor xx.xx.xx.xx route-map TS out
How shoud this look like in IOS XR with route-policy?
Bes regards,
Kamil
Solved! Go to Solution.
03-05-2018 01:41 PM
Hello,
it could be 'out' instead of 'in'. Give it a try, I am curious to know if the syntax works...
03-05-2018 01:16 PM
Hello,
here is what I have come up with. I have not tested it since I don't have access to an XR device, but it should be something like the below:
R1(config)#conf t
R1(config)#prefix-set RIPE_PUBLIC
R1(config-pfx)#xy.xy.xy.0/23
R1(config-pfx)#xz.xz.xz.0/22
R1(config-pfx)#end-set
R1(config)#route-policy TS
R1(config-rpl)#if destination out RIPE_PUBLIC then
R1(config-rpl-if)#pass
R1(config-rpl-if)#endif
R1(config-rpl)#end-policy
R1(config)#commit
R1(config)#router bgp 65132
R1(config-bgp)#neighbor 1.1.1.1
R1(config-bgp-nbr)#address-family ipv4 un
R1(config-bgp-nbr-af)#route-policy TS out
R1(config-bgp-nbr-af)#exit
R1(config-bgp-nbr)#exit
R1(config-bgp)#exit
R1(config)#commit
03-05-2018 01:37 PM
Thanks George. I found this
https://www.de-cix.net/en/locations/united-states/dallas/routeserver-guide/cisco-ios-xr
and there is "if destination in...." not "if destination out"
I will try tommorow.
Best regards,
Kamil
03-05-2018 01:41 PM
Hello,
it could be 'out' instead of 'in'. Give it a try, I am curious to know if the syntax works...
04-08-2018 11:16 PM
"out" is ok
Best regards,
Kamil
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