Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Problem leaking route from VRF to global table on CSR 1000V

Hi Guys,

So I have a problem with VRF's on a CSR 1000V, specifically exporting a connected subnet from a VRF into the global routing table.

My config, very abbreviated, is as follows:

GE2: (No VRF, BGP neighbor to, receiving (default route))

Now sh ip route displays: (BGP) (Connected)

sh ip route vrf TEST displays: (BGP) connected

My VRF config is as follows:

ip vrf TEST
rd 1:1
import ipv4 unicast map GLOBAL
export ipv4 unicast map CONNECTED-SUBNET
ip prefix-list CONNECTED seq 1 permit
ip prefix-list DEFAULT   seq 1 permit
route-map CONNECTED-SUBNET permit 10
 match ip address prefix-list CONNECTED
route-map GLOBAL permit 10
 match ip address prefix-list DEFAULT

Now my import command works perfectly ( is imported from BGP into the VRF's routing table), however my export command does not function - seemingly at all.

Even though my prefix list is an exact match, I do not see appearing in the global routing table, or the BGP table at all (show ip bgp shows only the default route)

Any thoughts on what is going on here? Am I misunderstanding the export command for VRF's? I was under the impression this will export directly to the BGP table, and then be imported to the global routing table if applicable?

Any thoughts/input would be appreciated!


Hello10.0.0.1/31 - Shouldn't

Hello - Shouldn't this be /30 or 32 host address?

you could also try adding a  static and redistribute it to the non vrf  bgp neighbor
ip route  (vrf interface)

router bgp xx
redistribute static




Please don't forget to rate any posts that have been helpful. Thanks.
New Member

Hi Paul,Yeah the 31 was just

Hi Paul,

Yeah the 31 was just an example, it doesn't matter what I put in here - It does not appear in the BGP table/global routing table.


I even changed the route-map to match any and still nothing is imported.


Is there any configuration to do with BGP that might be stopping it from accepting these exports perhaps?


I just replicated the problem on a C1900 on my desk, same thing, making me think this is 100% operator error!


I could do the routes statically, however for this configuration I need dynamic routing updates.

New Member

Solution! I was thinking this

Solution! I was thinking this leaked routes directly into the global BGP table. Rather, I had to specify to redistribute routes for the particular VRF.


router bgp 12345

   address family ipv4 vrf TEST

   redistribute connected


Can this be done another way? I don't suppose there is a bgp command to automatically redistribute vrf routes, or leak directly from the vrf into the global BGP table, or something similar?




Hello"GE1: VRF


GE2: (No VRF, BGP neighbor to, receiving (default route))"

I must have misunderstood somewhere  I was assuming you had no vrf bgp between GE1-2 , and just vrf on subnet which needed to be advertised in the global routing table hence my last post suggested you redistribute into bgp,

So assuming you are accepting a default route from GE2 it went like this

int fa0/1
ip vrf forwading TEST
ip addresses

int xx
ip address

router bgp xy
neighbour remote-as yx
redistribute static ( to advertised the vrf subnet to GE2)

ip route fa0/1 ( this is tell the global rib where to go for the vrf route)

ip prefix-list VRF  permit
route-map VRF_rm
match ip address prefix VRF ( match on the default route advertised from GE2 which is in the global rib)

ip vrf TEST
import-map ipv4 vrf VRF-rm ( import the default from global rib into the vrf rib)







Please don't forget to rate any posts that have been helpful. Thanks.
New Member

Hi Paul, Thanks for the reply

Hi Paul,


Thanks for the reply. You would be right in thinking I did not have VRF BGP, and your solution would work however I do not want to use static routes to achieve it as I need dynamic updating.

Where I fell over, is that I didn't realise I had to use VRF BGP to leak routes into the global table with the 'export ipv4 unicast map' command (I thought the export would directly export from the VRF routing table to the global BGP table - Rather, it appears to export from the VRF BGP table to the global BGP table, so if I did not have VRF BGP set up it does nothing at all.


Thanks again,



CreatePlease to create content