[c-nsp] Inter VRF Routing help needed

Oliver Boehmer (oboehmer) oboehmer at cisco.com
Thu Sep 11 10:41:36 EDT 2008


cc loo <> wrote on Thursday, September 11, 2008 3:58 PM:

> Hi All,
> im pretty new to networking and require some assistance here with
> VRF-lite 
> 
> Scenario :
> 
> i would like to establish a hub-and-spoke topology with multiple VRFs.
> 
...
> 
> I would like vrf_customer_A to exchange routes with vrf_HUB but not
> vrf_customer_B,
> and vrf_customer_B with vrf_Hub but not vrf_customerA.
> 
> Basically, each customer vrf can only see the hub, but not each other.
> I tried following the guide at
>
http://www.cisco.com/univercd/cc/td/doc/product/ong/15400/r60docs/r60eth
gd/546vrf.htm
> 
> i created afew instances of vrf, tried import/export the RDs but my
> routing table still only show routes that are "connected" in the vrf
> only. 
> I've heard that i require ospf or bgp to exchange routes between vrf
> (within the same router).
> 
> What is the simplest method to achieve my desired scenario ?
> 

I guess you are talking about vrf-lite (i.e. no mpls involved). you can
do it like that:

ip vrf customer_A
 rd 1:1
 route-target export 1:100
 route-target import 1:900
!
ip vrf customer_B
 rd 1:2
 route-target export 1:200
 route-target import 1:900
!
ip vrf Hub
 rd 1:9
 route-target export 1:900
 route-target import 1:100
 route-target import 1:200
!
router bgp 65000
 address-fam ipv4 vrf customer_A
  redistribute static
  redistribute connected
 address-fam ipv4 vrf customer_B
  redistribute static
  redistribute connected
 address-fam ipv4 vrf Hub
  redistribute static
  redistribute connected


If you add routing protocols to it, you also need to redistribute those
into BGP. all the import/export stuff is done via BGP..

	oli


More information about the cisco-nsp mailing list