Sharing routes between VRFs within the same router

Unanswered Question
Dec 12th, 2008
User Badges:

I am using VRF-lite (no MPLS) to isolate traffic between different parts of my network. Now however, I want to be able to somehow share or "leak" some routes between the different VRFs.

My goal is to allow some traffic to flow between the VRFs without having to connect to a separate physical router with some IGP, or without having to physically run a cable between two ports on the same router to connect the different VRFs together.

I am doing this on a 6509, so my concern with building some type of tunnel between the VRFs is that I do not want packets to be software switched if at all possible. What would be ideal is to share routes such that packets coming into the router in one VRF will be routed out via interfaces in the same or different VRFs by simply consulting the TCAMs for routing decisions.

The route target import and export syntax looks close to what I want to do, but I just do not know how to do all of this inside the one router.

Does anyone have any configuration examples that might be of assistance?

Clarke Morledge

College of William and Mary

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Giuseppe Larosa Fri, 12/12/2008 - 13:14
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Clarke,

if you want to import all the routes of VRFx in VRFy you can add a route-target import VRFy-rt-value under ip vrf VRFx and viceversa.

If you want to make a partial export/import you should use the import map feature/command

or/and export map

these commands invoke a route-map.

Hope to help


cmorledge Fri, 12/12/2008 - 13:43
User Badges:


Great. I'll give that a shot in my lab....


royalblues Fri, 12/12/2008 - 13:57
User Badges:
  • Green, 3000 points or more

In addition to what Giuseppe said, to import routes between VRFs in a VRF-lite scenario, you would need to run BGP (neighbors are not required)

You can also use import maps to restrict the exchange of routes to what prefixes are required.

Attached are some examples which our friend Mohammad had posted in this forum which might be of some help



cmorledge Fri, 12/12/2008 - 14:12
User Badges:


I follow what you are doing in your config examples. That's exactly what I need, though I'll need the route-map stuff as well to filter out unwanted routes. This will be helpful for me to test.


Clarke Morledge

College of William and Mary

lejoe.thomas Fri, 12/12/2008 - 15:20
User Badges:
  • Silver, 250 points or more


Thanks for the example



This Discussion