Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     
     

    Configuring the IGP in the VRF Context

    If you do not configure static routes on the VRF for each prefix in the associated customer site, then you must configure an IGP on the VRF so that the VRF can learn routes from customer sites.

    1. After creating a VRF, you can access it as if it were a virtual router for the purpose of configuring the IGP.
      • If you are in the context of the virtual router that has the VRF, you access the VRF as follows:
        host1(config)#virtual-router :vrfa host1:default:vrfa(config)#
      • If you are not in the context of the virtual router that has the VRF, you access the VRF as follows:
        host1(config)#virtual-router boston:vrfa host1:boston:vrfa(config)#
    2. The following configuration shows how to configure OSPF. You can similarly configure RIP and IS-IS.
      1. Configure the VRF instance.
        host1(config)#ip vrf vrfa
      2. Specify the unique two-part route distinguisher for a VRF.
        host1(config-vrf)#rd 100:5
      3. Configure the OSPF routing process.
        host1:default:vrfa(config)#router ospf 100
      4. Add the route target to the import and export list of the VRF.
        host1(config-vrf)#route-target both 100:5 host1(config-vrf)#exit
      5. Access the VRF from the VR context.
        host1(config)#virtual-router :vrfa
      6. Redistribute routes sourced from BGP.
        host1:default:vrfa(config-router)#redistribute bgp

    At this point you proceed with the IGP configuration for the VRF.

     
     

    Published: 2014-08-18