Resolving a Static Route Using Other Static Routes

You can use next-hop recursive lookup to resolve a static route.
Perform these steps to enable next-hop recursive lookup.
Note: The next-hop-recursion command can be independently applied on a per-VRF basis.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the following command, and, as an option, specify the level of recursion.
    device(config)# ip route next-hop-recursion
    This example configures recursive static route lookup to three levels (the default).

The following example configures recursive static route lookup to five levels.

device# configure terminal
device(config)# ip route next-hop-recursion 5