Route exchange between VRF locally?

Answered Question
Feb 18th, 2008

Since i am a complete nono in this area...

Is it possible to exchange routes between two VRF's on a local router?

I have this problem too.
0 votes
Correct Answer by royalblues about 8 years 9 months ago

This is what i tested and it works

ip vrf Server

rd 3:3

route-target export 3:3

route-target import 1:1

route-target import 2:2

!

ip vrf Cust1

rd 1:1

route-target export 1:1

route-target import 3:3

!

ip vrf Cust2

rd 2:2

route-target export 2:2

route-target import 3:3

!

router bgp 65000

no synchronization

bgp log-neighbor-changes

no auto-summary

!

address-family ipv4 vrf Cust2

redistribute connected

no synchronization

exit-address-family

!

address-family ipv4 vrf Cust1

redistribute connected

no synchronization

exit-address-family

!

address-family ipv4 vrf Server

redistribute connected

no synchronization

exit-address-family

This import sinto vrf Server the connected routes from vrf Cust1 and Cust2.

HTH

Narayan

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
royalblues Mon, 02/18/2008 - 02:54

Yes it can be done. Just import the required route-targets on the VRF

eg.

ip vrf cut2

rd 3:3

route-target export 3:3

route-target import 1:1----imports VRF cust1 routes

route-target import 2:2

!

ip vrf Cust1

rd 1:1

route-target export 1:1

route-target import 3:3

HTH

Narayan

koksm Mon, 02/18/2008 - 02:58

We have tried this, but the routes did not show up in the routing table. Should they?

Thnx!

royalblues Mon, 02/18/2008 - 03:02

yes... are you trying on VRF lite by any chance?

The point is you need BGP irrespective of whether you have any bgp peering neighbors to import routes

HTH

Narayan

koksm Mon, 02/18/2008 - 03:05

Yes, VFR lite, you are correct.

We have BGP running. It was already in there between this router and two other ones.

Anything special to be done in BGP

Correct Answer
royalblues Mon, 02/18/2008 - 03:23

This is what i tested and it works

ip vrf Server

rd 3:3

route-target export 3:3

route-target import 1:1

route-target import 2:2

!

ip vrf Cust1

rd 1:1

route-target export 1:1

route-target import 3:3

!

ip vrf Cust2

rd 2:2

route-target export 2:2

route-target import 3:3

!

router bgp 65000

no synchronization

bgp log-neighbor-changes

no auto-summary

!

address-family ipv4 vrf Cust2

redistribute connected

no synchronization

exit-address-family

!

address-family ipv4 vrf Cust1

redistribute connected

no synchronization

exit-address-family

!

address-family ipv4 vrf Server

redistribute connected

no synchronization

exit-address-family

This import sinto vrf Server the connected routes from vrf Cust1 and Cust2.

HTH

Narayan

koksm Mon, 02/18/2008 - 04:09

Right, that did the trick.

I found a document on CCO which basically explains the same. But it didn't ring a bell about the redistribute...

Thanx again!

Actions

This Discussion