cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5323
Views
0
Helpful
9
Replies

inter-vrf routing

Dennis Olvany
Level 1
Level 1

I am looking at possible solutions to provide inter-vrf routing on a 6500. Does the following look workable?

int vlan1
ip vrf forwarding red
ip address 2.3.4.0 255.255.255.0

int lo0
ip vrf forwarding red
ip policy route-map red

route-map red permit 100
set vrf blue

ip route vrf red 1.2.3.0 255.255.255.0 lo0

int vlan2
ip vrf forwarding blue
ip address 1.2.3.0 255.255.255.0

int lo1
ip vrf forwarding blue
ip policy route-map blue

route-map blue permit 100
set vrf red

ip route vrf blue 2.3.4.0 255.255.255.0 lo1

9 Replies 9

cadet alain
VIP Alumni
VIP Alumni

Hi,

I think you should take a look at this: http://packetlife.net/blog/2010/mar/29/inter-vrf-routing-vrf-lite/

Regards.

Alain.

Don't forget to rate helpful posts.

Dennis Olvany
Level 1
Level 1

Thanks for the suggestions. I have noticed a number of solutions on the web that require bgp. Does this look like a method that may work without bgp?

I suppose ip unnumbered would be required on the loopbacks.

nm

Edison, I am familiar with the methods you have referenced. I am curious if PBR is also a viable solution since the feature addition of Multi-VRF Selection Using Policy Based Routing.

you need the route-target import | export feature.

Edison, there seems to be some contention regarding whether pbr can provide an inter-vrf routing function. The documentation below seems to be clear on this point. My inquiry was geared towards the validity of using loopbacks for pbr as referenced in the configlet. Of course, it would also be a dealbreaker if pbr could not provide inter-vrf routing as you seem to imply.

http://www.cisco.com/en/US/docs/ios/12_2sr/12_2srb/feature/guide/srb2mvrf.html

You could leak between global and VRF but not between VRFs with static

http://blog.ipexpert.com/2010/12/01/vrf-route-leaking/

Well also look for vrf route leaking.. its simple between vrf and global.. simply point static routes in vrf with next hop as global and vice-versa. havent tested with inter-vrf.. but worth a try.

-

Sebastian

Review Cisco Networking for a $25 gift card