Leaking VRF routes on the same switch

Hi! I am working a 3850 switch running IOS-XE 16.6.2 that has two vrf’s (red01 and blue02). Is it possible to leak routes between the vrf and the global only? The vrf’s can not know about each other - only communicate with the shared vlan.

When I try to follow the static or BGP configurations, I get “its this router” when I try to point the vrf to the shared vlan within the global as its next hop. I can not ping the shared vlan (11.51.100.254) from the vrf or vice versa. What am I not understanding here???

My configuration:

ip vrf red01
ip vrf blue02
!
int vlan 200
description Shared
ip address 11.51.100.254 255.255.255.0
!
!
int vlan 20
ip vrf forwarding red01
ip address 11.61.100.254 255.255.255.0
!
!
int vlan 40
ip vrf forwarding blue02
ip address 11.71.100.254 255.255.255.0.0
!
ip route 11.61.0.0 255.255.0.0 vlan 400
ip route 11.71.0.0 255.255.0.0 vlan 400
!
ip route vrf red01 0.0.0.0 0.0.0.0 11.40.100.254
ip route vrf blue02 0.0.0.0 0.0.0.0 11.40.100.254

Hello Shannon

I believe the following lesson should answer most of your questions concerning this issue.

I believe that it will probably explain the topics much clearer than an answer in a post on this thread. Take a look and if you have any additional questions, let us know and we’ll help you out!

I hope this has been helpful!

Laz