cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
641
Views
4
Helpful
2
Replies

VRF lite

paul amaral
Level 4
Level 4

Hi I'm trying to figure out how to propagate VRF routes between two routers and I'm hoping someone can clue me in.

I have two routers directly connected via IGP(ospf/eigrp) and iBGP. I have one interface per router as a member of a VRF and im having problems import/exporting routes from one VRF to another.

 

R1:

interface Vlan204
 ip vrf forwarding VRF1
 ip address x.x.x.x 255.255.255.252
end

sh ip vrf
  Name                             Default RD          Interfaces
  VRF1                10271:100           Vl203
                                                       Vl204

VRF Table ID = 4
  Export VPN route-target communities
    RT:xx271:110
  Import VPN route-target communities
    RT:xx271:100

--------------------------------------------------------------------------------

R2:

interface Vlan305
 ip vrf VRF1
 ip address x.x.x.x 255.255.255.252
end

sh ip vrf
  Name                             Default RD          Interfaces
  VRF1                10271:110           Vl305

VRF Table ID = 4
  Export VPN route-target communities
    RT:xx271:100
  Import VPN route-target communities
    RT:xx271:110

------------------------------------------------------------------------------

At this point all is working, connected routes appear in the correct VRF instance on each router, my problem is how to I get R1 VRF to share its routes with R2 VRF and vice versa.

 

I tried using iBGP since i already have it running but it didnt work, I had the following on both routers.

 

address-family ipv4 vrf VRF1

  redistribute connected

  no synchronization

 exit-address-family

 

how can i pass routes from one VRF to another with two directly connected routers?

also for internet connectivity i have one bgp upstream on each router do i have to inject a default route for each VRF or can it use my global routing table to make a decision on which bgp peer to use ?

 

thanks paul

 

 

 

2 Replies 2

dangleminh
Level 1
Level 1

Hi,

 

Do you have IP reachability between Vlan204 R1 & Vlan305 R2?

1) If yes, you can use any protocol as said to exchange the routes.

2) If no, fix the connectivity first and go back to step 1.