01-03-2015 03:46 AM - edited 03-05-2019 12:29 AM
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
01-03-2015 09:48 AM
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
01-03-2015 07:23 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide