cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
985
Views
5
Helpful
8
Replies

ASR9000 with IOS XE - No inter vrf routing ?

joyride_us2
Level 1
Level 1

Hi,

 

I am trying to find a way to perform inter-vrf routing for a given prefix....on an ASR9000 with IOS XE.

 

Any solution ?

 

8 Replies 8

Francesco Molino
VIP Alumni
VIP Alumni
Hi

You want to leak route from 1 vrf to another vrf or from 1 vrf to global?
Are you already using a dynamic routing protocol?
Can you share your config (routing and vrf) + tell what prefix you want to leak?
I'll do the config for you to show you how to do so.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Diana Karolina Rojas
Cisco Employee
Cisco Employee

Hello Joy!

 

Did you review this post? Jain do that in a ASK1000 https://supportforums.cisco.com/t5/service-providers-blogs/inter-vrf-routing/ba-p/3102707

 

---Do not forget to rate useful post.---

 

Regards,

Hi Diana

 

I was talking about inter-vrf routing on the 1 router : you come in the router through a VRF and go out another one if you target that prefix.

 

thanks!

 

Harold Ritter
Cisco Employee
Cisco Employee

Could you please specify if you are looking for a solution for the ASR9000, which runs IOS XR, or for another platform running IOS XE. The title is conflicting.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hi Harold!

 

Cisco ASR9K Series is the platform. And Cisco IOS XR Software is the firmware (sorry).

 

 

 

...and I cannot find a route-map command available! :)

 

Cisco ASR9K Series is the platform. And Cisco IOS XR Software is the firmware (sorry).

Sorry for my late answer.

I would recommend to do it using BGP locally on the switch to leak routes from each vrf.

 

here a config sample: 

Let's assume you have vrf A and B with subnet 192.168.10.0/24 in vrf A and 192.168.20.0/24 in vrf B.

 

BGP config:

 

router bgp AS_number
bgp router-id x.x.x.x
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
vrf A
rd 1:1
address-family ipv4 unicast
redistribute connected

vrf B
rd 2:2
address-family ipv4 unicast
redistribute connected

 

VRF config:

 

vrf A
address-family ipv4 unicast
import route-policy VRFB_2_VRFA
import route-target
1:1
2:2
!
export route-target
1:1
!
vrf B
address-family ipv4 unicast
import route-policy VRFA_2_VRFB
import route-target
1:1
2:2
!
export route-target
2:2

 

Route-Policy config:

 

route-policy VRFA_2_VRFB
if destination in (192.168.10.0/24) then
done
endif
end-policy

 

route-policy VRFB_2_VRFA
if destination in (192.168.20.0/24) then
done
endif
end-policy

 

Hope that helps

 

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: