Configure an IPv4 Static Route Between Two Named VRFs

You can configure the next hop of a static route to be in a different VRF.

Before you begin

Ensure that VRFs in the route configuration are valid VRFs.

Procedure

  1. Access global configuration mode.
    device# configure terminal
    
  2. Enter configuration mode for the source VRF.
    device(config)# vrf red
    
    In this example, the source VRF is "red."
  3. Create a Route Descriptor.
    device(config-vrf-red)# rd 1:1
    
  4. Specify that IPv4 addressing is to be used on the route.
    device(config-vrf-red)# address-family ipv4 unicast
    
  5. Configure the destination address and mask, the next hop VRF, and its IP address.
    device(config-vrf-red-ipv4-unicast)# ip route 10.128.2.69/24 next-hop-vrf blue 10.1.1.1