cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
871
Views
0
Helpful
4
Replies

BGP from IOS to IOS XR

kamil_folga
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

Hello,

 

it could be 'out' instead of 'in'. Give it a try, I am curious to know if the syntax works...

View solution in original post

4 Replies 4

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

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

 

Hello,

 

it could be 'out' instead of 'in'. Give it a try, I am curious to know if the syntax works...

 

"out" is ok

 

Best regards,

 

Kamil

 

Review Cisco Networking for a $25 gift card