02-18-2008 02:32 AM - edited 03-03-2019 08:45 PM
Since i am a complete nono in this area...
Is it possible to exchange routes between two VRF's on a local router?
Solved! Go to Solution.
02-18-2008 03:23 AM
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
02-18-2008 02:54 AM
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
02-18-2008 02:58 AM
We have tried this, but the routes did not show up in the routing table. Should they?
Thnx!
02-18-2008 03:02 AM
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
02-18-2008 03:05 AM
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
02-18-2008 03:23 AM
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
02-18-2008 04:09 AM
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!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: