Enable Recursive Lookup for an IPv6 Static Route

The recursive lookup feature allows a device to search for another route if the original next-hop is not reachable.

About this task

If the next-hop for a basic static route is directly reachable, it is added to the routing table. If that next-hop is not reachable, the device can perform a lookup for another route (a recursive route). You can enable the recursive lookup feature in the default VRF or in a non-default VRF.
Note

Note

In SLX-OS, an original next-hop is not considered resolved if it is reachable through a default route, such as ::/0.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. To enable recursive lookup in the default VRF, run the following command.
    device(config)# ipv6 route next-hop-recursion
  3. To enable recursive lookup in a non-default VRF, run the following commands.
    device(config) vrf red
    device(config-vrf-red)# address-family ipv6 unicast
    device(config-vrf-red-ipv6-unicast)ipv6 route next-hop-recursion
    This example enables recursive lookup in a VRF named red.