cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1294
Views
3
Helpful
2
Replies

BGP (Global table) leak default route into VRF

johnelliot6
Explorer
Explorer

Hi Guys,

Im learning 2 default routes from upstream providers via eBGP (plus full tables) on one PE, and I want to leak the default route (Plus other prefixes, based on community tags) to a VRF.....just after some guidance on how best to achieve this?

route-map/acl/set communit tag?

something like:

ip access-list standard UPSTREAM_A_GRT_DEFAULT_ROUTE 
permit 0.0.0.0

route-map RP_INTRODUCE_DEF_ROUTE_OF_GRT permit 10
 match ip address UPSTREAM_A_GRT_DEFAULT_ROUTE
 set community 123456:1301


Then create a new route map that matches 123456:1310, and add it under the new vrf as an import map?

Cheers

2 Replies 2

Reza Sharifi
Hall of Fame Expert Hall of Fame Expert
Hall of Fame Expert

Hi John,

Here are a couple links that maybe useful for leaking between global and VRFs.

http://rekrowten.wordpress.com/2014/02/21/route-leak-between-global-ipv4-table-and-vrf/

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-3s/irg-xe-3s-book/irg-prefix-export.html

HTH

 

Thanks - I have the following, but only "connected" prefixes on the PE are being leaked into the VRF:

ip community-list standard CL_CUSTOMERS_OF_GRT permit 123456:1301

route-map RP_CUSTOMERS_OF_GRT
 match community CL_CUSTOMERS_OF_GRT

 

ip access-list standard CUSTOMERS_OF_GRT
 permit 0.0.0.0
 permit xxx.xxx.xxx.0 0.0.15.255

route-map RP_INTRODUCE_CUSTOMERS_OF_GRT permit 10
 match ip address CUSTOMERS_OF_GRT
 set community 123456:1301

 

then under vrf definition:
vrf definition inet
...
 address-family ipv4
 import ipv4 unicast map RP_CUSTOMERS_OF_GRT

..and under BGP  

  address-family ipv4 
   redistribute connected route-map RP_INTRODUCE_CUSTOMERS_OF_GRT

Only prefixes contained in the  "permit xxx.xxx.xxx.0 0.0.15.255" that are connected(On the PE), are being leaked to the vrf...."0.0.0.0" is only being "learnt" on this PE via eBGP, and backup default via OSPF.

 

Any suggestions are greatly appreciated.

 

 

Getting Started

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: