cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2404
Views
5
Helpful
6
Replies

Route exchange between VRF locally?

koksm
Level 1
Level 1

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

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

6 Replies 6

royalblues
Level 10
Level 10

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

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

Thnx!

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

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

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

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!

Review Cisco Networking for a $25 gift card