07-29-2008 05:57 PM - edited 03-03-2019 10:57 PM
I have a 7206 CE router running multi-VRF with its PE. There are 3 VRF's configured between the CE and the PE. Let's call them VPN1, VPN2, and VPN3.
The CE has static routes, OSPF routes, and BGP routes from various sources. I want to selectively insert different combimations of those routes into the 3 VRF's. What's a good way to do it?
I'm thinking under the "address-family" config, just use "redistribute static route-map ..." and "redistribute OSPF route-map ..." to get static routes and OSPF routes into a VRF with the use of route-maps. For BGP routes, under "address-family" config, use "neighbor ... route-map" to select BGP routes into the VRF with the use of a route-map.
I;ve never used the "neighbor" statement with a route-map in address-family config.
Thanks for your help.
Gary
07-30-2008 12:07 AM
Hi,
You cannot use route-maps under the address family to achieve this, as this will try to redist the routes from the vrf route table, which the routes you desire are not located, they are in the global table.
You can either create static routes in the vrf and point to a next hop in the global table, then redist into the address-family or you can use the import map feature to selectively import routes into your vrf.
However, remember that your routes need to work both ways, that is once your global routes are in your vrf table, for end to end reachability, the global table will need the routes back to the vrf sources.
Check out;
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t14/feature/guide/gt_bgivt.html
HTH
LR
07-30-2008 11:01 AM
Hi:
Thanks a lot for the help. How can I let the global table know which source network is in which VRF? So the return traffic can be routed to the right VRF.
Thanks
Gary
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